.gallery-stage {
  position: relative;
  --photo-width: 72%;
  --arrow-inset: clamp(10px, 1.5vw, 24px);
}
.gallery-controls {
  position: absolute;
  inset: 0;
  margin-inline: auto;
  width: var(--photo-width);
  pointer-events: none;
  z-index: 2;
}
.gallery-controls button {
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  background-color: rgba(20, 33, 31, .12);
  border-color: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
.gallery-controls .news-arrow { filter: drop-shadow(0 1px 2px rgba(12, 23, 18, .8)); }
@media (hover: hover) {
  .gallery-controls button:hover { background-color: rgba(20, 33, 31, .26); border-color: rgba(255, 255, 255, .46); }
}
.gallery-controls [data-step="-1"] { left: var(--arrow-inset); }
.gallery-controls [data-step="1"] { right: var(--arrow-inset); }
.gallery-controls [data-step="-1"] .news-arrow { transform: rotate(180deg); }
.gallery-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.3vw, 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery-track[data-ready] { scrollbar-width: none; }
.gallery-track[data-ready]::-webkit-scrollbar { display: none; }
.gallery-track figure {
  flex: 0 0 var(--photo-width);
  position: relative;
  height: clamp(290px, 38vw, 515px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.gallery-track figure[data-preview] { scroll-snap-align: none; }
.gallery-track img { height: 100%; object-fit: cover; }
.gallery-track[data-ready] figure:not([data-current]) { opacity: .44; cursor: pointer; }
.gallery-track figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 64px clamp(18px, 3vw, 48px) clamp(20px, 2.4vw, 36px);
  color: white;
  background: linear-gradient(transparent, rgba(16, 29, 21, .83));
}
.gallery-track[data-ready] figure:not([data-current]) figcaption { opacity: 0; }
.gallery-track strong { display: block; font: 400 clamp(25px, 3vw, 46px)/1.08 var(--display); }
.gallery-track small { display: block; font-size: .875rem; margin-top: 4px; }
@media (max-width: 760px) {
  .gallery-stage { --photo-width: 76%; }
  .gallery-track figure { height: clamp(235px, 75vw, 390px); }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-track:not([data-wrapping]) :is(figure, figcaption) { transition: opacity .18s ease; }
}
