/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img,
.hero-slide picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure first slide is visible immediately */
.hero-slide:first-child {
    opacity: 1;
}

/* Keep ambient zoom animation on carousel slides */
.hero.ambient-zoom .hero-carousel .hero-slide img {
    animation: ambientZoom 14s ease-in-out infinite;
    transform-origin: center center;
}