/* Preload img */

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

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

.lightboxOverlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: #fbfae9;
    display: none;
}

.lightbox {
    position: fixed;
    left: 0;
    bottom: 0;
    top: 0;
    /*    top: calc(100% - 768px) !important;*/
    margin: auto;
    width: 100%;
    z-index: 100000;
    text-align: center;
    line-height: 0;
    font-weight: normal;
}

.lightbox .lb-image {
    display: block;
    height: auto;
    max-width: inherit;
    max-height: none;
    padding: 7px;
    padding-bottom: 83px;
}

.lightbox a img {
    border: none;
}

.lb-outerContainer {
    position: relative;
    *zoom: 1;
    width: inherit;
    height: inherit;
    margin: 0 auto;
    /* Background color behind image.
     This is visible during transitions. */
    background-color: #fbfae9;
    border: 1px solid #b1afa3;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.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 {
    position: absolute;
    height: 41px;
    cursor: pointer;
    display: block;
    background-size: 41px !important;
    bottom: 0;
}

.lb-nav a.lb-prev {
    width: 34%;
    left: 28px;
    float: left;
    background: url(../img/prev.png) left 48% no-repeat;
}

.lb-nav a.lb-prev:hover {}

.lb-nav a.lb-next {
    width: 64%;
    right: 28px;
    float: right;
    background: url(../img/next.png) right 48% no-repeat;
}

.lb-nav a.lb-next:hover {}

.lb-dataContainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding-top: 5px;
    *zoom: 1;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
    content: "";
    display: table;
    clear: both;
}

.lb-data {
    padding: 0 4px;
    color: #ccc;
}

.lb-data .lb-details {
    width: 100%;
    text-align: left;
    line-height: 1.1em;
    position: absolute;
    left: 0;
    top: 508px;
}

.lb-data .lb-caption,
.lb-data .lb-caption2 {
    text-align: center;
    color: #0b0b0b;
    font-size: 11px;
    line-height: 1em;
}

.lb-data .lb-caption2 {
    margin-top: 11px;
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
}

.lb-data .lb-caption a,
.lb-data .lb-caption2 a {
    color: #4ae;
}

.lb-data .lb-number {
    display: none !important;
    /*    display: block;*/
    clear: left;
    padding-bottom: 1em;
    font-size: 12px;
    color: #999999;
}

.lb-closeContainer {
    position: absolute;
    top: -35px;
    right: -34px;
}

.lb-data .lb-close {
    display: block;
    width: 15px;
    height: 15px;
    background: url(../img/close.png) top right no-repeat;
    background-size: 15px 15px;
    text-align: right;
    outline: none;
    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=70);
    /*    opacity: 0.7;*/
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
    cursor: pointer;
    /*    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);*/
    opacity: .7;
}
