.gallery {
  position: relative;
  overflow: clip;
  padding: clamp(88px, 13vw, 180px) clamp(24px, 6vw, 100px) clamp(96px, 14vw, 190px);
  background: radial-gradient(ellipse 60% 28% at 30% 16%, #29152260, transparent 85%);
}

.gallery-light {
  position: absolute;
  top: 0;
  right: -20%;
  width: min(100%, 1500px);
  opacity: .24;
  mix-blend-mode: screen;
  filter: blur(14px);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 68%);
}

.gallery-content {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.gallery-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 92px);
}

.gallery-heading p {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.gallery-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(3.5rem, 7.2vw, 7.8rem) / .88 var(--heading);
  text-wrap: balance;
}

.gallery-heading h2 em { display: block; color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(36px, 6vw, 84px) clamp(28px, 7vw, 112px);
  margin-top: clamp(48px, 8vw, 120px);
}

.gallery-shot { min-width: 0; margin: 0; }
.gallery-portrait { grid-row: 1 / span 2; margin-top: clamp(0px, 5vw, 72px); }
.gallery-props { grid-column: 1 / -1; justify-self: center; width: min(80%, 960px); }

.gallery-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  background: #1a1212;
  box-shadow: 0 18px 55px #0008;
}

.gallery-portrait .gallery-image { aspect-ratio: 4 / 5; }
.gallery-props .gallery-image { aspect-ratio: 20 / 9; }
.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-portrait img { object-position: center 46%; }

.gallery-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid #f3ece033;
  pointer-events: none;
  content: "";
}

.gallery-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #f3ece077;
  border-radius: 50%;
  background: #000a;
  color: var(--ink);
}
.gallery-expand::before, .gallery-expand::after {
  grid-area: 1 / 1;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
}
.gallery-expand::after { rotate: 90deg; }
.gallery-image:is(:hover, :focus-visible) .gallery-expand { border-color: var(--gold); color: var(--gold); }

.gallery-shot figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #f3ece0d9;
  font: italic 400 clamp(1.25rem, 2.2vw, 1.65rem) / 1.2 var(--heading);
}
.gallery-shot figcaption::before { width: 24px; height: 1px; background: var(--gold); content: ""; }

.gallery-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #f3ece044;
  background: #080607;
  color: var(--ink);
}

.gallery-dialog::backdrop { background: #000e; }
.gallery-viewer { padding: clamp(12px, 3vw, 28px); }
.gallery-viewer figure { margin: 16px 0; }
.gallery-viewer figure img {
  display: block;
  width: 100%;
  height: min(63vh, 720px);
  height: min(63dvh, 720px);
  object-fit: contain;
  background: #000;
}
.gallery-viewer figcaption {
  margin-top: 10px;
  font: italic 400 clamp(1.4rem, 3vw, 2.1rem) var(--heading);
  text-align: center;
}
.gallery-toolbar, .gallery-viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-toolbar span { color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.gallery-viewer-button {
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid #f3ece066;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.gallery-viewer-button:is(:hover, :focus-visible) { border-color: var(--gold); color: var(--gold); }
.gallery-nav-short { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .gallery-image img { transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
  .gallery-image:is(:hover, :focus-visible) img { transform: scale(1.045); }
  .gallery-dialog[open] { animation: gallery-reveal 260ms ease-out both; }
}

@keyframes gallery-reveal {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .gallery { padding-inline: clamp(16px, 5vw, 32px); }
  .gallery-opening, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-opening { gap: 30px; }
  .gallery-grid { gap: 36px; }
  .gallery-heading h2 { font-size: clamp(3rem, 13vw, 6rem); }
  .gallery-heading h2 em { display: inline; }
  .gallery-heading p { margin-bottom: 12px; }
  .gallery-portrait { width: min(86%, 480px); grid-row: auto; margin-top: 0; }
  .gallery-props { width: 100%; }
  .gallery-light { right: -38%; width: 180%; }
  .top-nav .nav-links { gap: clamp(7px, 2vw, 16px) !important; }
}

@media (max-width: 420px) {
  .top-nav .nav-links { letter-spacing: .035em !important; }
}

@media (max-width: 375px) {
  .gallery-nav-full { display: none; }
  .gallery-nav-short { display: inline; }
  .top-nav .nav-links { gap: 5px !important; letter-spacing: .015em !important; }
}
