#hero-container.hero-carousel { pointer-events: auto; touch-action: pan-y; }
#hero-container.hero-covered { pointer-events: none; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media > img, .hero-media > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0,0,0);
    transition: transform var(--hero-slide-duration, 1500ms) ease-in-out;
    will-change: transform;
}
.hero-media > .hero-active { z-index: 1; }
.hero-media > .hero-outgoing { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .hero-media > img, .hero-media > video { transition: none; } }

/* Closed panels must not cover the video while external styles are loading. */
.panel { position: fixed; inset: 0; }
.panel[class~="translate-y-[200%]"] { transform: translateY(200%); pointer-events: none; }
