.modal.fade.in {
    top: 10% !important;
}
.fade.in {
    opacity: 1;
}
.modal.fade {
    -webkit-transition: opacity .3s linear, top .3s ease-out;
    -moz-transition: opacity .3s linear, top .3s ease-out;
    -o-transition: opacity .3s linear, top .3s ease-out;
    transition: opacity .3s linear, top .3s ease-out;
    top: -25%;
}
.fade {
    opacity: 0;
    -webkit-transition: opacity 0.15s linear;
    -moz-transition: opacity 0.15s linear;
    -o-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}
.hide {
    display: none;
}
.modal {
    position: fixed;
    top: 10%;
    left: 50%;
    z-index: 1050;
    width: 80vw;
    margin-left: -40vw;
    background-color: rgba(255,255,255, 0.9);
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: none;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-y: hidden;
}

.modal-body {
    position: relative;
    max-height: 80%;
    overflow-y: visible;
    padding: 5px 5px 0;
    background-color: #49454B;
}

.modal-body.modal-body-video iframe {
    height: 60vh; /*800px;*/
    width: 100%;
    max-height: 80%;
}

.modal {
    position: fixed;
    top: 5%;
    left: 20%;
    z-index: 1050;
    width: 80vw;
    margin-left: -10vw;
    background-color: rgba(255,255,255, 0.9);
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: none;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-y: hidden;
}

/*Not iPad*/

@media (min-width: 1025px) {
    .modal {
        left: 20%;
        z-index: 1050;
        width: 80vw;
        margin-left: -10vw;
    }

    .modal.fade.in {
        top: 10%;
    }

    .modal-body.modal-body-video iframe {
        height: 70vh;
        width: 100%;
        max-height: 80%;
    }
}

@media (min-width: 1367px) {
    .modal {
        position: fixed;
        top: 10%;
        left: 40%;
        z-index: 1050;
        width: 60vw;
        margin-left: -20vw;
    }
}

.modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
}
.modal-header .close {
    margin-top: 2px;
}

a.close-video {
    display: block;
    position: fixed;
    top: 50px;
    right: 50px;
    color: #fff;
    font-size: 24px;
    height: 40px;
    cursor: pointer;
    z-index: 2000;
    font-family:  Verdana, sans-serif;
}

a.close-video span {
    font-size: 14px;
}

a.close-video:hover {
    color: #eee;
}



.modal-backdrop,
.modal-backdrop.fade.in {
    opacity: 0.8;
    filter: alpha(opacity=80);
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}
.modal-header .link {
    white-space: normal;
    margin-left: 5px;
}
@media (max-width: 767px) {


    .modal.fade.in {
        top: 40px !important;
    }
    .modal {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        margin: 0;
    }

    .modal-body.modal-body-video iframe {
        height: 80vh;
        width: 100%;
        max-height: 85%;
    }
}
@media (max-width: 480px) {
    .modal {
        top: 10px;
        left: 10px;
        right: 10px;
    }
}

