    :root {
      --green-950: #101a10;
      --green-900: #172317;
      --green-850: #1d2a1c;
      --cream: #f2eee3;
      --cream-muted: #d8d3c8;
      --gold: #c1a06a;
      --gold-light: #d2bb8d;
      --text: #303329;
      --muted: #74776e;
      --white: #ffffff;
      --header-height: 78px;
      --content-width: 1220px;
    }

  

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }



    /* ========================================
       Galerij
    ======================================== */

    .gallery-page {
      min-height: 70vh;
      padding: clamp(38px, 5vw, 68px) 0 clamp(76px, 8vw, 118px);
      background:
        radial-gradient(
          circle at 92% 7%,
          rgba(193, 160, 106, 0.07),
          transparent 26%
        ),
        #ffffff;
    }

    .gallery-page__inner {
      width: min(calc(100% - 48px), var(--content-width));
      margin-inline: auto;
    }

    .gallery-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(48, 51, 41, 0.09);
    }

    .gallery-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .gallery-chip {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 17px;
      color: #454a40;
      background: #ffffff;
      border: 1px solid rgba(41, 53, 37, 0.15);
      border-radius: 999px;
      text-transform: uppercase;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.15em;
      cursor: pointer;
      transition:
        transform 160ms ease,
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
    }

    .gallery-chip__icon {
      font-size: 14px;
      line-height: 1;
    }

    .gallery-chip:hover,
    .gallery-chip:focus-visible {
      transform: translateY(-1px);
      color: #2c3329;
      border-color: rgba(193, 160, 106, 0.65);
      box-shadow: 0 8px 20px rgba(54, 45, 31, 0.07);
    }

    .gallery-chip.is-active,
    .gallery-chip.is-active:hover,
    .gallery-chip.is-active:focus-visible {
      color: #ffffff;
      background: var(--gold);
      border-color: var(--gold);
      box-shadow: 0 8px 18px rgba(193, 160, 106, 0.2);
      transform: none;
    }

    .gallery-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin: 20px 0 18px;
    }

    .gallery-count {
      margin: 0;
      color: #9a8159;
      text-transform: uppercase;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.17em;
    }

    .gallery-empty {
      display: none;
      margin: 52px 0;
      color: var(--muted);
      text-align: center;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 24px;
    }

    .gallery-empty.is-visible {
      display: block;
    }

    /*
      Masonry met CSS columns:
      - liggende foto's behouden hun verhouding;
      - staande foto's behouden hun verhouding;
      - foto's worden niet vervormd of afgesneden.
    */
    .gallery-masonry {
      columns: 4;
      column-gap: 12px;
    }

    .gallery-card {
      position: relative;
      break-inside: avoid;
      margin: 0 0 12px;
      overflow: hidden;
      border-radius: 6px;
      background: #eee9df;
      box-shadow: 0 8px 22px rgba(53, 47, 37, 0.09);
      animation: cardReveal 360ms ease both;
    }

    .gallery-card.is-hidden {
      display: none;
    }

    .gallery-card button {
      width: 100%;
      display: block;
      padding: 0;
      overflow: hidden;
      background: transparent;
      border: 0;
      cursor: zoom-in;
    }

    .gallery-card img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
      object-position: center;
      transition:
        transform 500ms ease,
        filter 250ms ease;
    }

    .gallery-card::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(
          180deg,
          transparent 65%,
          rgba(18, 27, 17, 0.08)
        );
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }

    .gallery-card:hover img {
      transform: scale(1.025);
      filter: saturate(1.03) contrast(1.02);
    }

    /* ========================================
       Lightbox
    ======================================== */

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 28px;
      background: rgba(8, 13, 8, 0.92);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition:
        opacity 180ms ease,
        visibility 0s linear 180ms;
    }

    .lightbox.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition-delay: 0s;
    }

    .lightbox__figure {
      max-width: min(1100px, 94vw);
      max-height: 90vh;
      margin: 0;
      display: grid;
      gap: 12px;
      justify-items: center;
    }

    .lightbox__image {
      max-width: 100%;
      max-height: 82vh;
      display: block;
      object-fit: contain;
      border-radius: 5px;
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    }

    .lightbox__caption {
      color: #ddd8cd;
      font-size: 13px;
      text-align: center;
    }

    .lightbox__close {
      position: absolute;
      top: 18px;
      right: 20px;
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 50%;
      font-size: 25px;
      cursor: pointer;
    }

    /* ========================================
       Animaties
    ======================================== */

    @keyframes galleryHeroContent {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes galleryHeroImage {
      from {
        opacity: 0;
        transform: scale(1.045);
      }

      to {
        opacity: 1;
        transform: scale(1.01);
      }
    }

    @keyframes cardReveal {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ========================================
       Responsive
    ======================================== */

    @media (max-width: 980px) {
      :root {
        --header-height: 70px;
      }

            .gallery-hero__content {
        width: min(430px, 57vw);
      }

      .gallery-toolbar {
        align-items: flex-start;
      }

      .gallery-masonry {
        columns: 3;
      }
    }

    @media (max-width: 700px) {
            .gallery-hero {
        min-height: 470px;
      }

      .gallery-hero__media img {
        object-position: 64% center;
      }

      .gallery-hero__overlay {
        background:
          linear-gradient(
            180deg,
            rgba(8, 14, 8, 0.24) 0%,
            rgba(8, 14, 8, 0.3) 35%,
            rgba(8, 14, 8, 0.86) 72%,
            rgba(8, 14, 8, 0.99) 100%
          ),
          linear-gradient(
            90deg,
            rgba(8, 14, 8, 0.65),
            rgba(8, 14, 8, 0.05)
          );
      }

      .gallery-hero__inner {
        padding-block: 64px 45px;
      }

      .gallery-hero__content {
        width: 100%;
      }

      .gallery-hero h1 {
        font-size: clamp(48px, 15vw, 64px);
      }

      .gallery-toolbar {
        flex-direction: column;
      }

      .gallery-filters {
        width: 100%;
      }

      .gallery-chip {
        flex: 1 1 calc(50% - 5px);
      }

      .gallery-masonry {
        columns: 2;
        column-gap: 10px;
      }

      .gallery-card {
        margin-bottom: 10px;
      }

          }

    @media (max-width: 440px) {
      .gallery-masonry {
        columns: 1;
      }

      .gallery-chip {
        flex-basis: 100%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }