/* Preload images */

body:after {
    content: url(../img/close.png) url(../img/loading.gif) url(../img/next.png) url(../img/prev.png);
    display: none;
}

body.lb-disable-scrolling {
    overflow: hidden;
}

.lightboxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    height: 100vh !important;
    width: 100% !important;
}

@media only screen and (min-width: 320px) {
    .lightbox {
        position: fixed;
        left: 0;
        width: 100%;
        z-index: 10000;
        text-align: center;
        line-height: 0;
        font-weight: normal;
        top: 50% !important;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    .lightbox .lb-image {
        display: block;
        height: auto;
        max-width: inherit;
        max-height: none;
    }
    .lightbox a img {
        border: none;
    }
    .lb-outerContainer {
        position: relative;
        *zoom: 1;
        width: 250px;
        height: 250px;
        margin: 0 auto;
        /* Background color behind image.
     This is visible during transitions. */
        background-color: white;
    }
    .lb-outerContainer:after {
        content: "";
        display: table;
        clear: both;
    }
    .lb-loader {
        position: absolute;
        top: 43%;
        left: 0;
        height: 25%;
        width: 100%;
        text-align: center;
        line-height: 0;
    }
    .lb-cancel {
        display: block;
        width: 32px;
        height: 32px;
        margin: 0 auto;
        background: url(../img/loading.gif) no-repeat;
    }
    .lb-nav {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 10;
    }
    .lb-container>.nav {
        left: 0;
    }
    .lb-nav a {
        outline: none;
        background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
    }
    .lb-prev,
    .lb-next {
        height: 64px;
        width: 25px;
        top: 50%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 0 0;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        cursor: pointer;
        display: block;
        position: absolute;
    }
    .lb-nav a.lb-prev {
        left: 25px;
        float: left;
        background-image: url(../img/next.png);
        opacity: 0.8;
        -webkit-transition: opacity 0.6s;
        -moz-transition: opacity 0.6s;
        -o-transition: opacity 0.6s;
        transition: opacity 0.6s;
    }
    .lb-nav a.lb-prev:hover {
        opacity: 1;
    }
    .lb-nav a.lb-next {
        right: 25px;
        float: right;
        background-image: url(../img/prev.png);
        opacity: 0.8;
        -webkit-transition: opacity 0.6s;
        -moz-transition: opacity 0.6s;
        -o-transition: opacity 0.6s;
        transition: opacity 0.6s;
    }
    .lb-nav a.lb-next:hover {
        opacity: 1;
    }
    .lb-dataContainer {
        margin: 0 auto;
        padding-top: 5px;
        *zoom: 1;
        width: 100%;
        -moz-border-bottom-left-radius: 4px;
        -webkit-border-bottom-left-radius: 4px;
        border-bottom-left-radius: 4px;
        -moz-border-bottom-right-radius: 4px;
        -webkit-border-bottom-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    .lb-dataContainer:after {
        content: "";
        display: table;
        clear: both;
    }
    .lb-data {
        padding: 0 4px;
        color: #222;
    }
    .lb-data .lb-details {
        width: 85%;
        float: left;
        text-align: left;
        line-height: 1.1em;
    }
    .lb-data .lb-caption {
        font-size: 13px;
        font-weight: 300;
        line-height: 1em;
    }
    .lb-data .lb-caption a {
        color: #4ae;
    }
    .lb-data .lb-number {
        display: block;
        clear: left;
        padding-bottom: 1em;
        font-size: 12px;
        color: #999999;
    }
    .lb-data .lb-close {
        display: block;
        width: 2.5rem;
        height: 2.5rem;
        background: url(../img/close.png) top right no-repeat;
        background-size: contain;
        text-align: right;
        outline: none;
        opacity: 0.7;
        -webkit-transition: opacity 0.2s;
        -moz-transition: opacity 0.2s;
        -o-transition: opacity 0.2s;
        transition: opacity 0.2s;
        position: absolute;
        top: -5rem;
        right: 3rem;
    }
    .lb-data .lb-close:hover {
        cursor: pointer;
        opacity: 1;
    }
}

@media only screen and (min-width: 768px) {
    .lb-prev,
    .lb-next {
        height: 64px;
        width: 25px;
    }
    .lb-nav a.lb-prev {
        left: 25px;
    }
    .lb-nav a.lb-next {
        right: 25px;
    }
    .lb-data .lb-close {
        top: -4rem;
    }
}

@media only screen and (min-width: 1024px) {
    .lb-prev,
    .lb-next {
        height: 128px;
        width: 50px;
    }
    .lb-nav a.lb-prev {
        left: -75px;
    }
    .lb-nav a.lb-next {
        right: -75px;
    }
    .lb-data .lb-close {
        width: 4rem;
        height: 4rem;
        top: -5rem;
    }
}
