/*
    colorboxpre Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorboxpre, #cboxpreOverlay, #cboxpreWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
#cboxpreWrapper {max-width:none;}
#cboxpreOverlay{position:fixed; width:100%; height:100%;}
#cboxpreMiddleLeft, #cboxpreBottomLeft{clear:left;}
#cboxpreContent{position:relative;}
#cboxpreLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxpreTitle{margin:0;}
#cboxpreLoadingOverlay, #cboxpreLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxpreClose, #cboxpreSlideshow{cursor:pointer;}

.cboxprePhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}

.cboxpreIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorboxpre, #cboxpreContent, #cboxpreLoadedContent{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 colorboxpre.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/


#cboxpreOverlay{background:rgba(0,0,0,5);}
#colorboxpre{outline:0;}
    #cboxpreContent{margin-top:32px; overflow:visible;}
        .cboxpreIframe{background:#fff;}
        #cboxpreError{padding:50px; border:1px solid #ccc;}
        #cboxpreLoadedContent{
            /* add style */
            /*padding:1px;*/
            border: 4px solid #fff294;
            border-radius: 10px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            /* /add style */
        }
        #cboxpreLoadingGraphic{background:url(../image/cb/loading.gif) no-repeat center center;}
        #cboxpreLoadingOverlay{background:rgba(0,0,0,5);}
        #cboxpreTitle{position:absolute; top:-22px; left:0; color:#000;}
        #cboxpreCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}


        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #cboxpreSlideshow, #cboxpreClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width: 37px;
    height: 44px; position:absolute; top:-20px; background:url(../image/cb/close.png) no-repeat 0 0; z-index:10;}
        
        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
         #cboxpreSlideshow:active, #cboxpreClose:active {outline:0;}

        /* 
        #cboxprePrevious{background-position:0px 0px; right:44px;}
        #cboxprePrevious:hover{background-position:0px -25px;}
        #cboxpreNext{background-position:-25px 0px; right:22px;}
        #cboxpreNext:hover{background-position:-25px -25px;}*/

        
        #cboxpreClose{background-position: -6px 0px;
                    right: 5px;
                    top: -39px;
                    }
        #cboxpreClose:hover{background-position:-6px 0px;}
        

        .cboxpreSlideshow_on #cboxpreSlideshow{background-position:-75px -25px; right:44px;}
        .cboxpreSlideshow_on #cboxpreSlideshow:hover{background-position:-100px -25px;}
        .cboxpreSlideshow_off #cboxpreSlideshow{background-position:-100px 0px; right:44px;}
        .cboxpreSlideshow_off #cboxpreSlideshow:hover{background-position:-75px -25px;}