#globalModalVideo {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    opacity: 0;
    transition: transform 0.18s cubic-bezier(.22,1.01,.36,1), opacity 0.22s;
}

#globalModalVideo.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-video__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-video__player {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 12px;
    background: #000;
}

.modal-video__close {
    position: absolute;
    top: 20px;
    right: 20px;

    border: 0;
    background: var(--clr-white);
    font-size: 28px;
    color: var(--clr-black);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;
}

.modal-video__close::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-size: 28px;
    line-height: 1;
}

.modal-video__close:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    #globalModalVideo {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-video__close {
        top: 10px;
        right: 10px;

        width: 24px;
        height: 24px;
    }

    .modal-video__close::before {
        font-size: 16px;
    }
}

