#colorbox, #cboxOverlay, #cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

#cboxWrapper {
    max-width: none;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft, #cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    margin: 50px;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#cboxLoadingOverlay, #cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}

#colorbox, #cboxContent, #cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#cboxOverlay {
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0.9;
    filter: alpha(opacity = 90);
}

#colorbox {
    outline: 0;
}

#cboxContent {
    overflow: hidden;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxCurrent {
    display: none;
    left: 50%;
    right: 50%;
    bottom: 65px;
    position: absolute;
    color: #000;
}

#cboxLoadingOverlay {
    background: url(../img/loading_background.png) no-repeat center center;
}

#cboxLoadingGraphic {
    background: url(../img/loading.gif) no-repeat center center;
}

#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
}

#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
    outline: 0;
}

#cboxSlideshow {
    position: absolute;
    bottom: 4px;
    right: 30px;
    color: #0092ef;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    bottom: 0%;
    left: 50px;
    background: #969696 url(../img/left--arrow.png) no-repeat;
    width: 35px;
    height: 35px;
    text-indent: -9999px;
    background-size: 15px;
    background-position: center;
}

#cboxNext {
    position: absolute;
    top: 50%;
    bottom: 0%;
    right: 50px;
    background: #969696 url(../img/right--arrow.png) no-repeat;
    width: 35px;
    height: 35px;
    text-indent: -9999px;
    background-size: 15px;
    background-position: center;
}

#cboxClose {
    position: absolute;
    top: 10px;
    right: 10px;
    background: url(../img/modal-close.png) no-repeat;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
}

.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
}

@media only screen and (max-width: 767px) {
    #cboxLoadedContent {
        margin:25px;
    }

    #cboxClose {
        position: absolute;
        top: 0px;
        right: -10px;
        background: url(../img/modal-close.png) no-repeat;
        width: 33px;
        height: 33px;
        text-indent: -9999px;
        background-size: 23px;
    }

    #cboxPrevious {
        position: absolute;
        top: 50%;
        right: auto;
        left: 25px;
        bottom: 0;
        width: 20px;
        height: 35px;
        text-indent: -9999px;
        background-size: 12px;
        background-position: 50%;
    }

    #cboxNext {
        position: absolute;
        top: 50%;
        left: auto;
        right: 25px;
        bottom: 0;
        width: 20px;
        height: 35px;
        text-indent: -9999px;
        background-size: 12px;
        background-position: 50%;
    }
}

@media (max-width: 320px) {
    #cboxLoadedContent {
        margin:25px 0 0;
    }

    #cboxClose {
        position: absolute;
        top: 0;
        bottom: 0;
        right: -15px;
        background: url(../img/modal-close.png) no-repeat;
        width: 33px;
        height: 33px;
        text-indent: -9999px;
        background-size: 19px;
    }

    #cboxPrevious {
        position: absolute;
        top: 50%;
        left: 0%;
        width: 17px;
        height: 30px;
        background-size: 10px;
        background-position: 50%;
    }

    #cboxNext {
        position: absolute;
        top: 50%;
        right: 0%;
        width: 17px;
        height: 30px;
        background-size: 10px;
        background-position: 50%;
    }
}
