/*
    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;*/ -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{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.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;}
    #cboxContent{margin-top:50px;background:#000;}
        .cboxIframe{background:#fff;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{border:1px solid #000; background:#fff;}
        #cboxTitle{position:absolute; bottom:100%;padding-right:25px; left:0; color:#ccc; text-align:center; width:100%;}
        #cboxCurrent{position:absolute; bottom:-25px; left:3px; color:#ccc;}
        #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; top:-20px; right:90px; color:#fff;}
        #cboxPrevious{position:absolute; top:50%; left:-35px; margin-top:-20px; background:url(images/prev-arrow.png) no-repeat top left;  width:22px; height:40px; text-indent:-9999px;}
        /*#cboxPrevious:hover{background-position:bottom left;}*/
        #cboxNext{position:absolute; top:50%; right:-35px; margin-top:-20px; background:url(images/next-arrow.png) no-repeat top right; width:22px; height:40px; text-indent:-9999px;}
        #cboxNext:hover{background-position:bottom right;}
#cboxWrapper{overflow:visible !important}
#cboxClose {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    position: absolute;
    top: -25px;
    right: -25px;
    display: block;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50rem;
    background: #bc141a url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    background-position: center center;
    background-repeat: no-repeat !important;
    text-indent: -9999px;
}
        /*#cboxClose:hover{background-position:bottom center;}*/
@media(max-width:767px){
    #cboxClose{height:30px !important; width:30px !important; line-height:30px !important; text-align:center; right:-15px; top:-15px}
    #cboxNext {
        width: 30px; border-radius:50rem;
        height: 30px; right:-10px; font-weight:bold !important;
        background-color: rgba(0,0,0,.9); 
        background-size: 33%; background-position:center center;
    }
    #cboxPrevious {
        width: 30px;
        border-radius: 50rem;
        height: 30px;
        left: -10px;
        font-weight: bold !important;
        background-color: rgba(0,0,0,.9);
        background-size: 33%;
        background-position: center center;
    }
}