/*!
 * jQuery ClassyLightbox
 * www.class.pm
 *
 * Written by Marius Stanciu - Sergiu <marius@class.pm>
 * Licensed under the MIT license www.class.pm/LICENSE-MIT
 * Version 1.2.0
 *
 */
 
.lightbox-move * {
    webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.lightbox-overlay {
    background: #000;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.lightbox {
    position: relative;
    padding: 17px 0;
}

.lightbox .border-top-left,
.lightbox .border-top-right,
.lightbox .border-bottom-left,
.lightbox .border-bottom-right {
    position: absolute;
    height: 18px;
    width: 12%;
    z-index: 7000;
}

.lightbox .border-top-left {
    background: url(sprite.png) no-repeat 0 0;
    top: 0;
    left: 0;
}

.lightbox .border-top-right {
    background: url(sprite.png) no-repeat right 0;
    top: 0;
    right: 0;
}

.lightbox .border-top-middle {
    background: #2b2b2b;
    position: absolute;
    height: 7px;
    width: 78%;
    top: 0;
    left: 12%;
    z-index: 7000;
    overflow: hidden;
}

.lightbox .border-bottom-left {
    background: url(sprite.png) no-repeat 0 bottom;
    bottom: 0;
    left: 0;
}

.lightbox .border-bottom-right {
    background: url(sprite.png) no-repeat right bottom;
    bottom: 0;
    right: 0;
}

.lightbox .border-bottom-middle {
    background: #2b2b2b;
    height: 7px;
    width: 78%;
    position: absolute;
    bottom: 0;
    left: 12%;
    z-index: 7000;
    overflow: hidden;
}

.lightbox .title {
    background: #2b2b2b;
    color: #fff;
    font-family: verdana,arial,serif;
    font-size: 11px;
    line-height: 14px;
    padding: 5px 8px;
    margin: 3px;
    position: absolute;
    bottom: 0;
    z-index: 7000;
    opacity: 0.9;
}

.lightbox-html {
    z-index: 7000;
    position: relative;
    border: 0;
    border-left: 7px solid #2b2b2b;
    border-right: 7px solid #2b2b2b;
    padding: 0px 15px;
    vertical-align: top;
    -webkit-overflow-scrolling: touch;
}

.lightbox-html embed,
.lightbox-html object,
.lightbox-html iframe {
    vertical-align: top;
    display: block;
}

.lightbox .background {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 6999;
    float: left;
    padding: 0;
}

.lightbox .background img {
    display: block;
    position: relative;
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.lightbox.mode-image .lightbox-html {
    z-index: 6998;
    padding: 0;
}

.lightbox.mode-html .background {
    background: #fff;
}

.lightbox.mode-html .lightbox-html {
    overflow: auto;
}

.lightbox .loading,
.lightbox.mode-html .loading {
    background: #fff url(loading.gif) no-repeat center center;
}

.lightbox .close {
    background: url(sprite.png) no-repeat -190px -115px;
    position: absolute;
    top: 12px;
    right: -26px;
    opacity: 1;
    width: 29px;
    height: 29px;
}

.lightbox .close:hover {
    background: url(sprite.png) no-repeat -220px -115px;
}

.lightbox .close span,
.lightbox .buttons span {
    display: none;
}

.lightbox.mode-image .close {
    right: 14px;
    z-index: 7002;
}

.lightbox .buttons {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 7001;
    height: 39px;
    display: none;
}

.lightbox .buttons .init,
.lightbox .buttons .end {
    width: 5px;
    height: 39px;
    float: left;
    display: inline;
}

.lightbox .buttons .init {
    background: url(sprite.png) no-repeat -151px -153px;
    margin: 7px 0 0 7px;
}

.lightbox .buttons .end {
    background: url(sprite.png) no-repeat -244px -153px;
    margin: 7px 0 0 0;
}

.lightbox .buttons .left {
    background: url(sprite.png) no-repeat -156px -153px;
    width: 24px;
    height: 39px;
    float: left;
    display: inline;
    margin: 7px 0 0 0;
}

.lightbox .buttons .left:hover {
    background: url(sprite.png) no-repeat -156px -194px;
}

.lightbox .buttons .right {
    background: url(sprite.png) no-repeat -220px -153px;
    width: 24px;
    height: 39px;
    float: left;
    display: inline;
    margin: 7px 0 0 0;
}

.lightbox .buttons .right:hover {
    background: url(sprite.png) no-repeat -220px -194px;
}

.lightbox .buttons .max {
    background: url(sprite.png) no-repeat -182px -153px;
    width: 36px;
    height: 39px;
    float: left;
    display: inline;
    margin: 7px 0 0 0;
}

.lightbox .buttons .max:hover {
    background: url(sprite.png) no-repeat -182px -194px;
}

.lightbox .buttons .min {
    background: url(sprite.png) no-repeat -162px -235px;
    width: 36px;
    height: 39px;
    float: left;
    display: inline;
    margin: 7px 0 0 0;
}

.lightbox .buttons .min:hover {
    background: url(sprite.png) no-repeat -207px -235px;
}

.lightbox .custom {
    height: 39px;
    float: left;
    display: inline;
    background: #2b2b2b;
    line-height: 39px;
    font-size: 10px;
    margin: 7px 0 0 0;
}

.lightbox .custom a {
    color: #fff;
    font-size: 10px;
    display: inline;
    font-weight: normal;
    text-decoration: underline;
    padding: 0 3px;
}

.lightbox.mode-image .close {
    opacity: 0.7;
}

.lightbox.mode-image .buttons {
    opacity: 0.3;
}

.lightbox.mode-image:hover .buttons,
.lightbox.mode-image:hover .close {
    opacity: 0.9;
}

.lightbox .navigator {
    display: none;
}

.lightbox .lightbox-hide {
    display: none;
}

@media screen and (max-device-width: 640px),
screen and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
screen and (max-device-width: 768px) and (max--moz-device-pixel-ratio: 2) {
    .lightbox .close,
    .lightbox .close:hover,
    .lightbox .border-top-left,
    .lightbox .border-top-right,
    .lightbox .border-bottom-left,
    .lightbox .border-bottom-right,
    .lightbox .buttons .init,
    .lightbox .buttons .end,
    .lightbox .buttons .left,
    .lightbox .buttons .left:hover,
    .lightbox .buttons .right,
    .lightbox .buttons .right:hover,
    .lightbox .buttons .max,
    .lightbox .buttons .max:hover,
    .lightbox .buttons .min,
    .lightbox .buttons .min:hover {
        background-image: url(sprite-mobile.png);
        background-size: 834px auto;
    }

    .lightbox .close {
        background-position: -380px -230px;
        width: 58px;
        height: 58px;
        right: -52px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .lightbox .close:hover {
        background-position: -440px -230px;
    }

    .lightbox .buttons .init,
    .lightbox .buttons .end {
        width: 10px;
        height: 78px;
    }

    .lightbox .buttons .init {
        background-position: -302px -306px;
    }

    .lightbox .buttons .end {
        background-position: -488px -306px;
    }

    .lightbox .buttons .left {
        background-position: -312px -306px;
        width: 48px;
        height: 78px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .lightbox .buttons .left:hover {
        background-position: -312px -388px;
    }

    .lightbox .buttons .right {
        background-position: -440px -306px;
        width: 48px;
        height: 78px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .lightbox .buttons .right:hover {
        background-position: -440px -388px;
    }

    .lightbox .buttons .max {
        background-position: -364px -306px;
        width: 72px;
        height: 78px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .lightbox .buttons .max:hover {
        background-position: -364px -388px;
    }

    .lightbox .buttons .min {
        background-position: -324px -470px;
        width: 72px;
        height: 78px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
    }

    .lightbox .buttons .min:hover {
        background-position: -414px -470px;
    }
}