.hero-banniere-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image, .hero-bg-fallback {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-vimeo {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
/* Oversize iframe to ensure cover effect */
.hero-bg-vimeo iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.hero-bg-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

/* Fallback hiding logic */
.has-mobile-fallback .hero-bg-fallback {
    display: none;
}
@media (max-width: 767px) {
    .has-mobile-fallback .hero-bg-fallback {
        display: block;
    }
    .has-mobile-fallback .hero-bg-video,
    .has-mobile-fallback .hero-bg-vimeo {
        display: none !important;
    }
}
