/*
* This is a fork of Colorbox jQuery plugin
*/
#ccolorbox, #ccboxOverlay, #ccboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#ccboxWrapper {max-width:none;}
#ccboxOverlay{position:fixed; width:100%; height:100%;}
#ccboxMiddleLeft, #ccboxBottomLeft{clear:left;}
#ccboxContent{position:relative;}
#ccboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#ccboxTitle{margin:0;}
#ccboxLoadingOverlay, #ccboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#ccboxPrevious, #ccboxNext, #ccboxClose, #ccboxSlideshow{cursor:pointer;}
.ccboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.ccboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#ccolorbox, #ccboxContent, #ccboxLoadedContent{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 ccolorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#ccboxOverlay{background:#000;}
#ccolorbox{outline:0;}
    #ccboxTopLeft{width:14px; height:14px; background:url(../images/5/controls.png) no-repeat 0 0;}
    #ccboxTopCenter{height:14px; background:url(../images/5/border.png) repeat-x top left;}
    #ccboxTopRight{width:14px; height:14px; background:url(../images/5/controls.png) no-repeat -36px 0;}
    #ccboxBottomLeft{width:14px; height:43px; background:url(../images/5/controls.png) no-repeat 0 -32px;}
    #ccboxBottomCenter{height:43px; background:url(../images/5/border.png) repeat-x bottom left;}
    #ccboxBottomRight{width:14px; height:43px; background:url(../images/5/controls.png) no-repeat -36px -32px;}
    #ccboxMiddleLeft{width:14px; background:url(../images/5/controls.png) repeat-y -175px 0;}
    #ccboxMiddleRight{width:14px; background:url(../images/5/controls.png) repeat-y -211px 0;}
    #ccboxContent{background:#fff; overflow:visible;}
        .ccboxIframe{background:#fff;}
        #ccboxError{padding:50px; border:1px solid #ccc;}
        #ccboxLoadedContent{margin-bottom:5px;}
        #ccboxLoadingOverlay{background:url(../images/5/loading_background.png) no-repeat center center;}
        #ccboxLoadingGraphic{background:url(../images/5/loading.gif) no-repeat center center;}
        #ccboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
        #ccboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}

        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #ccboxPrevious, #ccboxNext, #ccboxSlideshow, #ccboxClose {border:0; padding:0; margin:0; overflow:visible;  position:absolute; bottom:-29px; background:url(../images/5/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
        
        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
        #ccboxPrevious:active, #ccboxNext:active, #ccboxSlideshow:active, #ccboxClose:active {outline:0;}

        #ccboxPrevious{left:0px; background-position: -51px -25px;}
        #ccboxPrevious:hover{background-position:-51px 0px;}
        #ccboxNext{left:27px; background-position:-75px -25px;}
        #ccboxNext:hover{background-position:-75px 0px;}
        #ccboxClose{right:0; background-position:-100px -25px;}
        #ccboxClose:hover{background-position:-100px 0px;}

        .ccboxSlideshow_on #ccboxSlideshow{background-position:-125px 0px; right:27px;}
        .ccboxSlideshow_on #ccboxSlideshow:hover{background-position:-150px 0px;}
        .ccboxSlideshow_off #ccboxSlideshow{background-position:-150px -25px; right:27px;}
        .ccboxSlideshow_off #ccboxSlideshow:hover{background-position:-125px 0px;}