.gallery-body { overflow: hidden; background: #050606; }
.gallery-header { position: fixed; inset: 0 0 auto; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: linear-gradient(to bottom, rgba(4,5,5,.92), transparent); }
.gallery-actions { display: flex; align-items: center; gap: 18px; }
.slide-count { font: 700 .78rem/1 ui-monospace, monospace; color: #c0c4c1; letter-spacing: .06em; }
.slideshow { position: relative; width: 100vw; height: 100vh; display: grid; place-items: center; }
.slide { width: 100%; height: 100%; margin: 0; position: relative; overflow: hidden; background: #050606; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,4,4,.9), transparent 42%); pointer-events: none; }
.slide img { width: 100%; height: 100%; object-fit: contain; animation: settle .8s ease both; }
@keyframes settle { from { opacity: .2; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
.slide figcaption { position: absolute; z-index: 2; left: 5vw; right: 5vw; bottom: 5vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.slide figcaption p { max-width: 760px; margin: 9px 0 0; color: #f5f4ef; font-size: clamp(1rem, 1.6vw, 1.45rem); line-height: 1.35; letter-spacing: -.015em; }
.slide-kicker { color: var(--accent); font: 800 .68rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.slide-room { color: #c1c5c2; font: 600 .76rem/1 ui-monospace, monospace; white-space: nowrap; }
.slide-nav, .pause-button { position: absolute; z-index: 4; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: white; background: rgba(10,12,11,.38); backdrop-filter: blur(9px); cursor: pointer; }
.slide-nav { top: 50%; width: 48px; height: 48px; border-radius: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.slide-nav:hover, .pause-button:hover { border-color: var(--accent); background: rgba(10,12,11,.7); }
.slide-nav.previous { left: 24px; }
.slide-nav.next { right: 24px; }
.pause-button { right: 28px; bottom: 28px; width: 42px; height: 42px; border-radius: 8px; font-weight: 700; }
.progress-track { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.progress-track span { display: block; height: 100%; width: 0; background: var(--accent); }
.progress-track span.running { animation: slide-progress 7s linear forwards; }
@keyframes slide-progress { from { width: 0; } to { width: 100%; } }
.gallery-empty { text-align: center; max-width: 440px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.gallery-empty strong { color: var(--text); font-size: 1.15rem; }
.gallery-empty span:not(.empty-glyph) { line-height: 1.5; }
.empty-glyph { font: 200 4rem/1 ui-monospace, monospace; color: #424745; margin-bottom: 8px; }
.gallery-empty .button { margin-top: 10px; }
@media (max-width: 700px) {
  .gallery-header { height: 66px; padding: 0 16px; }
  .slide-count { display: none; }
  .slide-nav { width: 42px; height: 42px; }
  .slide-nav.previous { left: 10px; }
  .slide-nav.next { right: 10px; }
  .slide figcaption { left: 18px; right: 18px; bottom: 78px; display: block; }
  .slide-room { display: block; margin-top: 12px; }
  .pause-button { right: 16px; bottom: 18px; }
}
