    /* =========================================================
       GALLERY PAGE
       5 columns, 8 photos per block (repeats for more photos):
         col 1: tall + short   col 2: full height
         col 3: half + half    col 4: full height
         col 5: half + half
       On desktop the whole grid fits between the navbar and the footer.
       ========================================================= */
    .gallery-wrap {
      width: min(1400px, 100% - 2 * var(--gutter));
      margin: 0 auto;
      padding: 24px 0;
    }

    .gallery {
      --gap: clamp(6px, .6vw, 10px);
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      grid-template-rows: repeat(12, minmax(0, 1fr));
      gap: var(--gap);
      height: max(460px, calc(100vh - var(--header-h) - var(--footer-h) - 48px));
      margin: 0;
      padding: 0;
      list-style: none;
    }

    @supports (height: 100dvh) {
      .gallery { height: max(460px, calc(100dvh - var(--header-h) - var(--footer-h) - 48px)); }
    }

    .g1 { grid-column: 1; grid-row: 1 / 8; }
    .g2 { grid-column: 1; grid-row: 8 / 13; }
    .g3 { grid-column: 2; grid-row: 1 / 13; }
    .g4 { grid-column: 3; grid-row: 1 / 7; }
    .g5 { grid-column: 3; grid-row: 7 / 13; }
    .g6 { grid-column: 4; grid-row: 1 / 13; }
    .g7 { grid-column: 5; grid-row: 1 / 7; }
    .g8 { grid-column: 5; grid-row: 7 / 13; }

    /* More than 8 photos: the mosaic repeats, one block per 8 photos */
    .gallery + .gallery { margin-top: var(--gap, 10px); }

    /* Last block with fewer than 8 photos: simple even grid */
    .gallery--rest {
      grid-template-rows: none;
      grid-auto-rows: auto;
      height: auto;
    }

    .gallery--rest .tile { aspect-ratio: 4 / 5; }

    .tile { position: relative; overflow: hidden; }

    .tile button {
      display: block;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      background: #2a1a0c;
      cursor: zoom-in;
    }

    .tile img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .9s var(--ease), filter .6s var(--ease);
    }

    .tile button:hover img,
    .tile button:focus-visible img { transform: scale(1.05); filter: brightness(1.06); }

    .tile button:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }

    /* ---------- Reveal ---------- */
    .js .tile {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .8s var(--ease), transform .8s var(--ease);
      transition-delay: calc(var(--i, 0) * 70ms);
    }

    .js .gallery.is-visible .tile { opacity: 1; transform: none; }

    /* ---------- Lightbox ---------- */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 56px 72px;
      background: rgba(20, 10, 2, .92);
      opacity: 0;
      visibility: hidden;
      transition: opacity .35s ease, visibility .35s;
    }

    .lightbox.is-open { opacity: 1; visibility: visible; }

    .lightbox img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    }

    .lb-btn {
      position: absolute;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(243, 230, 211, .6);
      border-radius: 50%;
      background: none;
      color: var(--cream);
      cursor: pointer;
      transition: background-color .3s var(--ease);
    }

    .lb-btn:hover,
    .lb-btn:focus-visible { background: rgba(243, 230, 211, .14); }

    .lb-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

    .lb-btn svg { width: 20px; height: 20px; }

    .lb-close { top: 18px; right: 18px; }
    .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
    .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

    @media (prefers-reduced-motion: reduce) {
      .js .tile { opacity: 1; transform: none; transition: none; }
      .tile img { transition: none; }
    }

    /* ---------- Tablet / mobile: 2 columns that scroll ---------- */
    @media (max-width: 860px) {
      .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 150px;
        height: auto;
      }

      .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8 { grid-column: auto; grid-row: span 1; }

      .g1, .g3, .g6 { grid-row: span 2; }

      .gallery--rest { grid-auto-rows: 150px; }
      .gallery--rest .tile { aspect-ratio: auto; }

      .lightbox { padding: 64px 12px; }

      .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
    }

    /* =========================================================
       INTRO (headline, paragraph, button) above the photos
       ========================================================= */
    :root {
      --font-display: "Forum", "Times New Roman", serif;
      --font-serif: "Libre Caslon Text", Georgia, serif;
    }

    .gallery-intro {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: min(760px, 100% - 2 * var(--gutter));
      margin: 0 auto;
      padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 1.5vw, 16px);
      text-align: center;
    }

    .display {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 400;
      line-height: .98;
      text-transform: uppercase;
      color: var(--espresso);
    }

    .gallery-intro-title { font-size: clamp(34px, 5vw, 60px); margin-bottom: 26px; }

    .o-star { position: relative; }
    .o-star::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 52%;
      width: .15em;
      height: .15em;
      transform: translate(-50%, -50%);
      background: currentColor;
      clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    }

    .body-text {
      margin: 0 0 34px;
      font-family: var(--font-serif);
      font-size: clamp(16px, 1.35vw, 18px);
      line-height: 1.6;
      color: #4A2F1C;
    }

    .arrow-circle {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 46px;
      flex: 0 0 auto;
    }

    .arrow-circle::before {
      content: "";
      position: absolute;
      right: 0;
      top: 0;
      width: 46px;
      height: 46px;
      border: 1px solid var(--espresso);
      border-radius: 50%;
      transition: background-color .35s var(--ease);
    }

    .arrow-circle svg {
      position: absolute;
      left: 0;
      top: 50%;
      width: 44px;
      height: 14px;
      transform: translateY(-50%);
      transition: transform .35s var(--ease);
    }


    a:hover > .arrow-circle svg,
    a:focus-visible > .arrow-circle svg { transform: translate(8px, -50%); }

    a:hover > .arrow-circle::before,
    a:focus-visible > .arrow-circle::before { background: rgba(53, 25, 4, .06); }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 32px;
      color: var(--espresso);
      text-decoration: none;
    }

    .btn-outline-label {
      padding: 13px 22px;
      border: 1px solid var(--espresso);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: .24em;
      text-transform: uppercase;
      transition: background-color .3s var(--ease), color .3s var(--ease);
    }

    .btn-outline:hover .btn-outline-label,
    .btn-outline:focus-visible .btn-outline-label { background: var(--espresso); color: var(--cream); }

    .btn-outline:focus-visible { outline: 2px solid var(--espresso); outline-offset: 6px; }


    .js .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .9s var(--ease), transform .9s var(--ease);
      transition-delay: calc(var(--i, 0) * 90ms);
    }

    .js .reveal.is-visible { opacity: 1; transform: none; }

    @media (prefers-reduced-motion: reduce) {
      .js .reveal { opacity: 1; transform: none; transition: none; }
    }
