/* Compact, touch-first highlights inside the opening section. */
.hero-gallery-shell {
  display: block;
  height: auto;
  min-width: 0;
}
.hero-gallery {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  border-radius: 16px;
  scrollbar-width: none;
}
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-gallery:focus-visible { outline: 3px solid #f8c77f; outline-offset: 3px; }
.hero-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(300px, 31vw, 390px);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 2px solid rgba(255, 241, 218, .64);
  border-radius: 16px;
  background: #2b1a19;
  box-shadow: 0 16px 34px rgba(15, 5, 4, .24);
}
.hero-gallery-slide img,
.hero-gallery-slide video { display: block; width: 100%; height: 100%; }
.hero-gallery-slide img { object-fit: cover; }
.hero-gallery-slide:nth-child(1) img {
  object-position: 58% 53%;
  transform: scale(1.22);
  filter: sepia(.24) saturate(1.38) contrast(1.18) brightness(.81);
}
.hero-gallery-slide:nth-child(1) { border-color: rgba(237, 163, 89, .7); }
.hero-gallery-slide:nth-child(1)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(69, 32, 19, .2), transparent 55%),
    linear-gradient(0deg, rgba(32, 15, 13, .44), transparent 54%),
    rgba(150, 69, 29, .06);
}
.hero-gallery-slide:nth-child(1) figcaption { z-index: 1; }
.hero-gallery-slide:nth-child(2) img { object-position: center 56%; }
.hero-gallery-slide:nth-child(3) img { object-position: center 47%; }
.hero-gallery-slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(35, 19, 18, .78);
  color: #fff9f0;
  font: 700 12px/1.25 'Figtree', sans-serif;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.hero-gallery-video {
  display: block;
  isolation: isolate;
}
.hero-gallery-video::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: url('/assets/video-cover.jpg') center / cover;
  filter: blur(17px) brightness(.38);
}
.hero-gallery-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: transparent;
}
.hero-gallery-video figcaption { top: 10px; bottom: auto; }
.hero-gallery-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-top: 7px;
  color: #f5dfc6;
  font: 700 12px/1.2 'Figtree', sans-serif;
}
.hero-gallery-hint { margin-right: auto; opacity: .85; }
.hero-gallery-count { min-width: 35px; text-align: center; font-variant-numeric: tabular-nums; }
.hero-gallery-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 237, 209, .48);
  border-radius: 50%;
  background: rgba(255, 239, 218, .12);
  color: #fff9f0;
  font: 700 20px/1 'Figtree', sans-serif;
  cursor: pointer;
}
.hero-gallery-controls button:hover:not(:disabled) { background: rgba(255, 239, 218, .24); }
.hero-gallery-controls button:focus-visible { outline: 3px solid #f8c77f; outline-offset: 2px; }
.hero-gallery-controls button:disabled { opacity: .35; cursor: default; }
@media (max-width: 700px) {
  .hero-gallery-slide { flex-basis: 88%; height: 216px; }
  .hero-gallery { border-radius: 13px; }
  .hero-gallery::after { content: ''; flex: 0 0 12%; }
  .hero-gallery-slide { border-radius: 13px; }
  .hero-gallery-controls { min-height: 43px; padding-top: 5px; }
  .hero-gallery-controls button { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .hero-gallery-slide { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gallery { scroll-behavior: auto; }
}
