:root {
  /* Motion tokens (transitions.dev) */
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Menu dropdown */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Lightbox modal */
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Lightbox photo crossfade */
  --lightbox-photo-dur: 180ms;
  --lightbox-photo-blur: 3px;
  --lightbox-photo-scale: 0.985;
  --lightbox-photo-ease: ease-in-out;
}

/* Native cross-document page transition (Chromium; no-op elsewhere) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--duration-fast);
  animation-timing-function: var(--ease-smooth-out);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e6dcc9;
  color: #372c1e;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a {
  color: #c05329;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: #8c3a1c;
}
::selection {
  background: #e3d3b5;
}
button {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.page-bg {
  min-height: 100vh;
  background: linear-gradient(215deg, #d8c5ab 0%, #e9dfcd 40%, #faf7f0 100%);
  background-attachment: fixed;
  padding: 36px 20px;
}
.sheet {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid rgba(55, 44, 30, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(55, 44, 30, 0.2);
  background: repeating-linear-gradient(0deg, #f8f4ea 0px, #f8f4ea 3px, #f4efe2 3px, #f4efe2 4px);
}

/* Header */
.header {
  position: relative;
  border-bottom: 1px solid rgba(55, 44, 30, 0.35);
  background: rgba(253, 251, 244, 0.6);
}
.header-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.header-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.55;
  pointer-events: none;
}
.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(253, 251, 244, 0.5) 0%,
    rgba(253, 251, 244, 0.2) 40%,
    rgba(253, 251, 244, 0.65) 75%,
    rgba(253, 251, 244, 0.95) 100%
  );
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
}
.header-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: calc(44px + env(safe-area-inset-top)) 28px 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #83715a;
}
.title-main {
  margin: 6px 0 0;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.tagline {
  font-style: italic;
  color: #83715a;
  font-size: 17px;
}

/* Nav */
.nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
}
.nav-btn {
  font-size: 16.5px;
  padding: 12px 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #372c1e;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover {
  color: #8c3a1c;
}
.nav-btn.active {
  font-weight: 600;
  border-bottom: 3px solid #c05329;
  color: #8c3a1c;
}
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 40px));
  background: #fdfbf4;
  border: 1px solid rgba(55, 44, 30, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(55, 44, 30, 0.18);
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.nav-drop-menu.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.nav-drop-menu.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity var(--dropdown-close-dur) var(--dropdown-ease);
}
@media (prefers-reduced-motion: reduce) {
  .nav-drop-menu {
    transition: none !important;
  }
}
.nav-drop-item {
  font-size: 15px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 11px 18px;
  background: none;
  border: none;
  border-bottom: 1px dotted rgba(55, 44, 30, 0.3);
  cursor: pointer;
  color: #372c1e;
  line-height: 1.3;
  text-decoration: none;
}
.nav-drop-item:hover {
  background: #f1ebdf;
  color: #8c3a1c;
}
.nav-drop-label {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-drop-year {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(55, 44, 30, 0.5);
  white-space: nowrap;
}
.nav-drop-item:hover .nav-drop-year {
  color: rgba(140, 58, 28, 0.7);
}

/* Mobile nav toggle: a full-width bar at the top of the sheet, part of the
   page chrome rather than a control floating over the hero photo. */
.nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 20px;
  background: #fdfbf4;
  border: none;
  border-bottom: 1px solid rgba(55, 44, 30, 0.35);
  cursor: pointer;
  color: #372c1e;
}
.nav-toggle:hover {
  background: #f1ebdf;
}
.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 13px;
  flex: none;
}
.nav-toggle-icon i,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: #372c1e;
  transition:
    transform var(--duration-quick) var(--ease-smooth-out),
    opacity var(--duration-quick) var(--ease-smooth-out);
}
.nav-toggle-icon::before {
  top: 0;
}
.nav-toggle-icon i {
  top: 5.5px;
}
.nav-toggle-icon::after {
  top: 11px;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-icon i {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-icon::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 18, 11, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--modal-open-dur) var(--modal-ease);
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-backdrop.is-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--modal-close-dur) var(--modal-ease);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(340px, 86vw);
  flex-direction: column;
  background: repeating-linear-gradient(0deg, #f8f4ea 0px, #f8f4ea 3px, #f4efe2 3px, #f4efe2 4px);
  border-left: 1px solid rgba(55, 44, 30, 0.35);
  border-radius: 22px 0 0 22px;
  box-shadow: -16px 0 40px rgba(55, 44, 30, 0.3);
  transform: translateX(100%);
  transition: transform var(--modal-open-dur) var(--modal-ease);
  overflow: hidden auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav.is-closing {
  transform: translateX(100%);
  transition: transform var(--modal-close-dur) var(--modal-ease);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-backdrop,
  .mobile-nav,
  .nav-toggle-icon i,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    transition: none !important;
  }
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 24px 16px;
  border-bottom: 3px double rgba(55, 44, 30, 0.35);
}
.mobile-nav-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #83715a;
  min-width: 0;
}
.mobile-nav-close {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(55, 44, 30, 0.35);
  background: #fdfbf4;
  font-size: 16px;
  cursor: pointer;
  color: #372c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out);
}
.mobile-nav-close:hover {
  background: #372c1e;
  color: #fdf9ef;
}
@media (pointer: coarse) {
  .mobile-nav-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 48px);
    height: max(100%, 48px);
    transform: translate(-50%, -50%);
  }
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px 0 28px;
}
.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  padding: 15px 22px 15px 19px;
  text-decoration: none;
  color: #372c1e;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: 1px dotted rgba(55, 44, 30, 0.25);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background var(--duration-quick) var(--ease-smooth-out);
}
.mobile-nav-link:hover {
  background: rgba(192, 83, 41, 0.08);
}
.mobile-nav-link.active {
  color: #8c3a1c;
  border-left-color: #c05329;
  background: rgba(192, 83, 41, 0.08);
}
.mobile-nav-chevron {
  flex: none;
  color: #83715a;
  font-size: 0.8em;
  transition: transform var(--duration-quick) var(--ease-smooth-out);
}
.mobile-nav-disclosure[aria-expanded='true'] .mobile-nav-chevron {
  transform: rotate(180deg);
}
.mobile-nav-submenu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: rgba(55, 44, 30, 0.04);
  transition: max-height var(--dropdown-open-dur) var(--dropdown-ease);
}
.mobile-nav-submenu.is-open {
  max-height: 800px;
}
.mobile-nav-sublink {
  font-size: 15.5px;
  padding: 12px 22px 12px 34px;
  text-decoration: none;
  color: #57493a;
  border-bottom: 1px dotted rgba(55, 44, 30, 0.18);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  transition: background var(--duration-quick) var(--ease-smooth-out);
}
.mobile-nav-sublink:hover {
  background: rgba(55, 44, 30, 0.06);
}
.mobile-nav-sublink:last-child {
  border-bottom: none;
}
.mobile-nav-sublink-year {
  flex: none;
  color: rgba(55, 44, 30, 0.5);
  font-size: 13px;
  white-space: nowrap;
}

/* Main */
.main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 28px 80px;
}

.photo-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.werk-card-thumb .photo-img,
.krant-thumb .photo-img,
.beheerder-avatar .photo-img,
.beeld-card-thumb .photo-img {
  height: 100%;
}
.beheerder-avatar .photo-img {
  border-radius: 50%;
}
.foto-figure .photo-img,
.photo-figure .photo-img {
  aspect-ratio: 4 / 3;
}
.krant-photo {
  height: 240px;
}

.h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
}
.body-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-size: 17px;
  border-radius: 10px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: #372c1e;
  color: #fdf9ef;
}
.btn-primary:hover {
  background: #8c3a1c;
  color: #fdf9ef;
}
.btn-secondary {
  background: transparent;
  color: #372c1e;
  border: 1px solid rgba(55, 44, 30, 0.5);
}
.btn-secondary:hover {
  background: #e8ddc9;
  color: #372c1e;
}

/* Home layout */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.home-main-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.home-aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.aside-card {
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
}
.aside-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #83715a;
  border-bottom: 1px solid rgba(55, 44, 30, 0.25);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.krant-caption {
  margin: 12px 0 0;
  font-size: 16px;
  font-style: italic;
  color: #57493a;
  line-height: 1.5;
}
.home-disclaimer {
  font-style: italic;
  color: #83715a;
  font-size: 16.5px;
}

/* Geschiedenis */
.geschiedenis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  align-items: start;
}
.article {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hoofdstuk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(55, 44, 30, 0.25);
  padding-top: 24px;
}
.hoofdstuk-titel {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
}
.hoofdstuk-titel span {
  color: #c05329;
}
.body-text-lg {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.68;
  text-wrap: pretty;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.photo-figure {
  margin: 0;
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-caption {
  margin: 0;
  font-size: 14.5px;
  font-style: italic;
  color: #57493a;
  line-height: 1.35;
}
.photo-grid-scroller {
  position: relative;
}
.photo-grid-nav {
  display: none;
}
.photo-grid-dots {
  display: none;
}
.photo-grid-dot {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(55, 44, 30, 0.25);
  cursor: pointer;
  transition:
    background var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out);
}
.photo-grid-dot.active {
  background: #c05329;
  transform: scale(1.3);
}
@media (pointer: coarse) {
  .photo-grid-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}
.tijdlijn-aside {
  position: sticky;
  top: 24px;
  border-left: 2px solid rgba(55, 44, 30, 0.35);
  padding-left: 22px;
}
.tijdlijn-item {
  position: relative;
  padding: 0 0 22px;
}
.tijdlijn-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c05329;
  border: 2px solid #f8f4ea;
}
.tijdlijn-jaar {
  font-weight: 600;
  font-size: 19px;
}
.tijdlijn-tekst {
  display: block;
  font-size: 15.5px;
  line-height: 1.4;
  color: #57493a;
}
.tijdlijn-tekst-link {
  text-decoration: none;
  cursor: pointer;
}
.tijdlijn-tekst-link:hover {
  color: #8c3a1c;
}
.tijdlijn-tekst-icon {
  display: inline-block;
  margin-left: 5px;
  color: #c05329;
  font-size: 0.85em;
  transition: transform var(--duration-quick) var(--ease-smooth-out);
}
.tijdlijn-tekst-link:hover .tijdlijn-tekst-icon {
  transform: translateX(2px);
}

/* Werkzaamheden landing */
.werk-landing {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.werk-intro {
  max-width: 720px;
}
.werk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.werk-card {
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
  display: flex;
  gap: 14px;
  padding: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.werk-card:hover {
  background: #f1ebdf;
  box-shadow: 0 5px 14px rgba(55, 44, 30, 0.16);
}
.werk-card-thumb {
  width: 150px;
  height: 120px;
  flex: none;
}
.werk-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.werk-card-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #83715a;
}
.werk-card-titel {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}
.werk-card-more {
  font-size: 15.5px;
  color: #c05329;
}

/* Werkzaamheden sub */
.werk-sub-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.werk-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
}
.werk-sidebar-back {
  font-size: 16px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(55, 44, 30, 0.25);
  cursor: pointer;
  color: #c05329;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.werk-sidebar-back:hover {
  background: #f1ebdf;
}
.werk-menu-item {
  font-size: 16.5px;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  background: none;
  border: none;
  border-bottom: 1px dotted rgba(55, 44, 30, 0.3);
  cursor: pointer;
  color: #372c1e;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.werk-menu-item:hover {
  background: #f1ebdf;
}
.werk-menu-item.active {
  font-weight: 600;
  color: #8c3a1c;
  background: #f1ebdf;
  border-left: 3px solid #c05329;
}
.werk-sub-article {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}
.werk-sub-titel {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
}
.werk-sub-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(55, 44, 30, 0.25);
  padding-top: 22px;
}
.werk-sub-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15.5px;
  color: #57493a;
  margin: 0;
}
.werk-sub-nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-top: 1px solid rgba(55, 44, 30, 0.25);
  padding-top: 16px;
}
.werk-sub-nav-btn {
  font-size: 16px;
  border-radius: 9px;
  padding: 8px 16px;
  background: none;
  border: 1px solid rgba(55, 44, 30, 0.4);
  cursor: pointer;
  color: #372c1e;
  text-decoration: none;
}
.werk-sub-nav-btn:hover {
  background: #e8ddc9;
}

/* Beeldmateriaal */
.beeld-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.beeld-intro {
  margin: 0;
  font-size: 18px;
  color: #57493a;
  max-width: 640px;
  line-height: 1.6;
}
.beeld-back {
  display: inline-block;
  font-size: 14.5px;
  color: #83715a;
  text-decoration: none;
  margin-bottom: 10px;
}
.beeld-back:hover {
  color: #8c3a1c;
}

/* Beeldmateriaal landing */
.beeld-landing {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.beeld-landing-intro {
  max-width: 720px;
}
.beeld-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.beeld-card {
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.beeld-card:hover {
  background: #f1ebdf;
  box-shadow: 0 5px 14px rgba(55, 44, 30, 0.16);
}
.beeld-card-thumb {
  aspect-ratio: 4 / 3;
}
.beeld-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.beeld-card-titel {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}
.beeld-card-desc {
  margin: 0;
  font-size: 15.5px;
  color: #57493a;
  line-height: 1.45;
}
.beeld-card-more {
  font-size: 15.5px;
  color: #c05329;
  margin-top: 4px;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.foto-figure {
  margin: 0;
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-caption-text {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: #57493a;
  line-height: 1.35;
}

/* Clickable photo triggers (fotoalbum + inline photo grids) */
.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
}
.lightbox-trigger .photo-img {
  transition: opacity var(--duration-quick) var(--ease-smooth-out);
}
.lightbox-trigger:hover .photo-img,
.lightbox-trigger:focus-visible .photo-img {
  opacity: 0.85;
}
.lightbox-trigger:focus-visible {
  outline: 2px solid #c05329;
  outline-offset: 3px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pagination-btn,
.pagination-page {
  font-size: 15px;
  border-radius: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(55, 44, 30, 0.35);
  background: #fdfbf4;
  color: #372c1e;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.pagination-page {
  padding: 8px 13px;
  min-width: 18px;
  text-align: center;
}
.pagination-btn:hover,
.pagination-page:hover {
  background: #f1ebdf;
}
.pagination-page.active {
  background: #372c1e;
  color: #fdf9ef;
  border-color: #372c1e;
  font-weight: 600;
}
.pagination-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.pagination-status {
  display: none;
  font-size: 15px;
  color: #57493a;
}

/* Lightbox overlay */
body.scroll-locked {
  overflow: hidden;
}
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: rgba(23, 18, 11, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--modal-open-dur) var(--modal-ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox.is-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--modal-close-dur) var(--modal-ease);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  transform: scale(var(--modal-scale));
  opacity: 0;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.lightbox.is-open .lightbox-inner {
  transform: scale(1);
  opacity: 1;
}
.lightbox.is-closing .lightbox-inner {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity var(--modal-close-dur) var(--modal-ease);
}
.lightbox-photo {
  width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition:
    opacity var(--lightbox-photo-dur) var(--lightbox-photo-ease),
    filter var(--lightbox-photo-dur) var(--lightbox-photo-ease),
    transform var(--lightbox-photo-dur) var(--lightbox-photo-ease);
  will-change: opacity, filter, transform;
}
.lightbox-img.is-exit {
  opacity: 0;
  filter: blur(var(--lightbox-photo-blur));
  transform: scale(var(--lightbox-photo-scale));
}
.lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.lightbox-caption {
  color: #e8ddc9;
  font-style: italic;
  font-size: 16px;
  max-width: 700px;
}
.lightbox-counter {
  color: rgba(232, 221, 201, 0.6);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  background: rgba(23, 18, 11, 0.55);
  color: #fdf9ef;
  border: 1px solid rgba(253, 249, 239, 0.4);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--modal-open-dur) var(--modal-ease);
  will-change: opacity;
}
.lightbox.is-open .lightbox-close,
.lightbox.is-open .lightbox-nav {
  opacity: 1;
}
.lightbox.is-closing .lightbox-close,
.lightbox.is-closing .lightbox-nav {
  opacity: 0;
  transition: opacity var(--modal-close-dur) var(--modal-ease);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(23, 18, 11, 0.75);
}
@media (pointer: coarse) {
  .lightbox-close::after,
  .lightbox-nav::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 48px);
    height: max(100%, 48px);
    transform: translate(-50%, -50%);
  }
}
.lightbox-close {
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-nav[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-inner,
  .lightbox-close,
  .lightbox-nav,
  .lightbox-img {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .lightbox {
    padding: 76px 12px 24px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

.beeld-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  border-top: 3px double rgba(55, 44, 30, 0.35);
  padding-top: 32px;
}
.beeld-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
}
.film-box {
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #372c1e;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.film-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.film-caption {
  margin: 0;
  font-size: 16.5px;
  color: #57493a;
  font-style: italic;
}
.krant-item {
  display: flex;
  gap: 14px;
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
}
.krant-thumb {
  width: 130px;
  height: 150px;
  flex: none;
}
.krant-kop {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}
.krant-bron {
  font-size: 15px;
  color: #83715a;
  font-style: italic;
}

/* Contact */
.contact-wrap {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-card {
  border: 1px solid rgba(55, 44, 30, 0.3);
  background: #fdfbf4;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(55, 44, 30, 0.1);
}
.beheerder-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px dotted rgba(55, 44, 30, 0.3);
}
.beheerder-avatar {
  width: 56px;
  height: 56px;
  flex: none;
}
.beheerder-info {
  min-width: 0;
}
.beheerder-naam {
  font-weight: 600;
  font-size: 20px;
}
.beheerder-rol {
  font-size: 16px;
  color: #57493a;
  font-style: italic;
}
.beheerder-email {
  font-size: 16px;
  font-family: ui-monospace, Menlo, monospace;
  color: #c05329;
  overflow-wrap: break-word;
}
.contact-note {
  margin: 0;
  font-size: 16.5px;
  color: #83715a;
  font-style: italic;
}

/* Footer */
.footer {
  border-top: 3px double rgba(55, 44, 30, 0.35);
  background: rgba(253, 251, 244, 0.6);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 28px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15.5px;
  color: #83715a;
}
.footer-right {
  font-style: italic;
}

@media (max-width: 900px) {
  .foto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .beeld-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .home-grid,
  .geschiedenis-grid,
  .werk-sub-grid,
  .beeld-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .werk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tijdlijn-aside {
    position: static;
  }
  .werk-sidebar {
    display: none;
  }
  .title-main {
    font-size: 34px;
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 20;
  }
  .mobile-nav {
    display: flex;
    width: 100%;
    border-left: none;
    border-radius: 0;
  }
  .header-inner {
    padding-bottom: 28px;
  }
  .page-bg {
    padding: 0;
  }
  .sheet {
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .photo-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .photo-grid::-webkit-scrollbar {
    display: none;
  }
  .photo-figure {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: center;
  }
  .photo-grid-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .photo-grid-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(253, 251, 244, 0.92);
    border: 1px solid rgba(55, 44, 30, 0.35);
    color: #372c1e;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(55, 44, 30, 0.18);
    z-index: 2;
  }
  .photo-grid-nav:hover {
    background: #fdfbf4;
  }
  .photo-grid-prev {
    left: 4px;
  }
  .photo-grid-next {
    right: 4px;
  }
  @media (pointer: coarse) {
    .photo-grid-nav::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: max(100%, 44px);
      height: max(100%, 44px);
      transform: translate(-50%, -50%);
    }
  }
}

@media (max-width: 560px) {
  .foto-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .beeld-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: calc(32px + env(safe-area-inset-top)) 16px 22px;
  }
  .main {
    padding: 32px 16px 56px;
  }
  .footer-inner {
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .title-main {
    font-size: 27px;
  }
  .h2 {
    font-size: 25px;
  }
  .h3,
  .hoofdstuk-titel {
    font-size: 21px;
  }
  .werk-sub-titel {
    font-size: 26px;
  }
  .werk-card {
    flex-direction: column;
  }
  .werk-card-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .krant-item {
    flex-direction: column;
  }
  .krant-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .pagination-pages {
    display: none;
  }
  .pagination-status {
    display: inline;
  }
  .pagination-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}
