/**
 * Colorbox Core Style:
 * The following CSS is consistent between example themes and should not be altered.
 */
#colorbox, #cboxOverlay, #cboxWrapper {
    font-family: "Clear Sans";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: visible !important;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft, #cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: initial;    
}
#cboxContent table td{
  color:white !important;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    table.cg-content {
        width: auto;
    }
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay, #cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/**
 * These elements are buttons, and may need to have additional
 * styles reset to avoid unwanted base styles.
 */
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
    cursor: pointer;
}

/**
 * Avoid outlines on :active (mouseclick),
 * but preserve outlines on :focus (tabbed navigating)
 */
#cboxPrevious:active, #cboxNext:active, #cboxClose:active, #cboxSlideshow:active {
    outline: 0;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Reset box sizing to content-box if theme is using border-box. */
#colorbox, #cboxContent, #cboxLoadedContent {
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

/**
 * Colorbox module default style:
 * The styles are ordered & tabbed in a way that represents
 * the nesting of the generated HTML.
 */
#cboxOverlay {
    background: #000;
}

#colorbox {
    outline: 0;
}

#cboxWrapper {
    background: transparent;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
}

#cboxTopLeft {
    width: 15px;
    height: 15px;
}

#cboxTopCenter {
    height: 15px;
}

#cboxTopRight {
    width: 15px;
    height: 15px;
}

#cboxBottomLeft {
    width: 15px;
    height: 10px;
}

#cboxBottomCenter {
    height: 10px;
}

#cboxBottomRight {
    width: 15px;
    height: 10px;
}

#cboxMiddleLeft {
    width: 15px;
}

#cboxMiddleRight {
    width: 15px;
}

#cboxContent {
    background: transparent;
    overflow: hidden;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    margin-bottom: 28px;
}

#cboxTitle {
    font-size: 15.56px;
    line-height: 1.56;
    // position: absolute;
    background: transparent;
    bottom: 2px;
    left: 14px;
    color: #f0f0f0;
    width: 60%;
    // padding: 10px 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    // position: fixed;
    // bottom: 0;
    // left: 0;
    // width: 100%;
    // background-color: rgba(0, 0, 0, 0.5);
    // // padding-left: 0;
    // // padding-right: 0;
    // padding: 2px 20px 10px;
}

#cboxCurrent {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #f8f8f8;
}

.cboxSlideshow_on #cboxSlideshow {
    position: absolute;
    bottom: 0px;
    right: 30px;
    background: url(images/controls.png) no-repeat -75px -50px;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
}

.cboxSlideshow_on #cboxSlideshow:hover {
    background-position: -101px -50px;
}

.cboxSlideshow_off #cboxSlideshow {
    position: absolute;
    bottom: 0px;
    right: 30px;

    background: url(images/controls.png) no-repeat -25px -50px;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
}

.cboxSlideshow_off #cboxSlideshow:hover {
    background-position: -49px -50px;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -85px;
    color: transparent;
    width: 100px;
    height: 100%;
}

#cboxPrevious:hover:after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid white;
}

#cboxPrevious:after {
    content: '';
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 45px;
}

#cboxNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -85px;
    color: transparent;
    width: 100px;
    height: 100%;
}

#cboxNext:hover:after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid white;
}

#cboxNext:after {
    content: '';
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 45px;
}

#cboxLoadingOverlay {
    background: transparent;
}

#cboxClose {
    position: fixed;
    top: 24px;
    right: 24px;
    background-image: url(../img/icons/close.svg);
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    color: transparent;
    background-position: center center;
}

#cboxClose:hover {
    background-size: cover;
}

#cboxLoadedContent > img {
    // width: 100% !important;
    height: auto !important;
    // margin-top: 0 !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    // height: 100vh !important;
    margin-top: 0 !important;
    // width: auto;
}

#cboxDownload {
    position: absolute;
    bottom: -10px;
    right: 15px;
    color: white;
    font-size: 14.72px;
    text-align: right;
    padding-left: 20px;
    cursor: pointer;
}

#cboxDownload:hover {
    text-decoration: underline;
}

#cboxDownload:after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    background-image: url(../img/icons/download-w.svg);
    background-repeat: no-repeat;
    width: 15px;
    height: 12px;
}

@media screen and (max-width: 990px) {
    #cboxDownload {
        bottom: 15px;
        right: initial;
    }
    #cboxTitle {
        bottom: -30px;
    }
}

@media screen and (max-width: 600px) {
    #cboxDownload {
        bottom: -10px;
        right: 50%;
    }
    #cboxCurrent {
        right: 50%;
    }
    #cboxNext {
        top: initial;
        bottom: -5px;
        transform: none;
        right: 0;
    }
    #cboxPrevious {
        top: initial;
        bottom: -5px;
        transform: none;
        left: 0;
    }
    #cboxLoadedContent {
        margin-bottom: 60px;
    }
    #cboxTitle {
        bottom: -80px;
    }
}


#cboxLoadingGraphic,
#cboxLoadingGraphic:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
#cboxLoadingGraphic {
    position: absolute !important;
    left: 43% !important;
    margin: 60px auto;
    font-size: 10px;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#cboxContent {
    color: #f0f0f0;
}

#cboxContent h2 {
    color: #f0f0f0;
}
