/* ---------- header ---------- */
.desktop-nav a[aria-current="page"] { color: #d6a756; }
.desktop-nav a[aria-current="page"]:after { right: 0; }
.status-pill { color: #f8f8f6; text-decoration: none; transition: border-color .25s, background .25s; }
.status-pill:hover { border-color: #d6a756; background: #183a5ab3; }
.mobile-menu > a { display: grid; grid-template-columns: 2.5rem 1fr; }
.mobile-menu > a span { font-family: var(--font-sans); color: #d6a756; font-size: .6rem; }
body.gal-locked { overflow: hidden; }

/* ---------- hero ---------- */
.gal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding: 9rem max(5vw, 50vw - 660px) 5.5rem;
  border-bottom: 10px solid #d6a756;
  color: #f8f8f6;
}
.gal-hero-bg { position: absolute; inset: 0; z-index: -3; }
.gal-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.85) brightness(.8);
  animation: 18s ease-out both heroDrift;
}
.gal-hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #0a1e30f2 0%, #183a5acc 42%, #183a5a26 80%),
    linear-gradient(180deg, #05111c66 0%, #0000 40%, #102a42 100%);
}
.gal-hero canvas { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; }
.gal-hero-content { width: 100%; }
.gal-hero-content > * { animation: softIn 1s ease both; }
.gal-hero-content .hero-meta { animation-delay: .45s; }
.gal-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: .93;
  letter-spacing: -.01em;
  margin-bottom: 1.8rem;
  text-shadow: 0 6px 40px rgba(5, 17, 28, .5);
  animation: riseIn 1.2s cubic-bezier(.2, .7, .2, 1) .2s both !important;
}
.gal-hero-title em { font-style: italic; font-weight: 500; color: #d6a756; }

.gal-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 900px;
  margin-top: 3rem;
  animation-delay: .65s !important;
}
.gal-chapter {
  position: relative;
  display: grid;
  gap: .3rem;
  padding: 1.1rem 0 .4rem;
  border-top: 1px solid #f8f8f640;
  color: #f8f8f6;
  text-decoration: none;
}
.gal-chapter:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d6a756;
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.gal-chapter:hover:before { width: 100%; }
.gal-chapter-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); transition: transform .35s; }
.gal-chapter:hover .gal-chapter-name { transform: translateX(6px); }
.gal-chapter-count { font-size: .78rem; color: #f8f8f6a6; }

/* ---------- sections ---------- */
.gal-section { background: #102a42; color: #f8f8f6; overflow: hidden; }
.gal-section:nth-of-type(odd) { background: #183a5a; }
.gal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.gal-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.gal-section h2 em { font-style: italic; font-weight: 500; color: #d6a756; }
.gal-section-copy { max-width: 460px; color: #f8f8f6b8; line-height: 1.7; font-size: .95rem; }
.gal-section-actions { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.gal-arrows { display: flex; gap: .5rem; }
.gal-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #f8f8f640;
  background: transparent;
  color: #f8f8f6;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.gal-arrow:hover { background: #d6a756; border-color: #d6a756; color: #183a5a; }
.gal-view-all {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: 0 1.3rem;
  border: 1px solid #d6a756;
  background: transparent;
  color: #f8f8f6;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.gal-view-all:hover { background: #d6a756; color: #183a5a; }

/* ---------- carousel ---------- */
.gal-track {
  --gap: 16px;
  --per-view: 4;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gal-track.is-dragging .gal-slide { pointer-events: none; }
.gal-slide {
  position: relative;
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  aspect-ratio: 4/5;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #05111c;
  cursor: zoom-in;
  scroll-snap-align: start;
}
.gal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s;
  -webkit-user-drag: none;
}
.gal-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #d6a756;
  opacity: 0;
  background: linear-gradient(180deg, #0000 55%, #05111ca6 100%);
  transition: opacity .35s;
}
.gal-slide:hover img, .gal-slide:focus-visible img { transform: scale(1.09); }
.gal-slide:hover:after, .gal-slide:focus-visible:after { opacity: 1; }
.gal-slide--more { cursor: pointer; }
.gal-slide--more img { filter: blur(3px) brightness(.35); }
.gal-slide--more span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: .4rem;
  color: #f8f8f6;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gal-slide--more strong { font-family: var(--font-display); font-size: 3rem; letter-spacing: 0; color: #d6a756; text-transform: none; }
.gal-progress { height: 2px; margin-top: 1.6rem; background: #f8f8f61f; overflow: hidden; }
.gal-progress span { display: block; height: 100%; background: #d6a756; transition: transform .2s ease-out; }

/* reveal */
.gal-reveal { opacity: 0; }
.gal-reveal.is-visible { opacity: 1; animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.gal-carousel.is-visible { animation: none; }
.gal-carousel.is-visible .gal-slide { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) calc(min(var(--i, 8), 8) * 70ms) backwards; }
.gal-carousel.is-visible .gal-slide--more { animation-delay: 600ms; }

/* ---------- "view all" grid modal ---------- */
.gal-grid-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, #183a5a 0%, #0a1e30 60%);
  color: #f8f8f6;
  animation: galFadeIn .35s ease both;
}
.gal-grid-modal[hidden], .gal-lightbox[hidden] { display: none; }
.gal-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem max(5vw, 50vw - 700px);
  border-bottom: 1px solid #f8f8f61f;
  animation: softIn .5s ease .05s both;
}
.gal-grid-head .eyebrow { margin-bottom: .35rem; }
.gal-grid-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
.gal-grid-tabs { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.gal-grid-tabs button {
  padding: .55rem 1rem;
  border: 1px solid #f8f8f633;
  background: transparent;
  color: #f8f8f6cc;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.gal-grid-tabs button span { color: #d6a756; margin-left: .3rem; font-weight: 600; transition: color .25s; }
.gal-grid-tabs button:hover { border-color: #d6a756; color: #f8f8f6; }
.gal-grid-tabs button.is-active { background: #d6a756; border-color: #d6a756; color: #183a5a; }
.gal-grid-tabs button.is-active span { color: #183a5a; }
.gal-icon-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #f8f8f640;
  background: transparent;
  color: #f8f8f6;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .3s;
}
.gal-icon-btn:hover { background: #d6a756; border-color: #d6a756; color: #183a5a; transform: rotate(90deg); }
.gal-grid-body { flex: 1; overflow-y: auto; padding: 2rem max(5vw, 50vw - 700px) 4rem; overscroll-behavior: contain; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}
.gal-grid-item {
  display: block;
  aspect-ratio: 2/3;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  background: #183a5a;
  cursor: zoom-in;
  animation: riseIn .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 30ms) both;
}
.gal-grid-item.is-wide { grid-column: span 2; aspect-ratio: auto; }
.gal-grid-item img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.gal-grid-item.is-loaded img { opacity: 1; }
.gal-grid-item:after { content: ""; position: absolute; inset: 0; border: 1px solid #d6a756; opacity: 0; transition: opacity .3s; }
.gal-grid-item:hover img, .gal-grid-item:focus-visible img { transform: scale(1.06); }
.gal-grid-item:hover:after, .gal-grid-item:focus-visible:after { opacity: 1; }

/* ---------- lightbox ---------- */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #05111cf5;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f8f8f6;
  animation: galFadeIn .3s ease both;
}
.gal-lb-top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem max(4vw, 1rem); }
.gal-lb-label { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #d6a756; }
.gal-lb-count { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #f8f8f6cc; }
.gal-lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 5.5rem; touch-action: pan-y; }
.gal-lb-figure { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.gal-lb-figure img {
  max-width: 100%;
  max-height: calc(100svh - 190px);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter .45s ease;
  animation: galZoomIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.gal-lb-figure.is-loading img { filter: blur(10px) brightness(.85); }
.gal-lb-figure.anim-next img { animation: galSlideNext .5s cubic-bezier(.2, .8, .2, 1) both; }
.gal-lb-figure.anim-prev img { animation: galSlidePrev .5s cubic-bezier(.2, .8, .2, 1) both; }
.gal-lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  display: grid;
  place-items: center;
  border: 1px solid #f8f8f640;
  border-radius: 50%;
  background: #102a4299;
  color: #f8f8f6;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.gal-lb-nav:hover { background: #d6a756; border-color: #d6a756; color: #183a5a; }
.gal-lb-nav--prev { left: 1.4rem; }
.gal-lb-nav--next { right: 1.4rem; }
.gal-lb-nav--prev:hover { transform: translateX(-3px); }
.gal-lb-nav--next:hover { transform: translateX(3px); }
.gal-lb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1rem max(4vw, 1rem) 1.3rem;
  scrollbar-width: none;
}
.gal-lb-strip::-webkit-scrollbar { display: none; }
.gal-lb-strip button {
  flex: none;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: #183a5a;
  opacity: .4;
  cursor: pointer;
  transition: opacity .3s, transform .3s, outline-color .3s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.gal-lb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.gal-lb-strip button:hover { opacity: .8; }
.gal-lb-strip button.is-current { opacity: 1; outline-color: #d6a756; transform: translateY(-3px); }

/* closing */
.gal-grid-modal.is-closing, .gal-lightbox.is-closing { animation: galFadeOut .25s ease both; }
.gal-lightbox.is-closing .gal-lb-figure img { animation: galZoomOut .25s ease both; }

@keyframes galFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes galFadeOut { to { opacity: 0; } }
@keyframes galZoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes galZoomOut { to { opacity: 0; transform: scale(.96); } }
@keyframes galSlideNext { from { opacity: 0; transform: translateX(60px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes galSlidePrev { from { opacity: 0; transform: translateX(-60px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gal-section-head { flex-direction: column; align-items: flex-start; }
  .gal-grid-head { flex-wrap: wrap; }
  .gal-grid-tabs { order: 3; width: 100%; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .gal-hero { min-height: auto; padding-top: 8rem; padding-bottom: 3.5rem; }
  .gal-chapters { grid-template-columns: 1fr; gap: 0; margin-top: 2rem; }
  .gal-chapter { grid-template-columns: 1fr auto; align-items: baseline; padding: .9rem 0; }
  .gal-arrows { display: none; }
  .gal-section-actions { width: 100%; }
  .gal-view-all { width: 100%; justify-content: center; }
  .gal-track { --per-view: 2; --gap: 10px; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gal-grid-body { padding: 1rem 4vw 3rem; }
  .gal-lb-stage { padding: 0; }
  .gal-lb-nav { display: none; }
  .gal-lb-figure img { max-height: calc(100svh - 170px); box-shadow: none; }
  .gal-lb-strip button { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .gal-hero *, .gal-hero-bg img, .gal-grid-modal, .gal-grid-head, .gal-grid-item, .gal-lightbox, .gal-lb-figure img, .gal-carousel .gal-slide { animation: none !important; }
  .gal-reveal { opacity: 1; animation: none !important; }
}
