/*
    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:visible; -webkit-transform: translate3d(0,0,0);}
#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 { margin: auto; border :0; display: block; max-width: none; -ms-interpolation-mode:bicubic; max-height: 720px !important; object-fit: cover; }
.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; opacity: 0.9; filter: alpha(opacity = 90); }
#colorbox { outline:0; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
    #cboxContent {margin-top: 20px; }
        .cboxIframe { background: transparent; }
        #cboxError { padding: 50px; border: 1px solid #ccc; }
        #cboxLoadedContent { background: transparent; max-height: 720px !important; }
        #cboxTitle { position: absolute; top: -20px; left: 0; color: #ccc; }
        #cboxCurrent { position: absolute; bottom: -30px; right: 50px; color: #ccc; font-size: 16px; font-weight: 100; }
        #cboxCurrent > span { display: inline-block; padding: 0 15px; }
        #cboxLoadingGraphic { background:url('/resources/img/sub/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: -20px; right: 90px; color: #fff; }

        #cboxPrevious { width: 30px; height: 30px; position: absolute; bottom: -35px; right: 120px; background: url('/resources/img/sub/lightbox_prev_btn.png') no-repeat center center/ 10px 27px; text-indent: -9999px; }

        #cboxNext { width: 30px; height: 30px; position: absolute; bottom: -35px; right: 0; background: url('/resources/img/sub/lightbox_next_btn.png') no-repeat center center/ 10px 27px; text-indent: -9999px; }

        #cboxClose { display: block; width: 45px; height: 45px; position: absolute; top: 0px; right: 0px; display: block; background: rgba(0, 0, 0, 0.75) url('/resources/img/sub/lightbox_cls_btn.png') no-repeat center center / 36px 36px; text-indent: -9999px; }
        #cboxClose:hover { background-color: rgba(0, 0, 0, 1); }

        
        @media screen and (max-width:960px){
            #colorbox { max-width: 640px; }
            #cboxWrapper { max-width: 640px; }
            #cboxContent { max-width: 640px; }
            #cboxLoadedContent { max-width: 640px; }

            .cboxPhoto { width: 100% !important; } 
        }
        @media screen and (max-width:840px){
            #colorbox { max-width: 500px; }
            #cboxWrapper { max-width: 500px; }
            #cboxContent { max-width: 500px; }
            #cboxLoadedContent { max-width: 500px; }
            #cboxPrevious { left: 0; }
            #cboxNext { right: 0; }
            #cboxCurrent { right: unset; left: 50%; transform: translateX(-50%); }
        } 
        @media screen and (max-width:640px){
            #colorbox { max-width: 360px; height: auto; max-height: 75vh; }
            #cboxWrapper { max-width: 360px; height: auto; max-height: 75vh; }
            #cboxContent { max-width: 360px; height: auto; max-height: 75vh; }
            #cboxLoadedContent { max-width: 360px; height: auto; max-height: 75vh; }

            .cboxPhoto { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; }
        }