.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.modal-bg {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
}

.modal-container {
    border-radius: 0;
    background: none;
    position: relative;
    padding: 0;
}

.modal-container iframe {
    width: 320px;
    height: 180px;
}
@media (min-width: 36rem) {
    .modal-container iframe {
        width: 500px;
        height: 280px;
    }
}
@media (min-width: 48rem) {
    .modal-container iframe {
        width: 720px;
        height: 405px;
    }
}
@media (min-width: 62rem) {
    .modal-container iframe {
        width: 58.75rem;
        height: 528px;
    }
}
@media (min-width: 75rem) {
    .modal-container iframe {
        width: var(--w-xlarge);
        height: 640px;
    }
}

.modal-close {
    position: absolute;
    right: 0px;
    top: -30px;
    outline: none;
    appearance: none;
    color: var(--c-white);
    background: none;
    border: 0px;
    font-weight: bold;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}
@media (min-width: 62rem) {
    .modal-close {
        right: -30px;
    }
}

.modal-close::after {
        display: block;
        content: url("../../images/close_modal.svg");
}
