.gallery-page { background: #f7f4ed; }

.gallery-hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(58px, 8vw, 98px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(10, 45, 56, 0.97), rgba(18, 61, 75, 0.82)),
    url("../assets/gallery/full/auz-012-flickr.jpg") center 48% / cover;
}

.gallery-hero-inner { max-width: 920px; }
.gallery-hero .eyebrow { color: var(--yellow); }
.gallery-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3rem, 8vw, 6.6rem); line-height: 0.94; }
.gallery-hero-inner > p:not(.eyebrow) { max-width: 700px; margin: 26px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; }

.gallery-content { padding-block: clamp(58px, 8vw, 100px); }
.gallery-intro { margin-bottom: 40px; display: grid; grid-template-columns: 1fr minmax(280px, 480px); align-items: end; gap: 40px; }
.gallery-intro h2 { margin: 0; }
.gallery-intro > p { margin: 0; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 16px; }
.gallery-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 20px; color: #fff; background: var(--navy); cursor: zoom-in; box-shadow: 0 12px 30px rgba(18, 42, 52, 0.11); }
.gallery-item-wide { grid-column: span 2; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease, filter 280ms ease; }
.gallery-item::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6, 31, 39, 0.82)); pointer-events: none; }
.gallery-item span { position: absolute; z-index: 1; right: 18px; bottom: 15px; left: 18px; font-size: 0.92rem; font-weight: 850; text-align: left; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); filter: saturate(1.08); }

.gallery-dialog { width: min(1120px, calc(100% - 30px)); max-width: none; max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; color: #fff; background: #071f27; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5); }
.gallery-dialog::backdrop { background: rgba(2, 16, 21, 0.88); backdrop-filter: blur(8px); }
.gallery-dialog-inner { position: relative; min-height: 360px; display: grid; place-items: center; }
.gallery-dialog figure { width: 100%; margin: 0; display: grid; }
.gallery-dialog figure img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.gallery-dialog figcaption { min-height: 58px; padding: 16px 76px; color: rgba(255, 255, 255, 0.82); background: #071f27; text-align: center; }
.gallery-close, .gallery-previous, .gallery-next { position: absolute; z-index: 2; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(7, 31, 39, 0.78); font: inherit; font-size: 1.45rem; cursor: pointer; backdrop-filter: blur(8px); }
.gallery-close { top: 16px; right: 16px; }
.gallery-previous { left: 16px; }
.gallery-next { right: 16px; }
.gallery-close:hover, .gallery-previous:hover, .gallery-next:hover { color: var(--navy-deep); background: var(--yellow); }

@media (max-width: 820px) {
  .gallery-intro { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
}

@media (max-width: 560px) {
  .gallery-hero { padding-block: 62px 52px; }
  .gallery-hero h1 { font-size: clamp(3rem, 17vw, 4.8rem); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-item-wide { grid-column: auto; }
  .gallery-item-tall { grid-row: auto; }
  .gallery-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .gallery-dialog figcaption { padding-inline: 58px; font-size: 0.84rem; }
  .gallery-close, .gallery-previous, .gallery-next { width: 42px; height: 42px; }
  .gallery-close { top: 10px; right: 10px; }
  .gallery-previous { left: 10px; }
  .gallery-next { right: 10px; }
}
