/* MODAL */

.overlay {
    background: rgba(0, 0, 0, .5);
    position: fixed;
    transform:translateZ(50px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.blured:before {
    content: '';
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px)
}

.modal {
    visibility: hidden;
    z-index: 530;
    position: relative;
    transform:translateZ(50);
}

.modal__contents {
    width: 36rem;
    position: fixed;
    left: 50%;
    margin-left: -18rem;
    bottom: 30vh;
    min-height: 40vh;
    box-shadow: rgba(255, 255, 255, 1) 0 0 0 3px, rgba(0, 0, 0, 0.9) 0 0 30px;
    color:#333;
    border-radius:0px;
    background-color:#FFF;
}

.modal-content {
    height: 40vh;
    height: calc(40vh - 2.8rem);
    overflow: auto
}

.modal.large .modal__contents {
    width: 48rem;
    left: 50%;
    margin-left: -24rem;
    bottom: 20vh;
    min-height: 60vh
}

.modal.large .modal-content {
    height: 60vh;
    height: calc(60vh - 2.8rem)
}

.modal__close {
    position: absolute;
    left: calc(100% - 40px);
    top:2px;
    padding: 1.2rem;
    background-color:transparent;
    text-decoration: none;
    background-image:url('../images/close.png');
    background-position: 50% 50%;
    background-size:auto auto;
    background-repeat: no-repeat;
    opacity:0.7;
    transition: opacity 0.25s ease
}

.modal__close:hover {
    opacity:1
}

.modal__close:before {
    margin: 0 !important
}

.modal-content {
    padding: 1.5rem 1rem 1rem 1rem
}

.modal--show {
    visibility: visible;
}

.modal-header {
    padding-top:10px;
    padding-bottom:10px;
    color:#000000;
    text-transform:uppercase;
    font-weight:bold;
    border-bottom:rgba(0, 0, 0, .1) 1px dashed
}

.modal-header span {
    margin-left: 1rem;
    font-weight:500;
    font-size:120%;
}

.modal--transition {
    -webkit-transform: translateY(-70vh);
    -moz-transform: translateY(-70vh);
    -ms-transform: translateY(-70vh);
    transform: translateY(-70vh);
    opacity: 0;
    -webkit-transition: all 0.64s cubic-bezier(0.7, 0, 0.195, 1);
    -moz-transition: all 0.64s cubic-bezier(0.7, 0, 0.195, 1);
    transition: all 0.64s cubic-bezier(0.7, 0, 0.195, 1)
}

.modal--show .modal--transition {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1
}

@media screen and (max-width: 48rem),
screen and (max-height: 42rem) {
    .modal__contents {
        top: 5% !important;
        left: 5% !important;
        bottom: 5% !important;
        width: 90% !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .modal-content {
        height: 90vh !important;
        height: calc(90vh - 60px) !important
    }
    .modal--transition {
        -webkit-transform: translateX(-0) translateY(150%);
        -moz-transform: translateX(-0) translateY(150%);
        -ms-transform: translateX(-0) translateY(150%);
        transform: translateX(-0) translateY(150%)
    }
}


