/**
 * Video Image Widget Styles
 * Interactive video/image switcher with overlay
 * Version: 1.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.video-image-widget {
    position: relative;
    overflow: hidden;
    display: block;
}

/* ==========================================================================
   Image
   ========================================================================== */

.video-image-widget img {
    width: 100%!important;
    height: 100% !important;
    object-fit: cover!important;
    display: block!important;
    transition: opacity 0.3s ease!important;
}

/* ==========================================================================
   Video
   ========================================================================== */

.video-image-widget video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* ==========================================================================
   Overlay
   ========================================================================== */

.video-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 25px;
    display: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.video-image-overlay h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Hover States (Desktop)
   ========================================================================== */

@media (min-width: 992px) {
    .video-image-widget:hover {
        cursor: pointer;
    }
}

/* ==========================================================================
   Mobile Touch States
   ========================================================================== */

@media (max-width: 991px) {
    .video-image-widget {
        cursor: pointer;
    }

    .video-image-overlay {
        padding: 20px;
    }

    .video-image-overlay h3 {
        font-size: 20px;
    }
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
    .video-image-overlay {
        padding: 15px;
    }

    .video-image-overlay h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .video-image-overlay {
        padding: 12px;
    }

    .video-image-overlay h3 {
        font-size: 16px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.video-image-widget:focus {
    outline: 2px solid #2596be;
    outline-offset: 2px;
}

.video-image-widget video:focus {
    outline: 2px solid #2596be;
    outline-offset: -2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .video-image-overlay {
        display: none;
    }

    .video-image-widget video {
        display: none;
    }

    .video-image-widget img {
        display: block !important;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .video-image-overlay h3 {
    text-align: center;
}
