﻿
/* ==========================================
       VIDEO MODAL
    ========================================== */

.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.story-modal {
    cursor: default;
}

.story-modal::before {
    cursor: pointer;
}

.story-modal.active {
    display: flex;
}

.story-modal-content {
    position: relative;
    width: 60vw;
    max-width: 1100px;
    cursor: default;
}

/* ==========================================
    YOUTUBE IFRAME
========================================== */

.story-modal-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px;
    background: #000;
    display: block;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

/* ==========================================
       CLOSE BUTTON
    ========================================== */

.story-close {
    position: absolute;
    top: -55px;
    right: 0;
    border: none;
    background: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: .3s ease;
}

.story-close:hover {
    transform: scale(1.15);
}

/* ==========================================
       TABLET ❤️
    ========================================== */

@@media (max-width:1024px) {
    .story-modal-content {
        width: 90vw;
    }
}


/* ==========================================
MOBILE PREMIUM VIDEO EXPERIENCE
========================================== */

@media (max-width:768px) {

    .story-modal {
        padding: 0;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,.96);
    }

    .story-modal-content {
        position: relative;
        width: 100vw;
        max-width: none;
        border-radius: 0;
    }

    .story-video-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .story-video-wrapper iframe {
        border-radius: 0;
        box-shadow: none;
    }

    .story-close {
        position: fixed;
        top: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,.65);
        color: #fff;
        border-radius: 50%;
        font-size: 28px;
        z-index: 10001;
        backdrop-filter: blur(8px);
    }

    .story-close:hover {
        transform: none;
    }
}


/* ==========================================
SHORTS MODE (Mobile Only)
========================================== */

@media (max-width:768px) {

    .story-video-wrapper.story-short {
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .story-video-wrapper.story-short iframe {
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
            border-radius: 0;
        }
}