/**
 * Video Preloader Styles
 * Styles for the 20-second video intro preloader
 */

#preloader #video-loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 100%;
    height: 100vh;
    flex-direction: column;
}

#preloader #intro-video {
    background: transparent;
    display: block;
    margin: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: all 1000ms ease-in-out;
}

#skip-intro-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20; /* Increased z-index to be above the overlay (15) */
}

#preloader #intro-video.full-height-mode {
    max-width: 50vw;
    height: auto !important;
}


/* Responsive video sizing */
@media screen and (max-width: 768px) {
    #preloader #intro-video {
        width: 100vw !important;
         
    }
    
    #preloader #intro-video.full-height-mode {
        max-width: 90vw !important;
        height: auto !important;
    }

    #skip-intro-container {
        bottom: 10% !important;
        z-index: 20 !important; /* Ensure higher z-index on mobile too */
    }
}

/* Hide original loader when video is active */
#preloader #loader {
    display: none;
}

/* Show normal loader when video preloader is disabled */
#preloader.use-normal-loader #loader {
    display: block;
}
