/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#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;}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/

/* MODAL */

#cboxOverlay {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.3);
    z-index: 999;
}

#colorbox {
    z-index: 999;
    outline:none;
    border: 5px solid #54585a;
    background: #FFF;
    position: fixed!important;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%);
}

#cboxCurrent {
    display: none!important;
}

img.cboxPhoto {
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    padding: 10px;
}

#cboxContent {
    position: absolute;
}

#cboxContent
 button {
    position: absolute;
    -webkit-appearance: none;
    border: none;
    border-radius: 0;
    font-size: 0;
    width: 35px;
    height: 35px;
}

#cboxContent button#cboxClose {
    background: #FFF;
    top: 0px;
    right: 0px;
}

#cboxContent button#cboxClose:before {
    content: "X";
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #54585a;
}

#cboxContent button#cboxPrevious,
#cboxContent button#cboxNext {
    background:#FFF;
    bottom: 0;
    color: #000;
}


#cboxContent button#cboxNext:before,
#cboxContent button#cboxPrevious:before {
    content: "<";
    font-size: 14px;
    font-weight: bold;
}

#cboxContent button#cboxNext:before {
    content: ">";
}

#cboxContent button#cboxNext {
    left: 35px;
}