/* MODAL */

.overlay {
    background: rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	z-index:450;
}


.modal {
    visibility: hidden;
    z-index: 500;
}

.modal__contents {
    width: 46rem;
    position: absolute;
    left: 50%;
    margin-left: -23rem;
    top:0;
    border-radius:0px;
    background-color:#f2f7ef;
    border-radius:10px;
    padding:40px 50px;
    z-index: 540;
	-webkit-transform: translate3d(0,0,0);
}

.modal-content {
    /* height: 40vh;
    height: calc(40vh - 2.8rem); */
    overflow: auto;
}

.modal--xl .modal__contents {
    width: 1140px;
    margin-left: -570px;
}


.modal__close {
    position: absolute;
    left: calc(100% - 56px);
    top:18px;
    padding: 18px;
    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 {
    text-align:center;
}

.modal-header span {
    font-size:30px;
    font-family: 'Gotham Pro';
    font-weight:900;
}

.modal--transition {
    -webkit-transform: translateY(-10vh);
    -moz-transform: translateY(-10vh);
    -ms-transform: translateY(-10vh);
    transform: translateY(-10vh);
    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: 990px),
screen and (max-height: 52rem) {
    body .modal--xl .modal__contents {
        width: 100% !important;
        margin-left: 0;
        left:0;
        top:0
    }
}

@media screen and (max-width: 38rem),
screen and (max-height: 52rem) {
    .modal__contents {
        left: 0 !important;
        width: 100% !important;
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
        padding-left:0px;
        padding-right:0px;
    }
    .modal--transition {
        -webkit-transform: translateX(0) translateY(-10%);
        -moz-transform: translateX(0) translateY(-10%);
        -ms-transform: translateX(0) translateY(-10%);
        transform: translateX(0) translateY(-10%)
    }
  .modal__close {
    left: calc(50% - 20px);
    top:10px;
}
}


