/*******************************************************************************
* File: hero-video.css
* Created: October 30, 2025
* Author: CSS Refactoring
* Purpose: Shared hero video background styles for all public pages
* Project: PASC Region J Conference 2026 Website
*******************************************************************************/

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-video-mobile {
    display: none;
}

.hero-video-desktop {
    display: block;
}

.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Index page hero has different z-index for video */
.hero {
    position: relative;
    overflow: hidden;
}

.hero .hero-video {
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive Video Switching */
@media (max-width: 768px) {
    .hero-video-desktop {
        display: none;
    }

    .hero-video-mobile {
        display: block;
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }

    .page-hero {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Index page specific mobile video positioning */
    .hero {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0;
        right: 0;
        overflow: hidden;
    }

    /* Mobile video is portrait (9:16) - ensure it fills screen */
    .hero .hero-video-mobile {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto !important;
        height: 100% !important;
        min-height: 100vh;
        object-fit: cover;
        object-position: center center;
    }

    /* Fix hero video positioning on mobile - show left side */
    .hero .hero-video {
        object-position: left center !important;
    }
}
