.esw-video-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.esw-video-popup.is-open {
    display: flex;
}

.esw-video-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
}

.esw-video-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 94vw);
    max-height: 92vh;
}

.esw-video-popup__frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.esw-video-popup__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.esw-video-popup__close {
    position: absolute;
    top: -46px;
    right: 0;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.esw-video-popup__close:hover,
.esw-video-popup__close:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.esw-video-popup-trigger--button {
    display: inline-block;
    padding: 0.75em 1.15em;
    border-radius: 6px;
    background: #1e73be;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}

.esw-video-popup-trigger--button:hover,
.esw-video-popup-trigger--button:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(0.94);
}

.esw-video-popup-trigger--image img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

@media (max-width: 600px) {
    .esw-video-popup {
        padding: 16px;
    }

    .esw-video-popup__dialog {
        width: 100%;
    }

    .esw-video-popup__close {
        top: -44px;
    }
}

.esw-video-popup-align-center {
    width: 100%;
    text-align: center;
}

.esw-video-popup-align-center .esw-video-popup-trigger--image {
    display: inline-block;
}
