@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --night: #090a18;
  --night-2: #11142a;
  --ink: #f7f7fc;
  --muted: #a4a8c4;
  --line: rgba(220, 222, 255, .16);
  --violet: #a99aff;
  --blue: #7bc7ff;
  --pink: #f4b6e8;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.photo-page {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--body);
  background: radial-gradient(ellipse at 50% -20%, #3c326b 0, transparent 48%), var(--night);
  overflow-x: hidden;
}
body.photo-page::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(155, 139, 255, .2), transparent 26rem),
    radial-gradient(circle at 88% 35%, rgba(69, 151, 224, .14), transparent 24rem),
    radial-gradient(circle at 48% 90%, rgba(233, 139, 220, .1), transparent 26rem);
}
.ambient { position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .28; backdrop-filter: blur(40px); }
.gallery-shell { width: min(1440px, 100% - 56px); margin: 0 auto; }
.gallery-topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.back-link, .topbar-link { color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.back-link span { font-size: 1.1rem; margin-right: 8px; }
.topbar-mark { font: 800 .72rem var(--display); letter-spacing: .2em; color: #d5d3f7; }
.topbar-mark i { color: var(--violet); font-style: normal; padding: 0 7px; }
.topbar-link span { color: var(--violet); margin-left: 6px; }
.gallery-intro { text-align: center; padding: clamp(58px, 8vw, 100px) 0 36px; }
.eyebrow { margin: 0; font: 700 .68rem var(--display); letter-spacing: .22em; color: #bcb5ff; }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.gallery-intro h1 { margin: 18px 0 16px; font: 800 clamp(2.7rem, 6vw, 5.5rem)/1.02 var(--display); letter-spacing: -.07em; }
.gallery-intro h1 span { color: #b9adff; }
.intro-copy { margin: 0; color: #c1c4dd; font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.7; }
.filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 16px 0 24px; }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(223, 224, 255, .3); border-radius: 999px; padding: 10px 17px; color: #d9daf0; background: rgba(255,255,255,.025); font: 600 .76rem var(--body); cursor: pointer; transition: .2s ease; }
.filter-chip:hover, .filter-chip.is-active { background: #f3f0ff; border-color: #f3f0ff; color: #17152c; }
.filter-chip span { opacity: .6; font-size: .66rem; }
.filter-spacer { flex: 1; }
.gallery-count { color: #9398b7; font: 700 .65rem var(--display); letter-spacing: .16em; white-space: nowrap; }
.gallery-count span { color: var(--ink); }
.photo-stage { position: relative; margin: 8px 0 80px; min-height: 560px; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.stage-glow { position: absolute; width: 65%; height: 58%; left: 17.5%; top: 20%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(123, 119, 255, .2), rgba(97, 178, 245, .07) 42%, transparent 72%); filter: blur(25px); }
.stage-track { height: 470px; position: relative; width: 100%; }
.stage-card { position: absolute; top: 50%; padding: 0; border: 1px solid rgba(255,255,255,.2); background: #17182d; overflow: hidden; cursor: pointer; border-radius: 22px; transform: translate(-50%, -50%); box-shadow: 0 25px 70px rgba(0,0,0,.32); transition: left .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), width .55s, height .55s, opacity .4s, filter .4s; }
.stage-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-card-far { width: 22%; height: 250px; opacity: .64; filter: saturate(.8); }
.stage-card-near { width: 29%; height: 330px; opacity: .92; }
.stage-card-main { width: 32%; height: 440px; left: 50%; z-index: 5; border-radius: 24px; }
.stage-card-left { left: 10%; z-index: 1; }
.stage-card-left-near { left: 27%; z-index: 2; }
.stage-card-right-near { left: 73%; z-index: 2; }
.stage-card-right { left: 90%; z-index: 1; }
.stage-card-main img { transition: transform .7s; }
.stage-card-main:hover img { transform: scale(1.035); }
.stage-card-main::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,7,20,.88)); pointer-events: none; }
.featured-caption { position: absolute; z-index: 1; left: 25px; right: 25px; bottom: 25px; display: grid; gap: 5px; text-align: left; }
.caption-kicker { color: #d0c8ff; font: 700 .62rem var(--display); letter-spacing: .18em; }
.featured-caption strong { font: 800 clamp(1.05rem, 2vw, 1.7rem)/1.2 var(--display); letter-spacing: -.04em; }
.featured-caption > span:last-child { color: #d3d4e6; font-size: .8rem; }
.image-expand { position: absolute; top: 17px; right: 17px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(9,10,24,.5); color: white; backdrop-filter: blur(8px); }
.card-index { position: absolute; bottom: 14px; left: 16px; color: white; font: 700 .7rem var(--display); text-shadow: 0 2px 8px #000; }
.stage-arrow { position: absolute; top: 47%; z-index: 8; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: white; background: rgba(15,16,38,.6); cursor: pointer; font-size: 1.2rem; backdrop-filter: blur(8px); transition: .2s; }
.stage-arrow:hover, .stage-controls button:hover { color: #131225; background: #f3f0ff; }
.stage-arrow-left { left: 0; }
.stage-arrow:not(.stage-arrow-left) { right: 0; }
.stage-bottom { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 12px; }
.stage-bottom p { margin: 0; color: #8e93b2; font: 700 .7rem var(--display); letter-spacing: .15em; }
.stage-bottom p:first-child { justify-self: start; }
.stage-bottom p:first-child span:first-child { color: white; font-size: .95rem; }
.stage-bottom p i { font-style: normal; padding: 0 7px; color: #565b7b; }
.stage-controls { display: flex; gap: 10px; }
.stage-controls button { width: 42px; height: 42px; border: 1px solid rgba(235,235,255,.55); border-radius: 50%; color: white; background: transparent; font-size: 1rem; cursor: pointer; transition: .2s; }
.stage-hint { justify-self: end; }
.all-photos { padding: 38px 0 86px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0 0; font: 800 clamp(1.8rem, 3.5vw, 3rem)/1.1 var(--display); letter-spacing: -.06em; }
.section-heading h2 span { color: var(--violet); }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photo-tile { position: relative; min-height: 290px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; overflow: hidden; background: #191a31; cursor: pointer; text-align: left; }
.photo-tile img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; transition: transform .5s, filter .4s; }
.photo-tile:hover img { transform: scale(1.05); filter: brightness(.8); }
.photo-tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(6,7,20,.9)); }
.tile-meta { position: absolute; z-index: 1; bottom: 17px; left: 17px; right: 17px; color: white; display: grid; gap: 5px; }
.tile-meta small { font: 700 .6rem var(--display); letter-spacing: .16em; color: #c8c0ff; }
.tile-meta strong { font: 700 1rem var(--display); }
.tile-meta span { font-size: .75rem; color: #d2d4e4; }
.gallery-footer { border-top: 1px solid var(--line); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #898eac; font: 700 .62rem var(--display); letter-spacing: .12em; }
.gallery-footer a { color: #d8d6f4; text-decoration: none; font: 600 .8rem var(--body); letter-spacing: 0; }
.gallery-footer a:hover, .back-link:hover, .topbar-link:hover { color: var(--violet); }
.lightbox { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: white; background: #0c0d1d; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.lightbox::backdrop { background: rgba(4,5,15,.85); backdrop-filter: blur(14px); }
.lightbox figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .7fr); gap: 25px; align-items: center; }
.lightbox figure img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 12px; background: #050610; }
.lightbox figcaption { display: grid; gap: 10px; }
.lightbox figcaption span { color: #bcb5ff; font: 700 .65rem var(--display); letter-spacing: .16em; }
.lightbox figcaption strong { font: 800 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -.05em; }
.lightbox figcaption p { color: #aeb2cc; line-height: 1.7; font-size: .9rem; }
.lightbox-close, .lightbox-nav { position: absolute; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.06); cursor: pointer; }
.lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; }
.lightbox-nav { top: 45%; width: 38px; height: 38px; border-radius: 50%; }
.lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
button:focus-visible, a:focus-visible { outline: 3px solid #c8beff; outline-offset: 4px; }
@media (max-width: 900px) {
  .gallery-shell { width: min(100% - 36px, 760px); }
  .photo-stage { min-height: 470px; }
  .stage-track { height: 390px; }
  .stage-card-main { width: 42%; height: 370px; }
  .stage-card-near { width: 34%; height: 290px; }
  .stage-card-far { width: 27%; height: 220px; }
  .stage-card-left { left: 8%; } .stage-card-left-near { left: 25%; }
  .stage-card-right-near { left: 75%; } .stage-card-right { left: 92%; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-tile, .photo-tile img { min-height: 320px; }
}
@media (max-width: 600px) {
  .gallery-shell { width: calc(100% - 28px); }
  .gallery-topbar { min-height: 66px; }
  .topbar-mark { font-size: .58rem; letter-spacing: .12em; }
  .topbar-link { font-size: .75rem; }
  .gallery-intro { padding: 54px 0 25px; }
  .gallery-intro h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .filters { gap: 7px; padding-bottom: 10px; }
  .filter-chip { padding: 8px 12px; font-size: .7rem; }
  .filter-spacer, .gallery-count { display: none; }
  .photo-stage { min-height: 440px; margin-bottom: 55px; }
  .stage-track { height: 340px; }
  .stage-card-main { width: 66%; height: 330px; border-radius: 17px; }
  .stage-card-near { width: 46%; height: 250px; border-radius: 15px; }
  .stage-card-far { width: 33%; height: 190px; border-radius: 12px; }
  .stage-card-left { left: 1%; } .stage-card-left-near { left: 18%; }
  .stage-card-right-near { left: 82%; } .stage-card-right { left: 99%; }
  .featured-caption { left: 16px; right: 16px; bottom: 17px; }
  .stage-arrow { top: 43%; width: 34px; height: 34px; }
  .stage-bottom { grid-template-columns: auto 1fr; row-gap: 14px; }
  .stage-controls { justify-self: center; }
  .stage-hint { display: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .photo-grid { gap: 10px; }
  .photo-tile, .photo-tile img { min-height: 220px; }
  .tile-meta { left: 11px; right: 11px; bottom: 12px; }
  .tile-meta strong { font-size: .88rem; }
  .tile-meta span { font-size: .68rem; }
  .gallery-footer { padding: 22px 0; flex-wrap: wrap; }
  .gallery-footer > span:nth-child(2) { display: none; }
  .lightbox { padding: 42px 12px 16px; }
  .lightbox figure { grid-template-columns: 1fr; gap: 15px; }
  .lightbox figure img { max-height: 58vh; }
  .lightbox figcaption { padding: 0 8px; }
  .lightbox-nav { top: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.gallery-empty { grid-column: 1 / -1; color: #c5c6e0; padding: 28px 0; font-size: .95rem; }
button:disabled { opacity: .35; cursor: not-allowed; }
.gallery-status {
  margin: -10px 0 24px;
  color: #f6d989;
  font-size: .85rem;
}
.photo-tile.is-broken::before,
.stage-card.is-broken::before,
.lightbox figure.is-broken::before {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d5d7ef;
  font: 700 .78rem var(--display);
  letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(17, 20, 42, .8), rgba(9, 10, 24, .94));
  z-index: 2;
}
.lightbox figure.is-broken::before {
  border-radius: 12px;
}
