.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4000;

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;

    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal > .modal-container {
    position: relative;
    width: 810px;
    height: 730px;
    background-color: white;
    overflow: auto;
    margin-top: -200%;
    opacity: 0;

    -webkit-transition: margin .3s, opacity .3s;
    -moz-transition: margin .3s, opacity .3s;
    -o-transition: margin .3s, opacity .3s;
    transition: margin .3s, opacity .3s;
}

.modal.open > .modal-container {
    margin-top: 0;
    opacity: 1;
}

.modal > .modal-container > .close {
    position: absolute;
    color: white;
    font-size: 1.35em;
    top: 10px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 8px;
    cursor: pointer;
    z-index: 10;
}

.modal > .modal-container > .close:hover {
    color: black;
}

.modal > .modal-container > iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    border: none;
}

@media all and (max-width: 810px) {
    .modal {
        align-items: flex-start;
    }

    .modal > .modal-container {
        width: 100%;
    }
}

@media all and (max-height: 730px) {
    .modal > .modal-container {
        height: 100%;
    }

    .modal > .modal-container > .close {
        right: 26px;
    }
}