/* =============================================
   Fotogenootschap Keerbergen – stijlblad
   Rustig, licht ontwerp waarin de foto's centraal staan.
   Accentkleur = het paars van het logo.
   ============================================= */

/* ---------- Lettertype (Poppins, lokaal; licentie: assets/fonts/OFL.txt) ---------- */
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/poppins-700.woff2") format("woff2");
}

/* ---------- Thema ---------- */
:root {
	--color-ink: #1e1b22;
	--color-text: #3a3640;
	--color-muted: #6c6673;
	--color-bg: #faf9f7;
	--color-bg-alt: #f1eef3;
	--color-line: #e2dde6;
	--color-accent: #625672;
	--color-accent-dark: #4a4058;
	--color-accent-light: #b3a9bf;
	--color-dark: #16141a;
	--color-dark-text: #d9d4de;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 12px;
	--shadow: 0 12px 32px rgba(30, 27, 34, .10);
	--container: 1200px;
	--header-h: 72px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
	margin: 0 0 .6em;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); text-underline-offset: .2em; }
a:hover { color: var(--color-accent-dark); }

:focus-visible {
	outline: 3px solid var(--color-accent-light);
	outline-offset: 3px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--color-ink);
	color: #fff;
	border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Knoppen ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.5em;
	border: 2px solid var(--color-accent);
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.btn-outline {
	background: transparent;
	color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

.btn-light {
	background: #fff;
	border-color: #fff;
	color: var(--color-ink);
}
.btn-light:hover { background: var(--color-bg-alt); border-color: var(--color-bg-alt); color: var(--color-ink); }

.btn-ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- Header + navigatie ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(250, 249, 247, .92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--color-ink);
	text-decoration: none;
	line-height: 1.15;
}
.brand:hover { color: var(--color-ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 600; font-size: 1.05rem; }
.brand-place { display: block; font-size: .8rem; font-weight: 400; color: var(--color-muted); letter-spacing: .04em; }

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--color-text);
	font-weight: 500;
	font-size: .95rem;
	text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--color-accent); background: var(--color-bg-alt); }
.site-nav .nav-archive {
	margin-left: 8px;
	border: 1px solid var(--color-line);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--color-ink);
	cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 920px) {
	.nav-toggle { display: block; }

	.site-nav {
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		display: none;
		background: var(--color-bg);
		border-bottom: 1px solid var(--color-line);
		box-shadow: var(--shadow);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		padding: 8px 16px 16px;
	}
	.site-nav a { padding: 12px; }
	.site-nav .nav-archive { margin: 8px 0 0; text-align: center; }
}

/* ---------- Secties ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-dark {
	background: var(--color-dark);
	color: var(--color-dark-text);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark a { color: var(--color-accent-light); }
.section-dark a:hover { color: #fff; }

.eyebrow {
	margin: 0 0 .8em;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.section-dark .eyebrow { color: var(--color-accent-light); }

.section-head {
	max-width: 720px;
	margin-bottom: 40px;
}
.section-head p:last-child { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--color-muted); }
.section-dark .lead { color: var(--color-dark-text); }

.prose { max-width: 720px; }
.prose strong { color: var(--color-ink); }

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
}

/* ---------- Hero (uitnodiging) ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 8vw, 96px) 0;
	background: var(--color-dark);
	color: var(--color-dark-text);
}
.hero-bg {
	/* Wazige, donkere versie van de affiche als achtergrond (afbeelding via inline style per pagina) */
	position: absolute;
	inset: -40px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(40px) saturate(120%);
	opacity: .35;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.hero-poster img {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hero .lead { color: var(--color-dark-text); }
.hero .eyebrow { color: var(--color-accent-light); }

.event-facts {
	display: grid;
	gap: 14px;
	margin: 28px 0 32px;
	padding: 0;
	list-style: none;
}
.event-facts li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.event-facts svg {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	color: var(--color-accent-light);
}
.event-facts strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tagline {
	margin: 32px 0 0;
	padding-left: 18px;
	border-left: 3px solid var(--color-accent);
	font-style: italic;
	color: var(--color-dark-text);
}

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-poster { order: 2; }
	.hero-poster img { max-width: 360px; }
}

/* ---------- Over ons ---------- */
.highlight {
	margin: 1.6em 0 .6em;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--color-ink);
}
.members {
	margin-top: 1.6em;
	padding: 20px 24px;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
}
.members p:last-child { margin-bottom: 0; }

.photo-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 48px;
}
.photo-strip a {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
}
.photo-strip img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform .4s ease;
}
.photo-strip a:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
	.photo-strip { grid-template-columns: 1fr; }
}

/* ---------- Goed doel ---------- */
.charity-logo {
	display: block;
	max-width: 300px;
	padding: 24px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.contact-card {
	margin-top: 28px;
	padding: 20px 24px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-bg);
}
.contact-card h3 { margin-bottom: .4em; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.contact-card dt { font-weight: 500; color: var(--color-ink); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Fotogalerij ---------- */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}
.filters legend {
	width: 100%;
	margin-bottom: 8px;
	padding: 0;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-muted);
}
.section-dark .filters legend { color: var(--color-dark-text); }
.filters + .filters { margin-top: 16px; }

.filter-btn {
	padding: .45em 1.05em;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	font-size: .92rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn[aria-pressed="true"] {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}
.section-dark .filter-btn { border-color: rgba(255, 255, 255, .2); color: var(--color-dark-text); }
.section-dark .filter-btn:hover { border-color: #fff; color: #fff; }
.section-dark .filter-btn[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--color-ink); }

.gallery-count {
	margin: 20px 0 24px;
	font-size: .9rem;
	color: var(--color-muted);
}
.section-dark .gallery-count { color: var(--color-dark-text); }

/* Masonry-raster met CSS-kolommen: foto's behouden hun eigen verhouding */
.gallery {
	columns: 3 300px;
	column-gap: 14px;
}
.gallery-item {
	break-inside: avoid;
	margin: 0 0 14px;
}
.gallery-item[hidden] { display: none; }
.gallery-item a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(127, 127, 127, .15);
}
.gallery-item img {
	width: 100%;
	transition: transform .5s ease, opacity .3s;
}
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 14px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .65));
	color: #fff;
	font-size: .85rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity .25s;
}
.gallery-item a:hover figcaption,
.gallery-item a:focus-visible figcaption { opacity: 1; }

@media (hover: none) {
	.gallery-item figcaption { opacity: 1; padding-top: 20px; font-size: .8rem; }
}

.gallery-compact { columns: 4 220px; }
.gallery-postcards { columns: 3 120px; column-gap: 10px; }
.gallery-postcards .gallery-item { margin-bottom: 10px; }

/* Op een gsm twee kolommen: anders wordt de pagina eindeloos lang */
@media (max-width: 560px) {
	.gallery,
	.gallery-compact { columns: 2; column-gap: 8px; }
	.gallery-item { margin-bottom: 8px; }
	.gallery-item figcaption { padding: 16px 8px 6px; font-size: .72rem; }
}

/* ---------- Lightbox ---------- */
.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 11, 14, .96);
	color: #fff;
	overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(12, 11, 14, .96); }
.lightbox[open] { display: flex; flex-direction: column; }

.lightbox-stage {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 56px 72px 8px;
}
.lightbox-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 2px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transition: opacity .2s;
}
.lightbox-img.is-loading { opacity: .25; }

.lightbox-bar {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 12px 24px 20px;
	font-size: .92rem;
	color: #cfc9d4;
}
.lightbox-caption { font-weight: 500; color: #fff; }

.lightbox-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
	.lightbox-stage { padding: 56px 8px 8px; }
	.lightbox-prev,
	.lightbox-next { top: auto; bottom: 8px; transform: none; }
	.lightbox-bar { padding-bottom: 72px; flex-direction: column; align-items: center; gap: 2px; }
}

body.has-lightbox { overflow: hidden; }

/* ---------- Postkaarten (archief 2020) ---------- */
.feature-img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------- Archiefbanner ---------- */
.archive-banner {
	padding: 12px 0;
	background: var(--color-accent);
	color: #fff;
	font-size: .92rem;
	text-align: center;
}
.archive-banner a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 64px 0 32px;
	background: var(--color-dark);
	color: var(--color-dark-text);
	font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent-light); }

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
	gap: 40px;
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	color: #fff;
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.2;
}
.footer-brand svg { width: 48px; height: 48px; flex: none; }
.footer-brand small { display: block; font-weight: 400; font-size: .8rem; color: var(--color-dark-text); }

.site-footer h2 {
	margin-bottom: .8em;
	font-size: .8rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 6px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .85rem;
}

@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Foutpagina ---------- */
.error-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
