/*
    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;*/}
#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.
*/
#cboxOverlay{background:#000;}
#colorbox{outline:0;}
    #cboxTopLeft{width: 0;height: 0;background: none;}
    #cboxTopCenter{height: 0;background: none;}
    #cboxTopRight{width: 0;height: 0;background: none;}
    #cboxBottomLeft{width: 0;height: 0;background: none;}
    #cboxBottomCenter{height: 0;background: none;}
    #cboxBottomRight{width: 0;height: 0;background: none;}
    #cboxMiddleLeft{width: 0;background: none;}
    #cboxMiddleRight{width: 0;background: none;}
    #cboxContent{background:#000; /*overflow:hidden;*/}
        .cboxIframe{background:#000;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{/*margin-bottom:20px;*/}
        #cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color: #fff;background: rgba(0, 0, 0, 0.5);font-weight: bold;font-size: 18px;padding:10px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
        #cboxCurrent{position:absolute; top:7px; left:7px;font-size: 13px;color:#fff;text-shadow: 0 1px 1px #000;}
        #cboxLoadingOverlay{background:url(/img/spinner.gif) no-repeat center center;}

        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none;-webkit-transition: all 300ms ease-out;-moz-transition: all 300ms ease-out;-o-transition: all 300ms ease-out;-ms-transition: all 300ms ease-out;transition: all 300ms ease-out;}
        
        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
        #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

        #cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
        #cboxPrevious{position:absolute; top:50%; left:10px;width: 24px;height: 41px;margin-top: -20px;color:#fff;text-indent: -99999px;background: url(/img/colorbox/arrows.png) no-repeat 0 0; opacity: 0.5;}
        #cboxNext{position:absolute; top:50%; right:10px;width: 24px;height: 41px;margin-top: -20px;color:#fff;text-indent: -99999px;background: url(/img/colorbox/arrows.png) no-repeat -24px 0;opacity: 0.5;}
        #cboxPrevious:hover {color: #444;}
        #cboxNext:hover {color: #444;}
        #cboxClose{position:absolute; top: -10px;right: -5px;display: block;font-size: 40px;line-height: 30px;color: #fff;padding: 10px;}
        #cboxClose:hover{color: #444;}
        .cbox-iframe #cboxClose {top: 0;right: -38px;line-height: 11px;color: #D5D5D5;background: rgba(0, 0, 0, 0.35);text-shadow: 0 1px 1px #000;font-size: 34px;padding: 9px;}
        .cbox-iframe #cboxClose:hover {color: #fff;}

.cbox-popimg #cboxContent {background: #fff;background: rgba(255,255,255,0.9);}
.cbox-popimg #cboxClose {color: #D90512;}
.cbox-popimg #cboxClose:hover {color: #999;}
/*
  The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
  when an alpha filter (opacity change) is set on the element or ancestor element.  This style is not applied to or needed in IE9.
  See: http://jacklmoore.com/notes/ie-transparency-problems/

.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);
}
*/

/* Responsive classes */
@media screen and (max-width:1024px) {
    .cbox-iframe #cboxClose {top: -60px;right: 0;padding: 19px;}
}