/**
 * Colorbox Core Style:
 * The following CSS is consistent between example themes and should not be altered.
 */

/**
 * Disable stylelint rule 'selector-id-pattern' since these CSS IDs are provided
 * by the colorbox JS library and not defined by the module.
 */

/* stylelint-disable selector-id-pattern */
#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    overflow: hidden;
}

#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%;
}

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

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

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

.cboxIframe {
    display: block;
    width: 100%;
    height: 100%;
    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 {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background: #fff;
}

#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 {
    overflow: hidden;
    background: #fff;
}

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

#cboxLoadedContent {
    margin-bottom: 28px;
}

#cboxTitle {
    position: absolute;
    bottom: 28px;
    left: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 6px;
    color: #535353;
    background: rgba(255, 255, 255, 0.7);
}

#cboxCurrent {
    position: absolute;
    bottom: 4px;
    left: 60px;
    color: #949494;
}

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

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

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

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

#cboxPrevious {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
    background: url(../img/controls.png) no-repeat -75px 0;
}

#cboxPrevious:hover {
    background-position: -75px -25px;
}

#cboxNext {
    position: absolute;
    bottom: 0;
    left: 27px;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
    background: url(../img/controls.png) no-repeat -50px 0;
}

#cboxNext:hover {
    background-position: -50px -25px;
}

#cboxLoadingOverlay {
    background: #fff;
}

#cboxLoadingGraphic {
    background: url(../img/loading_animation.gif) no-repeat center center;
}

#cboxClose {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25px;
    height: 25px;
    text-indent: -9999px;
    background: url(../img/controls.png) no-repeat -25px 0;
}

#cboxClose:hover {
    background-position: -25px -25px;
}
