/* Video popup: the YouTube player over a dimmed page. */

body.is-popup-open {
    overflow: hidden;
}

.video-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    background-color: rgba(0, 0, 0, 0.88);
}

.video-popup__frame {
    width: min(1200px, 100%);
    aspect-ratio: 16 / 9;
}

.video-popup--reel .video-popup__frame {
    width: auto;
    height: min(80vh, 760px);
    aspect-ratio: 9 / 16;
}

.video-popup__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--color-white);
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.video-popup__close:before,
.video-popup__close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 4px;
    background-color: currentColor;
    content: "";
}

.video-popup__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-popup__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
