
    body.gallery-page {
      color: #e7e9f5;
    }

    .gallery-shell {
      width: min(1180px, calc(100vw - 2.5rem));
      margin: clamp(2.5rem, 5vw, 4rem) auto;
      display: flex;
      flex-direction: column;
      gap: clamp(1.6rem, 2vw, 2.2rem);
    }

    .photo-hero {
      position: relative;
      overflow: hidden;
      padding: clamp(1.8rem, 4vw, 3rem);
      border-radius: var(--radius-lg);
      border: 1px solid rgba(246, 234, 214, 0.12);
      background:
        radial-gradient(circle at 18% 18%, rgba(216, 169, 74, 0.18), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(125, 29, 47, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(16, 7, 11, 0.96) 0%, rgba(31, 11, 16, 0.92) 55%, rgba(11, 4, 6, 0.98) 100%);
      box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
      isolation: isolate;
    }

    .photo-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
      pointer-events: none;
      opacity: 0.4;
    }

    .photo-hero .hero-kicker {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.45rem;
      padding: 0.35rem 0.9rem;
      border: 1px solid rgba(246, 234, 214, 0.14);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      color: #f0d89f;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.78rem;
    }

    .photo-hero .hero-kicker a {
      color: inherit;
      text-decoration: none;
      transition: color 180ms ease, opacity 180ms ease;
    }

    .photo-hero .hero-kicker a:hover,
    .photo-hero .hero-kicker a:focus-visible {
      color: #fff8eb;
      opacity: 1;
    }

    .photo-hero h1 {
      margin: 0.4rem 0 0.5rem;
      font-family: var(--font-display);
      font-size: clamp(2.6rem, 6vw, 3.6rem);
      letter-spacing: 0.08em;
      color: #ffffff;
      text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .photo-hero p,
    .gallery-intro {
      max-width: 52rem;
      color: #d8d6db;
      line-height: 1.8;
      font-size: 1.05rem;
    }

    .gallery-intro {
      margin: 0 auto;
      text-align: center;
    }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: clamp(0.9rem, 2vw, 1.35rem);
    }

    .photo-card {
      position: relative;
      display: block;
      width: 100%;
      padding: 0;
      border: 1px solid rgba(246, 234, 214, 0.1);
      border-radius: 18px;
      background: linear-gradient(155deg, rgba(24, 13, 18, 0.9), rgba(14, 7, 10, 0.92));
      box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      overflow: hidden;
      cursor: pointer;
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .photo-card:focus-visible {
      outline: 3px solid rgba(216, 169, 74, 0.55);
      outline-offset: 3px;
    }

    .photo-card img {
      width: 100%;
      height: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      transition: transform 220ms ease, filter 220ms ease;
    }

    .photo-card:hover,
    .photo-card:focus-visible {
      transform: translateY(-4px);
      border-color: rgba(223, 184, 92, 0.34);
      box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(246, 234, 214, 0.08);
    }

    .photo-card:hover img,
    .photo-card:focus-visible img {
      transform: scale(1.04);
      filter: saturate(1.08);
    }

    .photo-meta {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 0.85rem 1rem;
      background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 58%, rgba(0, 0, 0, 0.92) 100%);
      color: #f5f7ff;
      display: flex;
      flex-direction: column;
      gap: 0.18rem;
      pointer-events: none;
    }

    .photo-meta strong {
      font-family: var(--font-ui);
      letter-spacing: 0.05em;
      font-size: 0.9rem;
    }

    .photo-meta span {
      font-size: 0.92rem;
      color: #c7ccda;
      line-height: 1.5;
    }

    .lightbox-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(2px);
      display: none;
      z-index: 60;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 61;
      padding: 1.5rem;
    }

    .lightbox__inner {
      position: relative;
      width: min(96vw, 1080px);
      max-height: 92vh;
      background: #0b0c12;
      border: 1px solid rgba(246, 234, 214, 0.14);
      border-radius: 18px;
      box-shadow: 0 28px 76px rgba(0, 0, 0, 0.6);
      padding: clamp(1rem, 2vw, 1.6rem);
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .lightbox__img {
      width: 100%;
      height: auto;
      max-height: calc(92vh - 6rem);
      object-fit: contain;
      border-radius: 12px;
      background: #050508;
    }

    .lightbox__caption {
      color: #d8d6db;
      font-size: 0.98rem;
      line-height: 1.6;
    }

    .lightbox__close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      border: 1px solid rgba(246, 234, 214, 0.22);
      background: linear-gradient(145deg, #1a1c27, #0f1119);
      color: #f5f7ff;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    }

    .lightbox__close:hover,
    .lightbox__close:focus-visible {
      transform: translateY(-2px);
      border-color: rgba(223, 184, 92, 0.42);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .no-scroll {
      overflow: hidden;
    }

    @media screen and (max-width: 767px) {
      .gallery-shell {
        width: min(100%, var(--section-width));
        margin: clamp(2rem, 6vw, 3rem) auto;
        gap: 1.3rem;
      }

      .photo-hero {
        padding: 1.6rem 1.4rem;
      }

      .photo-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.9rem);
      }

      .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.85rem;
      }

      .lightbox__inner {
        width: min(98vw, 900px);
      }
    }
  

#photoLightbox.is-visible { display: flex; }
#lightboxBackdrop.is-visible { display: block; }
