/* --- VIDEO MODAL --- */
.video-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    /* Solid black for focus */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

.modal-content {
    width: 90vw;
    height: 90vh;
    max-width: 1600px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-content iframe,
.modal-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Vertical Modal for UGC (9x16) */
.video-modal.vertical-modal .modal-content {
    width: auto;
    height: 90vh;
    aspect-ratio: 9/16;
    max-width: 90vw;
}

.video-modal.vertical-modal .modal-content video {
    object-fit: contain;
    background: #000;
}