/*
    JohnBox 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);:hover
}
#cboxTopCenter
#cboxWrapper {
    max-width: 100%;
}
#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;
    /*transition:width 0.5s ease; */
    -ms-interpolation-mode: bicubic;
    max-width:100% !important;

    background-image: url(/images/cropmarks-tl.png),url(/images/cropmarks-tr.png),url(/images/cropmarks-bl.png), url(/images/cropmarks-br.png);
    background-repeat: no-repeat,no-repeat,no-repeat,no-repeat;
    background-position: top left, top right, bottom left, bottom right;
    padding: 20px;
}
.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;
    /* transition:width 0.5s ease; */
}
/* 
    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: #fff;
    opacity: 0.8;
    filter: alpha(opacity=90);
}
#colorbox {
    outline: 0;
    left: 50%!important;
    transform: translate(-50%,-50%);
    top: 50%!important;
}
#cboxContent {
    padding-bottom: 21px;
    overflow: visible;
    background: transparent;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    position: absolute;
    max-width:100% !important;
}
.cboxIframe {
    background: #fff;
}
#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}
#cboxLoadedContent {
    background: transparent;
    padding: 1px;

}
#cboxLoadingGraphic {
    background: url(/images/loading.gif) no-repeat center center;
    background-size: 50px;
}
#cboxLoadingOverlay {
    background: transparent;
}
#cboxTitle {
    position: absolute;
    bottom: -26px;
    left: 50%;
    color: #ffffff99;
    font-style: italic;
    transform: translateX(-50%);
}
#cboxCurrent {
    position: absolute;
    bottom: -23px;
    left: calc(50% - 14px);
    text-align: center;
    color: black;
    height: 50px;
    width: 75px;
    transform: translateX(-50%);
    color:#8a8a8a;
}
/* 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;
    text-indent: -9999px;
    width: 20px;
    height: 50px;
    position: absolute;
    bottom: -10px;
    outline: unset;
    color:#484848;
    font-weight:700;
   /* background: url(images/controls.png) no-repeat 0 0;*/
    transition:opacity .3s, color .3s;
}
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */

#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
    outline: 0;
}
#cboxPrevious {
    text-indent: 0px;
    background: url(/images/arrow-left.svg);
    background-repeat: no-repeat;
    background-size: 20px 11px;
    background-position: left center;
    right: calc(50% + 40px);
    width: 80px;
    font-size: 14px;
    text-align:left;
    padding-left:24px;
}
#cboxPrevious:hover {
    opacity:.7;
}
#cboxNext {
    text-indent: 0px;
    background: url(/images/arrow-right.svg);
    background-repeat: no-repeat;
    background-size: 20px 11px;
    background-position: right center;
    left: calc(50% + 40px);
    width: 80px;
    font-size: 14px;
    text-align:right;
    padding-right:24px;
}
#cboxNext:hover {opacity: .7;
    
}
#cboxClose {
    left: 50%;
    text-indent: 0px;
    background: unset;
    color: #1f1b1b;
    padding: 0px 20px;
    /* transform: translateX(-50%); */
    bottom:-18px;
    font-weight:700;
    transition: opacity 0.3s;
}
#cboxClose:after {    
    content: 'X';
    color: #000;
   
    position: absolute;
    font-size: 14px;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
}

#cboxClose.clone{
    position:fixed;z-index:10000;top:20px;right:20px;left:auto;padding:5px;bottom:auto;
}

#cboxClose.clone:after {    
    font-size:24px;color:#484848;
    transition: opacity 0.3s;
}

}
#cboxClose:hover { opacity:0.5;
    
}
.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 screen and (max-width:650px){
        .cboxPhoto {
    background-image: none;
}
}