.modal {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    left: -9999%;
    z-index: 99999;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    letter-spacing: -0.41em;
    text-rendering: optimizespeed;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.modal:before {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    content: "";
}

.modal, .modal::before, .modal::after,
.modal *, .modal *::before, .modal *::after {
    box-sizing: border-box;
}

.modal .modal-content {
    -webkit-transform: scale(0.7);
    transform: scale(0.7);
    transition: all 0.3s;
    max-width: 700px;
    width: 95%;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.6);
    z-index: 195;
    display: inline-block;
    vertical-align: middle;
    margin: 10px auto;
    letter-spacing: normal;
    text-align: left;
}


/* Content */

.modal .modal-content header {
    height: 45px;
    padding-right: 10px;
    padding-left: 10px;
    border-bottom: 1px solid #E6E6E6;
    font-size: 18px;
    font-weight: 700;
    line-height: 51px;
    color: #666;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #F7F7F7;
    overflow: hidden;
    position: relative;
}

.modal .modal-content .modal-close {
    position: absolute;
    font-weight: normal;
    top: 0;
    right: 10px;
    cursor: pointer;
    height: 20px;
    font-size: 30px;
    color: #666;
    font-family: sans-serif;
    line-height: 42px;
    text-decoration: none;
    opacity: 0.7;
}

.modal .modal-content .modal-body {
    padding: 10px 10px 10px 0;
}

.modal .modal-content .modal-body:after {
    content: "";
    display: table;
    clear: both;
}

.modal .modal-content .modal-body .col-4,
.modal .modal-content .modal-body .col-6 {
    display: block;
    float: left;
    width: 50%;
    padding-left: 10px;
}

.modal .modal-content .modal-body .col-4 {
    width: 33.3333333333%;
}

/* Locations */

.modal .modal-content .modal-body .location {
    display: block;
}
.modal .modal-content .modal-body .location img {
    background: #FBFBFB;
    border: 1px solid #E0E0E0;
    width: 100%;
    height: auto;
}

/* Active */

.no-js .modal,
.modal.modal-active {
    opacity: 1;
}

.modal.modal-active {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal.modal-inactive {
    transition: opacity 0.3s ease-in-out, left 0s 0.3s linear;
}

.modal.modal-active .modal-content {
    -webkit-transform: scale(1);
    transform: scale(1);
}

@media (max-width: 480px) {
    .modal .modal-content {
        width: 100%;
    }
    .modal .modal-content .modal-body .col-4,
    .modal .modal-content .modal-body .col-6 {
        float: none;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .modal .modal-content {
        width: 768px;
    }
}
@media (min-width: 992px) {
    .modal .modal-content {
        width: 992px;
    }
}
@media (min-width: 1200px) {
    .modal .modal-content {
        width: 1200px;
    }
}