.gallery-page-body { color: #fff; background: var(--ink); }
.gallery-page-main { overflow: clip; }
.gallery-completion-shell {
  min-block-size: calc(100vh - var(--header-h));
  min-block-size: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  background: #060606;
}
.gallery-completion-shell .gallery-page-closing { flex: 1 0 auto; min-block-size: 0; }
.nav-links a[aria-current="page"] { color: var(--amber-bright); }

.gallery-page-hero {
  min-height: min(690px, 76svh);
  display: flex;
  align-items: flex-end;
  padding: clamp(138px, 17vh, 190px) var(--page-x) clamp(64px, 8vh, 88px);
  background:
    radial-gradient(circle at 78% 28%, rgba(42,78,255,.18), transparent 24%),
    radial-gradient(circle at 87% 52%, rgba(255,33,48,.13), transparent 30%),
    linear-gradient(135deg, #0b1215, #0d1114 60%, #161114);
}
.gallery-page-hero-inner { width: min(100%, 920px); }
.gallery-page-hero .section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--amber-bright);
  letter-spacing: .18em;
}
.gallery-page-hero .section-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  flex: 0 0 30px;
  background: linear-gradient(90deg, #f1263f 0 33.33%, #070b0e 33.33% 66.66%, #315fff 66.66%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  border-radius: 999px;
}
.gallery-page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Anton Local", Impact, sans-serif;
  font-size: clamp(3.75rem, 5.45vw, 6.25rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 10px 38px rgba(0,0,0,.24);
}
.gallery-page-hero p:not(.section-kicker) { max-width: 640px; margin: 26px 0 0; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.65; }
.gallery-back {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 0 16px;
  color: var(--amber-bright);
  border: 1px solid rgba(227,182,110,.55);
  border-radius: 999px;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gallery-back::before {
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.gallery-archive { padding: clamp(64px, 7vw, 104px) var(--page-x); color: var(--ink); background: var(--paper); }
.gallery-archive-grid { width: min(100%, 1160px); margin: 0 auto; columns: 3; column-gap: clamp(18px, 2vw, 28px); }
.gallery-archive-card { break-inside: avoid; margin: 0 0 clamp(28px, 3vw, 42px); }
.gallery-image-shell { position: relative; overflow: hidden; background: #d8d5cf; }
.gallery-image-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #d8d5cf 20%, #ebe8e2 42%, #d8d5cf 64%); background-size: 240% 100%; animation: gallery-shimmer 1.8s linear infinite; }
.gallery-image-shell img { position: relative; z-index: 1; width: 100%; height: auto; opacity: 0; transform: scale(1.012); transition: opacity .75s var(--ease), transform 1.1s var(--ease); }
.gallery-image-shell img.is-loaded { opacity: 1; transform: none; }
.gallery-page-closing { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(70px, 9vw, 130px) var(--page-x); background: var(--amber); }
.gallery-page-closing p { max-width: 900px; margin: 0; font-family: "Anton Local", Impact, sans-serif; font-size: clamp(3rem, 6vw, 7rem); line-height: .96; text-transform: uppercase; }
.gallery-page-closing .button { flex: 0 0 auto; }

@keyframes gallery-shimmer { to { background-position: -240% 0; } }

@media (max-width: 980px) {
  .gallery-page-hero { min-height: 72svh; }
  .gallery-archive-grid { columns: 2; }
  .gallery-completion-shell {
    min-block-size: calc(100vh - var(--header-h));
    min-block-size: calc(100dvh - var(--header-h));
  }
}

@media (max-width: 720px) {
  .gallery-page-hero { min-height: 640px; align-items: center; padding: 112px 18px 70px; }
  .gallery-page-hero .section-kicker { gap: 9px; margin-bottom: 16px; font-size: .66rem; letter-spacing: .14em; }
  .gallery-page-hero .section-kicker::before { width: 22px; flex-basis: 22px; }
  .gallery-page-hero h1 { max-width: 100%; font-size: clamp(3rem, 14vw, 4.1rem); line-height: 1.18; letter-spacing: .008em; }
  html[lang="en"] .gallery-page-hero h1 { font-size: clamp(3rem, 13.6vw, 4rem); }
  .gallery-page-hero p:not(.section-kicker) { margin-top: 24px; line-height: 1.62; }
  .gallery-back { margin-top: 28px; }
  .gallery-archive { padding: 64px 18px 84px; }
  .gallery-archive-grid { width: 100%; columns: 1; }
  .gallery-archive-card { margin-bottom: 48px; }
  .gallery-page-closing { display: grid; align-content: center; padding: 64px 18px 72px; }
  .gallery-page-closing p { font-size: clamp(3rem, 14vw, 4.4rem); }
  .gallery-page-closing .button { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image-shell::before { animation: none; }
  .gallery-image-shell img { transform: none; }
}
