.modal {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 10px;
    background-color: rgba(0, 0, 0, .5);
    transition: opacity .3s ease;
}
.modal--gallery {
    padding: 20px 10px;
}
.modal--gallery .modal__container {
    height: calc(100vh - 40px);
}
.modal:not([open]) {
    display: none;
}
.modal__container {
    position: relative;
    max-width: calc(100vw - 40px);
    min-width: 100%;
    margin: auto;
    padding: 60px 20px 40px;
    border-radius: 10px;
    background-color: #FFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
}
.modal--media .modal__container {
    padding: 4px;
}
.modal--gallery .modal__container {
    width: 100%;
}
.modal__close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 20px;
    padding: 9px;
    border: 0;
    cursor: pointer;
    background: none;
    transition: color .2s;
}
.modal__close::before {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 0 0 10px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #FFF;
    background: #00AAB8;
    transition: background-color .2s;
}
.modal__close:hover {
    color: #00C2D3;
}
.modal__close:hover:before {
    background: #00C2D3;
}

/* remove top and bottom padding from content elements in modal */
.modal[name^='record-modal-'] .modal__container > div, .modal[name^='record-modal-'] .modal__container iframe > div{
    padding-top: 0;
    padding-bottom: 0;
}

/*
 * The following styles are auto-applied to elements with
 * transition="modal" when their visibility is toggled
 * by Vue.js.
 *
 * You can easily play with the modal transition by editing
 * these styles.
 */

.modal--enter {
    opacity: 0;
}
.modal--leave {
    opacity: 0;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

/* --- PHONE (SM) --- */
@media ( min-width: 576px ) {

    .modal {
        padding: 60px 20px;
    }
    .modal--gallery {
        padding: 30px 20px;
    }
    .modal--gallery .modal__container {
        height: calc(100vh - 60px);
    }

}



/* --- TABLET (MD) --- */
@media ( min-width: 768px ) {

    .modal__container {
        min-width: 320px;
    }
    .modal--form .modal__container,
    .modal--media .modal__container {
        width: 80vw;
    }

}



/* --- DESKTOP (LG) --- */
@media ( min-width: 992px ) {
    .modal__container {
        padding: 80px 60px;
    }
    .modal--large .modal__container {
        width: 75vw;
        max-width: 1200px;
    }
    .modal__close {
        top: 20px;
        right: 20px;
    }
}



/* --- DESKTOP (XL) --- */
@media ( min-width: 1200px ) {

    .modal--form .modal__container,
    .modal--media .modal__container {
        max-width: 854px;
    }
    .modal--gallery .modal__container {
        /* max 1400px container width + max padding */
        max-width: 1640px;
    }

}



/* --- DESKTOP (XXL) --- */
@media ( min-width: 1440px ) {

    .modal__container {
        padding: 100px 120px;
    }
    .modal--gallery .modal__container {
        padding: 100px;
    }
    .basicLightbox--iframe .modal > .modal__container {
        padding: 50px
    }

}
