/*
    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;}
#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: none repeat scroll 0 0 #FFFFFF;
    opacity: 0.8 !important;
}
#colorbox{outline:0; box-shadow: 5px 5px 50px 15px rgba(40, 40, 40, 0.5);}
    #cboxTopLeft{width:15px; background: white; height:15px;}
    #cboxTopRight{width:15px; background: white; height:15px;}
    #cboxBottomLeft{width:15px; background: white; height:15px;}
    #cboxBottomRight{width:15px; background: white; height:15px;}
    #cboxMiddleLeft{width:15px; background: white;padding-bottom: 30px;}
    #cboxMiddleRight{width:15px; background: white;padding-bottom: 30px;}
    #cboxTopCenter{height:15px; background: white;}
    #cboxBottomCenter{height:15px; background: white;}
    #cboxContent{background:#fff;padding-bottom: 30px;} /* overflow:hidden;} */
        .cboxIframe{background:#fff;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{margin-bottom:0px;}
        #cboxTitle{
          background: none repeat scroll 0 0 rgba(0, 0, 0, 0.65);
          bottom: 0px;
          color: white;
          height: 30px;
          left: 0;
          line-height: 30px;
          position: absolute;
          width: 100%;
          text-indent: 10px;
        }
        #cboxCurrent{
          bottom: 0px;
          color: #FFFFFF;
          right: 40px;
          line-height: 30px;
          position: absolute;
        }
        #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
        #cboxLoadingGraphic{background:url(images/loading.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; }

        /* 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:4px; right:30px; color:#0092ef;}
        #cboxPrevious{position:absolute; top:50%; left:0; background:url(./../img/back.x1.png);background-size: 100% 100%; width:30px; height:30px; text-indent:-9999px;}
        #cboxNext{position:absolute; top:50%; right:0px; background:url(./../img/forward.x1.png);background-size: 100% 100%; width:30px; height:30px; text-indent:-9999px;}
        #cboxClose{position:absolute; bottom:0px; right:0px; background:url(./../img/close.x1.png);background-size: 100% 100%; width:30px; height:30px; text-indent:-9999px;}
        #cboxPrevious:hover{background:url(./../img/back.ro.x1.png);background-size: 100% 100%;}
        #cboxNext:hover{background:url(./../img/forward.ro.x1.png);background-size: 100% 100%;}
        #cboxClose:hover{background:url(./../img/close.ro.x1.png);background-size: 100% 100%;}

@media
only screen and (-webkit-min-device-pixel-ratio: 2)      and (min-width: 320px),
only screen and (   min--moz-device-pixel-ratio: 2)      and (min-width: 320px),
only screen and (     -o-min-device-pixel-ratio: 2/1)    and (min-width: 320px),
only screen and (        min-device-pixel-ratio: 2)      and (min-width: 320px),
only screen and (                min-resolution: 192dpi) and (min-width: 320px),
only screen and (                min-resolution: 2dppx)  and (min-width: 320px) {
        #cboxPrevious{background:url(./../img/back.x2.png);background-size: 100% 100%;}
        #cboxNext{background:url(./../img/forward.x2.png);background-size: 100% 100%;}
        #cboxClose{background:url(./../img/close.x2.png);background-size: 100% 100%;}
        #cboxPrevious:hover{background:url(./../img/back.ro.x2.png);background-size: 100% 100%;}
        #cboxNext:hover{background:url(./../img/forward.ro.x2.png);background-size: 100% 100%;}
        #cboxClose:hover{background:url(./../img/close.ro.x2.png);background-size: 100% 100%;}
}

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