.eco-video-modal {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 99999;
}

.eco-video-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.eco-video-modal__backdrop {
    background: rgba(0, 20, 16, .76);
    inset: 0;
    position: absolute;
}

.eco-video-modal__dialog {
    left: 50%;
    max-width: min(1080px, calc(100vw - 32px));
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.eco-video-modal__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #004735;
    cursor: pointer;
    display: flex;
    font-size: 36px;
    height: 52px;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    margin-bottom: 12px;
    width: 52px;
}

.eco-video-modal__frame {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

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

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

@media (max-width: 767px) {
    .eco-video-modal__dialog {
        max-width: calc(100vw - 20px);
    }

    .eco-video-modal__close {
        font-size: 30px;
        height: 46px;
        width: 46px;
    }

    .eco-video-modal__frame {
        border-radius: 16px;
    }
}
