.video-modal__container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.video-modal__container.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay */
.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

/* Dialog */
.video-modal__dialog {
    position: relative;
    width: min(92vw, 960px);
    max-height: 90vh;

    background: #000;
    border-radius: 12px;
    overflow: hidden;

    /* subtle polish */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transform: scale(.96);
    transition: transform .2s ease;
}

.video-modal__container.is-open .video-modal__dialog {
    transform: scale(1);
}

/* Video */
.video-modal__body {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* fallback */
@supports not (aspect-ratio: 1) {
    .video-modal__body {
        padding-bottom: 56.25%;
        height: 0;
    }
}

.video-modal__body iframe,
.video-modal__body video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
    /* switch to cover if you want full bleed */
}

/* Close button */
.video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    font-size: 16px;
    line-height: 1;

    transition: background .2s ease, transform .2s ease;
}

.video-modal__close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

/* Mobile tweak */
@media (max-width: 768px) {
    .video-modal__dialog {
        width: 95vw;
        border-radius: 10px;
    }
}