
/* Lock scroll and hide footer on the homepage so the hero fills the
   full available viewport without any vertical scroll. */
body.home {
	overflow: hidden;
}

body.home .site-footer,
body.home #colophon,
body.home footer.site-footer,
body.home .footer-wrap {
	display: none !important;
}

/* Aggressive parent-container resets voor de homepage — Kadence's default
   .site-container / .content-container / etc kunnen padding of margin
   toevoegen boven de swiper waardoor de tekst NIET exact op het midden van
   (viewport - header) staat. Alles wat tussen <body> en de hero zit
   krijgt padding 0 en margin 0. */
body.home #wrapper,
body.home #inner-wrap,
body.home #primary,
body.home #primary.content-area,
body.home .site-container,
body.home .content-container,
body.home .content-wrap,
body.home .entry-content-wrap,
body.home .site-main,
body.home .entry-content,
body.home article.page,
body.home .post-inner,
body.home .inside-article,
body.home main.lotarch-hero-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	min-height: 0 !important;
}

.lotarch-hero-main {
	margin: 0;
	padding: 0;
}

.lotarch-hero.swiper {
	position: relative;
	width: 100%;
	height: calc(100vh - var(--lotarch-header-height, 80px));
	height: calc(100dvh - var(--lotarch-header-height, 80px));
	min-height: 480px;
	overflow: hidden;
	background: #111;
}

.lotarch-hero__slide {
	position: relative;
	overflow: hidden;
}

/* --- Image slide: full-bleed photo covering the viewport. --- */

.lotarch-hero__slide--image {
	background: #111;
}

.lotarch-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Per-slide override: "contain" toont de foto in oorspronkelijke verhouding
   met donkere letterbox rondom. Ingesteld via metabox op de Hero Slide. */
.lotarch-hero__slide--fit-contain .lotarch-hero__image {
	object-fit: contain;
}

/* --- Text slide: één centrale kreet, perfect gecentreerd (horizontaal
       + verticaal) op een light background. Grote serif-typografie voor
       editorial premium impact. Geen corner-varianten meer. --- */

.lotarch-hero__slide.lotarch-hero__slide--text {
	position: relative !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var( --lotarch-bg-primary );
	overflow: hidden;
	/* Asymmetrische padding — meer onderaan dan bovenaan. Flex-centering
	   pakt het midden van het CONTENT-vlak (dat is verkleind door de
	   grotere bottom-padding), waardoor de tekst visueel omhoog schuift
	   naar het optische midden. Compenseert voor de pagination-bullets
	   onderaan die het oog anders naar beneden trekken en zorgt dat de
	   spreuk daadwerkelijk in het midden onder de header staat. */
	padding-top: clamp( 2rem, 5vw, 4rem );
	padding-bottom: clamp( 6rem, 12vw, 10rem );
	padding-left: clamp( 3rem, 8vw, 6rem );
	padding-right: clamp( 3rem, 8vw, 6rem );
	box-sizing: border-box;
}

.lotarch-hero__slide--text .lotarch-hero__text-content {
	position: relative; /* referentie-frame voor .lotarch-hero__progress */
	max-width: min( 1100px, calc( 100vw - 6rem ) );
	color: var( --lotarch-fg-primary );
	text-align: center;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

/* Progress-lijn onder de laatste regel van de spreuk. Positie + breedte
   worden per slide door JS ingesteld (measureLastLineRect via Range API).
   De fill groeit van 0% naar 100% synchroon met Swiper's autoplay.
   Zichtbaar alleen op de actieve slide zodat een vorige slide's afgevulde
   fill niet blijft hangen tijdens de crossfade-overgang. */
.lotarch-hero__progress {
	position: absolute;
	height: 2px;
	background: rgba( 26, 26, 26, 0.12 );
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.lotarch-hero__slide--text.swiper-slide-active .lotarch-hero__progress {
	opacity: 1;
}

.lotarch-hero__progress-fill {
	display: block;
	height: 100%;
	width: 0%;
	background: rgba( 26, 26, 26, 0.75 );
	transition: width 0.12s linear;
	transform-origin: left center;
}

.lotarch-hero__text-content p,
.lotarch-hero__text-content > * {
	max-width: 100% !important;
	overflow-wrap: break-word;
}

/* De kreet zelf — grote Fraunces serif, licht spacing, editorial.
   text-wrap: balance zorgt dat de regels ongeveer gelijke lengte krijgen
   bij wrap: geen single-word orphan op regel 2, en regel 2 wordt niet
   langer dan regel 1. Zonder deze regel kon een lange spreuk 1 woord op
   line 2 laten vallen, waardoor de progress-lijn eronder super kort werd.
   text-wrap: pretty is de fallback voor engines zonder balance-support:
   die kill't tenminste de single-word orphan. */
.lotarch-hero__text {
	font-family: var( --lotarch-font-serif );
	font-size: clamp( 2.25rem, 6vw, 5rem );
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var( --lotarch-fg-primary );
	font-variation-settings: 'opsz' 96, 'SOFT' 30;
	text-wrap: pretty;
	text-wrap: balance;
}

/* Ook op de <p>-children (WP-rendered kreten zijn <p>-wrapped). Sommige
   browsers passen text-wrap alleen toe op het block waarop wrapping
   feitelijk gebeurt. */
.lotarch-hero__text p {
	text-wrap: pretty;
	text-wrap: balance;
}

.lotarch-hero__text p {
	margin: 0 0 0.5em;
}

.lotarch-hero__text p:last-child {
	margin-bottom: 0;
}

/* --- Pagination bullets. Neutral gray with subtle white outline so they
       stay visible on both dark image and light text slides. --- */

.lotarch-hero__pagination.swiper-pagination {
	position: absolute !important;
	bottom: 3rem !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 20 !important;
	display: flex !important;
	justify-content: center !important;
	gap: 0.75rem !important;
	pointer-events: auto !important;
}

.lotarch-hero__pagination .swiper-pagination-bullet {
	width: 11px !important;
	height: 11px !important;
	background: rgba( 26, 26, 26, 0.35 ) !important;
	box-shadow: 0 0 0 1px rgba( 255, 255, 255, 0.5 ) !important;
	opacity: 1 !important;
	cursor: pointer !important;
	transition: background 0.3s ease, transform 0.3s ease !important;
}

.lotarch-hero__pagination .swiper-pagination-bullet:hover {
	background: rgba( 26, 26, 26, 0.65 ) !important;
}

.lotarch-hero__pagination .swiper-pagination-bullet-active {
	background: #1a1a1a !important;
	transform: scale( 1.3 ) !important;
	box-shadow: 0 0 0 1px rgba( 255, 255, 255, 0.7 ) !important;
}

/* --- Empty state (no slides yet). --- */

.lotarch-hero--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #333;
	text-align: center;
	padding: 4rem 2rem;
	min-height: 60vh;
	font-family: var(--lotarch-font-sans);
}

.lotarch-hero__empty-message {
	max-width: 480px;
	font-size: 1rem;
	line-height: 1.6;
}

@media ( max-width: 768px ) {
	.lotarch-hero.swiper {
		min-height: 420px;
	}
	.lotarch-hero__slide.lotarch-hero__slide--text {
		padding-top: 1.5rem;
		padding-bottom: 5rem;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	.lotarch-hero__slide--text .lotarch-hero__text-content {
		max-width: calc( 100vw - 3rem );
	}
	.lotarch-hero__text {
		font-size: clamp( 1.75rem, 8vw, 2.75rem );
	}
}

