.popup-video {
    margin: auto;
    padding: 0;
    border: 0;
    width: min(100vw, calc((100dvh - 44px) * 16 / 9));
    max-width: none;
    max-height: none;
    background: transparent;
    color: #fff;
    overflow: visible;
}

@media (min-width: 48rem) {
    .popup-video {
        width: min(calc(100vw - 6em), calc((100dvh - 6em - 44px) * 16 / 9));
    }
}

.popup-video::backdrop {
    background: rgb(0 0 0 / 90%);
}

.popup-video__toolbar {
    display: flex;
    justify-content: flex-end;
    height: 44px;
}

.popup-video__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.popup-video__player {
    aspect-ratio: 16 / 9;
    background: #000;
}

.popup-video__player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

html.popup-video-open {
    overflow: hidden;
}
