/*
    ColorBox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox,
#cboxWrapper,
#cboxTopCenter,
#cboxMiddleLeft,
#cboxContent,
#cboxLoadedContent,
#cboxMiddleRight,
#cboxBottomCenter {
  -moz-transition: top 0.3s ease, left 0.3s ease;
  -webkit-transition: top 0.3s ease, left 0.3s ease;
  -o-transition: top 0.3s ease, left 0.3s ease;
  transition: top 0.3s ease, left 0.3s ease;
}

#colorbox, #cboxOverlay, #cboxOverlayWait, #OverglayWaitGraphic, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxOverlayWait{position:fixed; width:100%; height:100%; background: url(../img/loading_background.png) no-repeat center center; z-index:10000;}
#OverglayWaitGraphic{position:fixed; width:100%; height:100%; background: url(../img/loading.gif) no-repeat center center; z-index:10001}

#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative; overflow: hidden;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:46px; left:15px; width:32px; height:32px;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
.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:black;}
#colorbox{
    background:white; 
    box-shadow:0 0 15px #777; 
    -moz-box-shadow:0 0 15px #777; 
    -webkit-box-shadow:0 0 15px #777; 
}

.titleMargin #cboxLoadedContent { margin:40px; }
#cboxLoadedContent h2 { margin-top:0; background: none; font-weight:bold; }
#cboxLoadedContent h2 span { background: none; }
#cboxLoadedContent {
    margin-top:40px;
}

.noBorder #cboxLoadedContent,
.noBorder #cboxContent {margin:0;}

#cboxCurrent{position:absolute; top:0; left:58px; color:#949494;}
        /*#cboxLoadingOverlay{background:url(../img/loading_background.png) no-repeat center center;}*/
        #cboxLoadingGraphic{background:url(../img/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; top:4px; right:30px; color:#0092ef;}
        #cboxPrevious{position:absolute; top:50%; margin-top:-11px; left:7px; background:url(../img/prevnext_small.png) no-repeat; width:22px; height:22px; text-indent:-9999px;}
        #cboxPrevious:hover{background-position:-22px 0;}
        
        #cboxNext{position:absolute; top:50%; margin-top:-11px; right:7px; background:url(../img/prevnext_small.png) no-repeat -66px 0; width:22px; height:22px; text-indent:-9999px;}
        #cboxNext:hover{background-position:-44px 0;}
        
        #cboxClose{position:absolute; top:-25px; right:25px; background:url(../img/dlg_close.png) no-repeat top left; width:21px; height:20px; text-indent:-9999px;}
        #cboxClose:hover{background-position:-21px 0;}
        
        
#colorbox #cboxTopLeft {
    width:565px;
    max-width:100%;
    height:86px;
    background:url(../img/cloud_left.png) no-repeat top left;
    position:absolute;
    top:-57px;
    left:-5px;
}

#colorbox #cboxTopRight {
    width:344px;
    max-width:100%;
    height:86px;
    background:url(../img/cloud_right.png) no-repeat top left;
    position:absolute;
    top:-57px;
    right:-5px;
}