.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
}

.video-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 15, .85);
}

.video-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    transform: scale(.96);
    transition: transform .2s ease-in-out;
}

.video-modal[aria-hidden="false"] .video-modal__dialog {
    transform: scale(1);
}

.video-modal__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 0;
}

.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, .22);
}
