.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(2, 21, 43, 0.8);
}

.video-modal__dialog {
    position: relative;
    width: min(960px, calc(100vw - 40px));
    z-index: 1;
}

.video-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.video-modal__frame {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--color-black);
}

.video-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

body.video-modal-open {
    overflow: hidden;
}
