/**
 * DTP Projecten — opmaak van de projectpagina's en het overzicht.
 *
 * Bouwt voort op aanleg.css uit je theme: zelfde kleuren (--al-*),
 * zelfde knoppen, secties en kaarten. Hier staat alleen wat de
 * aanlegpagina niet heeft. Alles begint met dtp-.
 *
 * Wordt geladen op: de projectpagina's, /projecten/ en de aanlegpagina
 * (daar alleen voor de kaarten die een link zijn geworden).
 */

/* ===================== KAART ALS LINK ===================== */
/* Ook op de aanlegpagina in gebruik, dus niet onder .dtp-pr zetten. */

.dtp-kaart {
	display: block;
	color: inherit;
	text-decoration: none;
}
.dtp-kaart:hover,
.dtp-kaart:focus { color: inherit; text-decoration: none; }

.dtp-kaart .al-werk__img,
.dtp-kaart .al-werk__ph { transition: filter .2s ease; }
.dtp-kaart:hover .al-werk__img { filter: brightness(1.06); }

.dtp-kaart:focus-visible {
	outline: 2px solid var(--al-zwart, #131313);
	outline-offset: 4px;
}

.dtp-kaart__meer {
	display: inline-block;
	margin-top: .875rem;
	padding-bottom: .1875rem;
	font-family: var(--al-mono);
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	border-bottom: 2px solid var(--al-geel, #F2C400);
}
.dtp-kaart:hover .dtp-kaart__meer { border-bottom-color: currentColor; }

.dtp-meer { margin: clamp(2rem, 5vw, 3rem) 0 0; }


/* ===================== HERO ===================== */

/* Projectpagina: het feitenblok sluit de hero af en krijgt lucht eronder. */
.dtp-hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.dtp-hero.dtp-hero--kaal { padding-bottom: clamp(3rem, 8vw, 6rem); }

.dtp-kruimel { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.dtp-kruimel ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .625rem;
	font-family: var(--al-mono);
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--al-grijs);
}
.dtp-kruimel li { margin: 0; padding: 0; }
.dtp-kruimel li + li::before { content: "/"; margin-right: .625rem; opacity: .6; }
.dtp-kruimel a { color: var(--al-grijs); text-decoration: none; }
.dtp-kruimel a:hover { color: var(--al-wit); }
.dtp-kruimel a:focus-visible { outline: 2px solid var(--al-geel); outline-offset: 3px; }
.dtp-kruimel [aria-current] { color: rgba(255,255,255,.8); }

/* Kleiner dan .al-h1: een projecttitel is een hele zin, geen drie woorden. */
.dtp-h1 {
	font-family: var(--al-display);
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1;
	font-size: clamp(1.875rem, 5.2vw, 3.5rem);
	margin: 0;
	color: var(--al-wit);
	text-wrap: balance;
	overflow-wrap: break-word;
}
.dtp-hero--kaal .dtp-h1 { max-width: 18ch; font-size: clamp(2.25rem, 7.5vw, 4.5rem); line-height: .96; }

.dtp-hero__grid { align-items: center; }

.dtp-hero__foto { display: block; }
.dtp-hero__foto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.dtp-hero__foto:focus-visible { outline: 2px solid var(--al-geel); outline-offset: 4px; }


/* ===================== FEITENBLOK ===================== */

.dtp-feiten {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1.5rem;
	margin: clamp(2.5rem, 6vw, 4rem) 0 0;
	padding: 0;
	border-top: 1px solid var(--al-lijn-d);
}
@media (min-width: 52rem) { .dtp-feiten { grid-template-columns: repeat(4, 1fr); } }

.dtp-feit {
	margin: 0;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--al-lijn-d);
}
.dtp-feit dt {
	margin: 0 0 .375rem;
	font-family: var(--al-mono);
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--al-grijs);
}
.dtp-feit dd {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--al-wit);
	font-variant-numeric: tabular-nums;
	overflow-wrap: break-word;
}


/* ===================== HET WERK ===================== */

.dtp-verhaal { max-width: 42rem; }
.dtp-verhaal p {
	margin: 0 0 1.125rem;
	font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
	line-height: 1.7;
	color: rgba(19,19,19,.82);
}
.dtp-verhaal p:last-child { margin-bottom: 0; }


/* ===================== FOTO'S ===================== */

.dtp-galerij {
	list-style: none;
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	padding: 0;
	display: grid;
	gap: .75rem;
	grid-template-columns: 1fr 1fr;
}
@media (min-width: 56rem) { .dtp-galerij { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.dtp-galerij li { margin: 0; padding: 0; }
.dtp-galerij a { display: block; }
.dtp-galerij img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: filter .2s ease;
}
.dtp-galerij a:hover img { filter: brightness(1.1); }
.dtp-galerij a:focus-visible { outline: 2px solid var(--al-geel); outline-offset: 3px; }

/* Eén losse foto over: volle breedte, anders hangt hij er half bij. */
.dtp-galerij li:only-child { grid-column: 1 / -1; }
.dtp-galerij li:only-child img { aspect-ratio: 16 / 9; }


/* ---- vergroten ---- */

.dtp-lb {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10,10,10,.96);
	color: #fff;
	overflow: hidden;
}
.dtp-lb::backdrop { background: rgba(10,10,10,.96); }
.dtp-lb:not([open]) { display: none; }
.dtp-lb[open] { display: grid; grid-template-rows: auto 1fr auto; }

.dtp-lb__balk {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1rem;
	font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,255,255,.7);
}
.dtp-lb__beeld {
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 .5rem;
}
.dtp-lb__beeld img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.dtp-lb__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	padding: .75rem 1rem 1rem;
}
.dtp-lb__nav[hidden] { display: none; }

.dtp-lb button {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	min-height: 2.75rem;
	padding: .75rem 1.25rem;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.dtp-lb button:hover { border-color: #fff; }
.dtp-lb button:focus-visible { outline: 2px solid #F2C400; outline-offset: 2px; }
.dtp-lb .dtp-lb__sluit { background: #F2C400; color: #131313; border-color: #F2C400; }


/* ===================== MATERIAAL ===================== */

.dtp-producten {
	list-style: none;
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 42rem) { .dtp-producten { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .dtp-producten { grid-template-columns: repeat(3, 1fr); } }

.dtp-producten li { margin: 0; padding: 0; }

.dtp-product {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 1rem;
	align-items: center;
	height: 100%;
	padding: 1rem;
	background: var(--al-wit);
	border: 1px solid var(--al-lijn-l);
	color: var(--al-zwart);
	text-decoration: none;
	transition: border-color .15s ease;
}
.dtp-product:hover,
.dtp-product:focus { color: var(--al-zwart); text-decoration: none; border-color: var(--al-zwart); }
.dtp-product:focus-visible { outline: 2px solid var(--al-zwart); outline-offset: 3px; }

.dtp-product__foto { display: block; }
.dtp-product__foto img {
	display: block;
	width: 5rem;
	height: 5rem;
	object-fit: contain;
	margin: 0;
}
.dtp-product__tekst { display: block; min-width: 0; }
.dtp-product__naam {
	display: block;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: break-word;
}
.dtp-product__prijs {
	display: block;
	margin-top: .375rem;
	font-family: var(--al-mono);
	font-size: .8125rem;
	color: rgba(19,19,19,.66);
}
.dtp-product__prijs del { opacity: .6; }
.dtp-product__prijs ins { text-decoration: none; }


/* ===================== PAGINERING ===================== */

.dtp-paginering { margin-top: clamp(2.5rem, 6vw, 4rem); }
.dtp-paginering .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.dtp-paginering .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: .5rem .875rem;
	font-family: var(--al-mono);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	border: 1px solid var(--al-lijn-l);
	color: var(--al-zwart);
	text-decoration: none;
}
.dtp-paginering a.page-numbers:hover { border-color: var(--al-zwart); }
.dtp-paginering .page-numbers.current { background: var(--al-zwart); color: var(--al-wit); border-color: var(--al-zwart); }
.dtp-paginering .page-numbers.dots { border-color: transparent; }

.dtp-pr .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {
	.dtp-kaart .al-werk__img,
	.dtp-galerij img,
	.dtp-product { transition: none; }
}
