/*
    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:100000; /*overflow:hidden;*/}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#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;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
#colorbox, #cboxContent, #cboxLoadedContent{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:#191919; }
/*#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}*/
#colorbox{}
#cboxContent{margin-top:32px; overflow:visible;}
.cboxIframe{background: transparent;}
#cboxError{padding:50px; border:1px solid #d5d5d5;}
#cboxLoadedContent{background:none; /* border-radius: 5px; *padding:1px;* border:6px solid #d5d5d5;border-radius:5px;*/}
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
#cboxLoadingOverlay{/* background:#e0e0e0; */}
#cboxTitle{position:absolute; top:-22px; left:0; color:#000; display: none !important; }
#cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
#cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:31px; height:28px; position:absolute; top:5px;  background: url(images/team-cross.png) no-repeat 0 0;}
#cboxPrevious{background-position:0px 0px; right:44px;}
#cboxPrevious:hover{background-position:0px -25px;}
#cboxNext{background-position:-25px 0px; right:22px;}
#cboxNext:hover{background-position:-25px -25px;}
#cboxClose{/*background-position:-50px 0px;*/ right:0px; z-index:99999; }
/*#cboxClose:hover{background-position:-50px -25px;}*/
.cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}

@media (max-width: 1023px) {
    #colorbox {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }

    /*    #cboxLoadedContent {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100% !important;
            height: 100% !important;
            background: #fff;
        }
        
    */    .ourteam-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: scroll;
        width: 100%;
    }

    .ourteam-popup-left {
        /*        position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 50%;*/
        float: none;
    }

    .ourteam-popup-left img {
        padding-top: 28px;
        max-height: 590px;
    }

    .ourteam-popup-right {
        /*        width: 100%;
                position: absolute;
                top: 50%;
                left: 0;
                right: 0;
                height: 50%;*/
        float: none;
        text-align: center;
    }

    .ourteam-popup-right p { text-align: center; }

    .ourteam-popup-right ul { padding: 0; }

    .ourteam-popup-right ul li { padding-left: 20px; }

    #cboxClose {
        position: fixed;
        top: 0;
        right: 0 !important;
    }
}