/* enVisual Casussen: kaarten, hover-paneel, casuspagina. */
:root {
	--ecs-accent: #FE5E00;
	--ecs-radius: 28px;
	--ecs-ink: #16120F;
	--ecs-cream: #FFF4EC;
	--ecs-line: #F1E4DA;
	--ecs-grijs: #6B625C;
	--ecs-kop: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ecs-tekst: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Overzicht ------------------------------------------------------------ */
.ecs-overzicht {
	display: grid;
	gap: 48px 40px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	font-family: var(--ecs-tekst);
}
.ecs-kolommen-1 { grid-template-columns: minmax(0, 1fr); }
.ecs-kolommen-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 980px) {
	.ecs-kolommen-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ecs-overzicht,
	.ecs-kolommen-3 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
.ecs-leeg { color: var(--ecs-grijs); font-family: var(--ecs-tekst); }

/* Carousel ------------------------------------------------------------- */
.ecs-carousel { position: relative; --ecs-gap: 32px; --ecs-zicht: 2; }
.ecs-carousel__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 6px 0 14px;
	margin: -6px 0 0;
	outline: none;
}
.ecs-carousel__viewport::-webkit-scrollbar { display: none; }
.ecs-carousel__viewport:focus-visible { box-shadow: 0 0 0 3px var(--ecs-accent); border-radius: var(--ecs-radius); }
.ecs-overzicht.ecs-overzicht--carousel {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--ecs-gap);
	align-items: stretch;
}
.ecs-overzicht--carousel .ecs-kaart {
	flex: 0 0 calc((100% - (var(--ecs-zicht) - 1) * var(--ecs-gap)) / var(--ecs-zicht));
	max-width: calc((100% - (var(--ecs-zicht) - 1) * var(--ecs-gap)) / var(--ecs-zicht));
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.ecs-overzicht--carousel { --ecs-kol: 2; --ecs-zicht: var(--ecs-kol); }
.ecs-overzicht--carousel.ecs-kolommen-1 { --ecs-kol: 1; }
/* Gecentreerd: kaarten lopen tot de schermrand door, de inhoud blijft in de contentbreedte (--ecs-inzet). */
.ecs-carousel--gecentreerd { --ecs-inzet: max(6vw, calc((100% - 1240px) / 2)); }
/* uitloop: kaarten groter, de rij loopt rechts het beeld uit */
.ecs-carousel--gecentreerd .ecs-overzicht--carousel { --ecs-zicht: calc(var(--ecs-kol) + .4); }
.ecs-carousel--gecentreerd .ecs-overzicht--carousel.ecs-kolommen-1 { --ecs-zicht: 1.15; }
.ecs-carousel--gecentreerd .ecs-carousel__viewport { padding-right: 0; scroll-padding-right: 0; }
.ecs-carousel--gecentreerd .ecs-overzicht--carousel::after { flex-basis: var(--ecs-inzet); }
@media (max-width: 640px) {
	.ecs-carousel--gecentreerd .ecs-overzicht--carousel { --ecs-zicht: 1; }
}
.ecs-carousel--gecentreerd .ecs-carousel__viewport {
	padding-left: var(--ecs-inzet);
	padding-right: var(--ecs-inzet);
	scroll-padding-left: var(--ecs-inzet);
	scroll-padding-right: var(--ecs-inzet);
}
.ecs-carousel--gecentreerd .ecs-carousel__balk {
	justify-content: center;
	padding: 0 var(--ecs-inzet);
	margin-top: 28px;
	gap: 28px;
}
.ecs-carousel--gecentreerd .ecs-carousel__nav { margin-left: 0; order: 2; }
.ecs-carousel--gecentreerd .ecs-carousel__dots { order: 1; }
.ecs-carousel--gecentreerd .ecs-carousel__knop--vorige { order: 0; }

/* Overlay-stijl: titel en intro op de foto, staande kaart */
.ecs-visueel-verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; padding: 0 !important; margin: -1px; }
.ecs-kaart--overlay .ecs-kaart__media { aspect-ratio: 4 / 5; }
.ecs-kolommen-1 .ecs-kaart--overlay .ecs-kaart__media { aspect-ratio: 16 / 10; }
.ecs-kaart__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 120px 28px 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	color: #fff;
	background: linear-gradient(180deg, rgba(22, 18, 15, 0) 0%, rgba(22, 18, 15, .55) 45%, rgba(22, 18, 15, .88) 100%);
	pointer-events: none;
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.ecs-kaart__label {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ecs-accent);
	font-family: var(--ecs-tekst);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
	margin-bottom: 6px;
}
.ecs-kaart__overlay-titel {
	font-family: var(--ecs-kop);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.ecs-kaart__overlay-intro {
	font-family: var(--ecs-tekst);
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .86);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ecs-kaart--overlay:hover .ecs-kaart__overlay,
.ecs-kaart--overlay:focus-within .ecs-kaart__overlay,
.ecs-kaart--overlay.is-open .ecs-kaart__overlay { opacity: 0; transform: translateY(12px); }
.ecs-kaart--overlay .ecs-kaart__paneel { padding: 24px 26px; }
.ecs-kaart--overlay .ecs-kaart__paneel::before {
	content: attr(data-titel);
	display: block;
	font-family: var(--ecs-kop);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
/* paneel past altijd binnen de kaart */
.ecs-kaart--overlay .ecs-kaart__paneel { max-height: calc(100% - 32px); overflow: auto; scrollbar-width: none; }
.ecs-kaart--overlay .ecs-kaart__paneel::-webkit-scrollbar { display: none; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__paneel { padding: 18px 20px; left: 12px; right: 12px; bottom: 12px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__paneel::before { font-size: 17px; margin-bottom: 12px; padding-bottom: 12px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__kop { font-size: 13px; margin-bottom: 8px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-pills + .ecs-kaart__kop,
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__waarde + .ecs-kaart__kop { margin-top: 14px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-pill { padding: 6px 10px; font-size: 11px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__waarde { font-size: 14px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__acties { margin-top: 16px; gap: 10px 14px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-knop { padding: 6px 16px 6px 6px; font-size: 14px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__overlay-titel { font-size: 22px; }
.ecs-kolommen-3 .ecs-kaart--overlay .ecs-kaart__overlay { padding: 100px 22px 24px; }
@media (max-width: 980px) {
	.ecs-kaart__overlay { padding: 90px 22px 24px; }
	.ecs-kaart__overlay-titel { font-size: 22px; }
}
.ecs-overzicht--carousel.ecs-kolommen-3 { --ecs-kol: 3; }
.ecs-overzicht--carousel::after { content: ""; flex: 0 0 1px; }
.ecs-carousel__balk {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 18px;
}
.ecs-carousel__dots { display: flex; gap: 8px; }
.ecs-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ecs-line);
	transition: width .3s ease, background .3s ease;
}
.ecs-carousel__dot.is-actief { width: 28px; background: var(--ecs-accent); }
.ecs-carousel__nav { display: flex; gap: 10px; margin-left: auto; }
.ecs-carousel__knop {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 1.5px solid var(--ecs-ink);
	background: transparent;
	color: var(--ecs-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.ecs-carousel__knop--vorige svg { transform: rotate(180deg); }
.ecs-carousel__knop:hover:not(:disabled) { background: var(--ecs-accent); border-color: var(--ecs-accent); color: #fff; transform: translateY(-2px); }
.ecs-carousel__knop:disabled { opacity: .28; cursor: default; }
.ecs-carousel__knop:focus-visible { outline: 3px solid var(--ecs-accent); outline-offset: 3px; }
@media (max-width: 980px) {
	.ecs-overzicht--carousel.ecs-kolommen-3 { --ecs-kol: 2; }
}
@media (max-width: 640px) {
	.ecs-carousel { --ecs-gap: 16px; }
	.ecs-overzicht--carousel,
	.ecs-overzicht--carousel.ecs-kolommen-3 { --ecs-kol: 1; --ecs-zicht: 1; }
	.ecs-overzicht--carousel .ecs-kaart { flex-basis: 86%; max-width: 86%; }
	.ecs-carousel__knop { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.ecs-carousel__viewport { scroll-behavior: auto; }
}

/* Kaart ---------------------------------------------------------------- */
.ecs-kaart {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
}
.ecs-kaart__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--ecs-radius);
	background: var(--ecs-cream);
	aspect-ratio: 1 / 1;
	isolation: isolate;
	transform: translateZ(0);
}
.ecs-kolommen-1 .ecs-kaart__media { aspect-ratio: 16 / 10; }
.ecs-kaart__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}
.ecs-kaart__img,
.ecs-kaart__video,
.ecs-kaart__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	margin: 0;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ecs-kaart__placeholder {
	background: linear-gradient(135deg, var(--ecs-cream), var(--ecs-line));
}
.ecs-kaart__video {
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}
.ecs-kaart.is-open .ecs-kaart__video,
.ecs-kaart:hover .ecs-kaart__video { opacity: 1; }
/* video als uitgelichte media: altijd in beeld, zachte zoom op hover zoals de foto */
.ecs-kaart--video-uitgelicht .ecs-kaart__video { opacity: 1; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ecs-kaart--video-uitgelicht:hover .ecs-kaart__video { transform: scale(1.04); }
.ecs-kaart:hover .ecs-kaart__img { transform: scale(1.04); }

/* Glas-paneel */
.ecs-kaart__paneel {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	padding: 26px 28px;
	border-radius: var(--ecs-radius);
	background: rgba(22, 18, 15, .68);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}
.ecs-kaart:hover .ecs-kaart__paneel,
.ecs-kaart:focus-within .ecs-kaart__paneel,
.ecs-kaart.is-open .ecs-kaart__paneel {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.ecs-kaart__kop {
	margin: 0 0 12px;
	font-family: var(--ecs-kop);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	padding: 0;
}
.ecs-kaart__kop + .ecs-pills,
.ecs-kaart__kop + .ecs-kaart__waarde { margin-top: 0; }
.ecs-pills + .ecs-kaart__kop,
.ecs-kaart__waarde + .ecs-kaart__kop { margin-top: 22px; }
.ecs-kaart__waarde {
	margin: 0;
	font-family: var(--ecs-tekst);
	font-size: 16px;
	line-height: 1.5;
	color: #fff;
	padding: 0;
}

/* Pills */
.ecs-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ecs-pill {
	list-style: none !important;
	margin: 0 !important;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	font-family: var(--ecs-tekst);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
}
.ecs-pills--donker .ecs-pill {
	border-color: var(--ecs-ink);
	color: var(--ecs-ink);
}
.ecs-pills--donker .ecs-pill a {
	color: inherit;
	text-decoration: none;
}
.ecs-pills--donker .ecs-pill:hover {
	background: var(--ecs-ink);
	color: #fff;
}

/* Acties */
.ecs-kaart__acties {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-top: 26px;
}
.ecs-knop {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 22px 8px 8px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: transparent;
	color: #fff !important;
	font-family: var(--ecs-kop);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none !important;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ecs-knop:hover {
	background: #fff;
	border-color: #fff;
	color: var(--ecs-ink) !important;
}
.ecs-knop__icoon {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--ecs-accent);
	color: #fff;
	flex: 0 0 auto;
	transition: transform .25s ease;
}
.ecs-knop:hover .ecs-knop__icoon { transform: translate(1px, -1px); }
.ecs-knop--licht {
	border-color: var(--ecs-line);
	color: var(--ecs-ink) !important;
}
.ecs-knop--licht:hover {
	background: var(--ecs-ink);
	border-color: var(--ecs-ink);
	color: #fff !important;
}
.ecs-kaart__website {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff !important;
	font-family: var(--ecs-kop);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease;
}
.ecs-kaart__website:hover { border-bottom-color: #fff; }
.ecs-kaart__website svg { transition: transform .25s ease; }
.ecs-kaart__website:hover svg { transform: translate(2px, -2px); }

/* Tekst onder de kaart */
.ecs-kaart__tekst { padding: 24px 18px 0; }
.ecs-kaart__titel {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--ecs-kop);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ecs-ink);
	letter-spacing: -.01em;
}
.ecs-kolommen-3 .ecs-kaart__titel { font-size: 22px; }
.ecs-kaart__titel a {
	color: inherit;
	text-decoration: none;
}
.ecs-kaart__titel a:hover { color: var(--ecs-accent); }
.ecs-kaart__intro {
	margin: 0;
	padding: 0;
	font-family: var(--ecs-tekst);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ecs-grijs);
	max-width: 46ch;
}
.ecs-kolommen-3 .ecs-kaart__intro { font-size: 15px; }

/* Touch: paneel via tik, hint-pijl rechtsboven */
@media (hover: none) {
	.ecs-kaart__media::after {
		content: "";
		position: absolute;
		top: 16px;
		right: 16px;
		z-index: 3;
		width: 40px;
		height: 40px;
		border-radius: 999px;
		background: var(--ecs-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 12 4M6 4h6v6'/%3E%3C/svg%3E") center / 16px no-repeat;
		pointer-events: none;
		transition: opacity .3s ease;
	}
	.ecs-kaart.is-open .ecs-kaart__media::after { opacity: 0; }
	.ecs-kaart:hover .ecs-kaart__paneel { opacity: 0; transform: translateY(14px); pointer-events: none; }
	.ecs-kaart.is-open .ecs-kaart__paneel { opacity: 1; transform: none; pointer-events: auto; }
	.ecs-kaart:hover .ecs-kaart__img { transform: none; }
}
@media (max-width: 640px) {
	.ecs-kaart__paneel { left: 12px; right: 12px; bottom: 12px; padding: 20px 20px; }
	.ecs-kaart__tekst { padding: 18px 10px 0; }
	.ecs-kaart__titel { font-size: 24px; }
	.ecs-kaart__intro { font-size: 16px; }
	.ecs-kaart__acties { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ecs-kaart__paneel, .ecs-kaart__img, .ecs-kaart__video, .ecs-knop__icoon { transition: none; }
	.ecs-kaart:hover .ecs-kaart__img { transform: none; }
}

/* Casuspagina ---------------------------------------------------------- */
.ecs-single,
.ecs-archief {
	font-family: var(--ecs-tekst);
	color: var(--ecs-ink);
	padding-bottom: 80px;
}
.ecs-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
.ecs-container--breed { max-width: 1320px; }
.ecs-container--smal { max-width: 820px; }
.ecs-single__kop { padding: 64px 0 36px; }
.ecs-single__terug { margin: 0 0 22px; font-size: 15px; }
.ecs-single__terug a {
	color: var(--ecs-grijs);
	text-decoration: none;
	font-weight: 600;
}
.ecs-single__terug a:hover { color: var(--ecs-accent); }
.ecs-single__klant {
	margin: 0 0 12px;
	font-family: var(--ecs-kop);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ecs-accent);
}
.ecs-single__titel {
	margin: 0;
	padding: 0;
	font-family: var(--ecs-kop);
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--ecs-ink);
	max-width: 18ch;
}
.ecs-single__intro {
	margin: 22px 0 0;
	font-size: 20px;
	line-height: 1.55;
	color: var(--ecs-grijs);
	max-width: 60ch;
}
.ecs-single__hero {
	margin: 0;
	border-radius: var(--ecs-radius);
	overflow: hidden;
	background: var(--ecs-cream);
	aspect-ratio: 16 / 8;
	transform: translateZ(0);
}
.ecs-single__hero-img,
.ecs-single__hero-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ecs-single__hero--video { position: relative; background: var(--ecs-ink); }
.ecs-single__hero-geluid {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, .55);
	background: rgba(22, 18, 15, .45);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background .2s ease, border-color .2s ease;
}
.ecs-single__hero-geluid:hover { background: var(--ecs-accent); border-color: var(--ecs-accent); }
.ecs-single__hero-geluid .ecs-geluid-aan { display: none; }
.ecs-single__hero-geluid[aria-pressed="true"] .ecs-geluid-aan { display: block; }
.ecs-single__hero-geluid[aria-pressed="true"] .ecs-geluid-uit { display: none; }
.ecs-single__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 40px 0 0;
}
.ecs-meta-blok {
	padding: 26px 28px;
	border: 1px solid var(--ecs-line);
	border-radius: var(--ecs-radius);
	background: #fff;
}
.ecs-meta-blok__kop {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--ecs-kop);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ecs-grijs);
}
.ecs-meta-blok__waarde {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ecs-ink);
}
.ecs-single__inhoud {
	margin-top: 56px;
	font-size: 18px;
	line-height: 1.7;
}
.ecs-single__inhoud > :first-child { margin-top: 0; }
.ecs-single__inhoud h2,
.ecs-single__inhoud h3 {
	font-family: var(--ecs-kop);
	font-weight: 700;
	color: var(--ecs-ink);
	padding: 0;
	margin: 1.6em 0 .5em;
	line-height: 1.2;
}
.ecs-single__inhoud h2 { font-size: 30px; }
.ecs-single__inhoud h3 { font-size: 22px; }
.ecs-single__inhoud p { padding-bottom: 1.2em; margin: 0; }
.ecs-single__inhoud img { border-radius: var(--ecs-radius); height: auto; }
.ecs-single__inhoud a { color: var(--ecs-accent); }
.ecs-single__inhoud .et_pb_section { padding-left: 0; padding-right: 0; }
.ecs-single__meer {
	margin-top: 96px;
	padding-top: 64px;
	border-top: 1px solid var(--ecs-line);
}
.ecs-single__meer-kop {
	margin: 0 0 36px;
	padding: 0;
	font-family: var(--ecs-kop);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ecs-ink);
}
.ecs-archief .ecs-single__kop { padding-bottom: 48px; }
.ecs-archief .navigation.pagination { margin-top: 56px; }
.ecs-archief .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ecs-archief .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ecs-line);
	border-radius: 999px;
	color: var(--ecs-ink);
	text-decoration: none;
	font-weight: 600;
}
.ecs-archief .page-numbers.current,
.ecs-archief .page-numbers:hover { background: var(--ecs-ink); border-color: var(--ecs-ink); color: #fff; }

@media (max-width: 767px) {
	.ecs-single__kop { padding: 40px 0 28px; }
	.ecs-single__hero { aspect-ratio: 4 / 3; }
	.ecs-single__inhoud { margin-top: 40px; font-size: 17px; }
	.ecs-single__meer { margin-top: 64px; padding-top: 48px; }
	.ecs-meta-blok { padding: 20px 22px; }
}

/* Carousel: slepen met de muis en eigen cursor ------------------------- */
.ecs-carousel__viewport { cursor: grab; user-select: none; -webkit-user-select: none; }
.ecs-carousel__viewport.is-sleept { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ecs-carousel__viewport .ecs-kaart__img,
.ecs-carousel__viewport .ecs-kaart__video { -webkit-user-drag: none; pointer-events: none; }
.ecs-carousel__viewport.is-sleept .ecs-kaart__paneel,
.ecs-carousel__viewport.is-sleept .ecs-kaart__overlay { pointer-events: none; }
.ecs-cursor {
	position: fixed;
	top: -42px;
	left: -42px;
	z-index: 99999;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--ecs-accent);
	color: #fff;
	font-family: var(--ecs-kop);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1;
	pointer-events: none;
	opacity: 0;
	will-change: transform;
}
.ecs-cursor__inhoud {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transform: scale(.4);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}
.ecs-cursor.is-zichtbaar { opacity: 1; transition: opacity .2s ease; }
.ecs-cursor.is-zichtbaar .ecs-cursor__inhoud { transform: scale(1); }
.ecs-cursor.is-actief .ecs-cursor__inhoud { transform: scale(1.15); }
.ecs-cursor::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	transform: scale(.4);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1);
	z-index: -1;
}
.ecs-cursor.is-zichtbaar::before { transform: scale(1); }
.ecs-cursor.is-actief::before { transform: scale(.86); }
@media (hover: hover) and (pointer: fine) {
	body.ecs-cursor-actief .ecs-carousel__viewport,
	body.ecs-cursor-actief .ecs-carousel__viewport .ecs-kaart__link { cursor: none; }
	body.ecs-cursor-actief .ecs-carousel__viewport.is-sleept { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
	.ecs-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ecs-cursor, .ecs-cursor__inhoud, .ecs-cursor::before { transition: none; }
}

/* Leesbaarheid: tekst in het hover-paneel en de overlay is altijd wit, ook als het thema koppen en alinea's kleurt. */
.ecs-kaart__paneel .ecs-kaart__kop,
.ecs-kaart__paneel .ecs-kaart__waarde,
.ecs-kaart__paneel .ecs-pill,
.ecs-kaart__paneel .ecs-kaart__paneel-titel,
.ecs-kaart__paneel h3,
.ecs-kaart__paneel h4,
.ecs-kaart__paneel p,
.ecs-kaart__paneel li,
.ecs-kaart__overlay,
.ecs-kaart__overlay-titel,
.ecs-kaart__overlay-intro,
.ecs-kaart__label { color: #fff !important; }

/* Fotogalerij op de casuspagina ---------------------------------------- */
.ecs-galerij {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
}
.ecs-galerij__item {
	display: block;
	overflow: hidden;
	border-radius: var(--ecs-radius);
	background: var(--ecs-cream);
	aspect-ratio: 4 / 3;
	transform: translateZ(0);
}
.ecs-galerij__item:nth-child(3n+1):nth-last-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.ecs-galerij__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ecs-galerij__item:hover .ecs-galerij__img { transform: scale(1.04); }
@media (max-width: 640px) {
	.ecs-galerij { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
	.ecs-galerij__item:nth-child(3n+1):nth-last-child(1) { aspect-ratio: 4 / 3; }
}
/* Lightbox */
.ecs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(22, 18, 15, .92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.ecs-lightbox.is-open { display: flex; }
.ecs-lightbox__img {
	max-width: min(1400px, 100%);
	max-height: calc(100vh - 48px);
	border-radius: var(--ecs-radius);
	object-fit: contain;
}
.ecs-lightbox__knop {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: rgba(22, 18, 15, .5);
	color: #fff;
	cursor: pointer;
	padding: 0;
}
.ecs-lightbox__knop:hover { background: var(--ecs-accent); border-color: var(--ecs-accent); }
.ecs-lightbox__knop--vorige { left: 24px; }
.ecs-lightbox__knop--volgende { right: 24px; }
.ecs-lightbox__sluit { top: 24px; right: 24px; transform: none; }
.ecs-lightbox__teller {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	color: #fff;
	font-family: var(--ecs-kop);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
}
@media (max-width: 640px) {
	.ecs-lightbox { padding: 12px; }
	.ecs-lightbox__knop { width: 44px; height: 44px; }
	.ecs-lightbox__knop--vorige { left: 10px; }
	.ecs-lightbox__knop--volgende { right: 10px; }
	.ecs-lightbox__sluit { top: 10px; right: 10px; }
	.ecs-lightbox__img { border-radius: var(--ecs-radius); }
}
