﻿#modal-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: rgba(6,56,69, 0.9);
    z-index: 9999;
}

    #modal-overlay .overlay {
        position: fixed;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 100%;
        background-color: rgba(6,56,69, 0.9);
        opacity: .7;
    }

    #modal-overlay .modal-container {
        position: absolute;
        width: 55%;
        padding: 10px;
        border: 1px solid #FFF;
        top: 20%;
        left: 22.5%;
    }

        #modal-overlay .modal-container::before {
            content: '';
            display: block;
            width: 100%;
            padding-top: 56.25%;
        }

        #modal-overlay .modal-container iframe {
            position: absolute;
            width: calc(100% - 20px);
            height: calc(100% - 20px);
            border: 1px solid #0C0C0C;
            top: 10px;
            left: 10px;
            z-index: 2;
            background-color: transparent;
        }

    #modal-overlay .modal-close-button {
        position: absolute;
        top: -45px;
        right: -45px;
        padding: 10px 10px 0 10px;
        font-size: 30px;
        line-height: 1em;
        font-family: Arial, sans-serif;
        color: #FFF;
        cursor: pointer;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

        #modal-overlay .modal-close-button a {
            color: white;
        }

    #modal-overlay #iframeLoader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

@media screen and (max-width: 640px) {
    #modal-overlay .modal-container {
        position: absolute;
        width: 80%;
        left: 8%;
    }

    #modal-overlay .modal-close-button {
        position: absolute;
        top: -30px;
        right: -30px;
        font-size: 20px;
    }
}
