/* Limited to the two festival-card photo previews and their native dialog. */
.festival-home-photo[data-ski-gallery] { position: relative; }
.home-gallery-hint { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 20px; background: rgba(16,46,39,.9); color: #fff; font-size: 14px; line-height: 1.5; }
.home-ski-gallery { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: #102e27; color: #fff; overflow: auto; overscroll-behavior: contain; }
.home-ski-gallery::backdrop { background: rgba(0,0,0,.78); }
.home-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.home-gallery-header h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.4; }
.home-ski-gallery button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; background: #173a30; color: #fff; font: inherit; cursor: pointer; }
.home-ski-gallery button:disabled { opacity: .45; cursor: default; }
.home-ski-gallery button:focus-visible, .festival-home-photo[data-ski-gallery]:focus-visible { outline: 3px solid #f7931e; outline-offset: 3px; }
.home-gallery-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
.home-gallery-track::-webkit-scrollbar { display: none; }
.home-gallery-track figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center; }
.home-gallery-track img { display: block; width: 100%; height: min(58dvh, 540px); object-fit: contain; background: #0b1e19; }
.home-gallery-caption { margin: 0; padding: 14px 18px 8px; min-height: 56px; font-size: 14px; line-height: 1.6; color: #d4e2d8; }
.home-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 4px 18px 16px; }
.home-gallery-controls p { min-width: 54px; margin: 0; text-align: center; font-size: 14px; }
@media (max-width: 640px) {
  .home-gallery-header { padding: 12px; }
  .home-gallery-header h2 { font-size: 24px; }
  .home-gallery-track img { height: min(52dvh, 420px); }
  .home-gallery-caption { padding: 12px 14px 6px; }
}
