#pbOverlay.show {
    opacity: 1;
    pointer-events: auto;
    z-index: 99999999
}

#pbOverlay {
    opacity: 0;
    overflow: hidden;
    -moz-user-select: none;
    background: radial-gradient(rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, .9) 100%);
    background: rgba(0, 0, 0, .85);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition: opacity .3s ease;
    -ms-transition: opacity .3s ease;
    transition: opacity .3s ease;
    text-align: center;
    pointer-events: none
}

#pbOverlay.msie {
    background-color: rgba(0, 0, 0, .6)
}

#pbOverlay.msie.pbLoading .imageWrap {
    background: url(../images/loading.gif) no-repeat center center
}

@keyframes pbLoaderFrames {
    50% {
        height: 5px
    }
}

@-webkit-keyframes pbLoaderFrames {
    50% {
        height: 5px
    }
}

#pbOverlay .pbLoader {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: scale(.2);
    transform: scale(.2);
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
    text-align: center;
    border-radius: 100%;
    box-shadow: 15px 32px 60px -20px #fff inset, 1px 1px 3px 1px #fff inset, 0 0 20px;
    width: 100px;
    height: 100px;
    transition: .3s;
    -webkit-transition: .2s
}

#pbOverlay.thumbs .pbLoader {
    margin-top: -100px
}

#pbOverlay.pbLoading:not(.msie):not(.error) .pbLoader {
    visibility: visible;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
}

#pbOverlay .pbLoader b {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    width: 8px;
    height: 60px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    -webkit-animation: .9s pbLoaderFrames infinite linear;
    animation: .9s pbLoaderFrames infinite linear
}

#pbOverlay .pbLoader b:nth-child(2) {
    -webkit-animation-delay: .3s;
    animation-delay: .3s
}

#pbOverlay .pbLoader b:nth-child(3) {
    -webkit-animation-delay: .6s;
    animation-delay: .6s
}

#pbCaption .pbThumbs ul:after,
#pbOverlay .imageWrap:after,
#pbOverlay .pbLoader:before,
#pbOverlay .prevNext:after {
    content: "";
    display: inline-block;
    height: 100%;
    margin-right: -.25em;
    vertical-align: middle
}

@keyframes deadImage {
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, .5);
        transform: scale(.85)
    }
}

@-webkit-keyframes deadImage {
    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, .5);
        -webkit-transform: scale(.85)
    }
}

#pbOverlay .imageWrap {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
    height: 100%;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    position: relative
}

#pbOverlay.pbLoading .imageWrap {
    width: 100%
}

#pbOverlay .imageWrap:before {
    content: '\2716';
    position: absolute;
    top: -999px;
    left: 0;
    width: 100%;
    color: transparent;
    text-shadow: 0 2px 35px rgba(255, 255, 255, 0);
    font-size: 22em;
    cursor: default;
    -webkit-transition: text-shadow .7s ease-out;
    transition: text-shadow .7s ease-out
}

#pbOverlay.error .imageWrap:before {
    top: 46%;
    text-shadow: 0 0 0 #fff;
    -webkit-animation: 2s 1s deadImage infinite linear;
    animation: 2s 1s deadImage infinite linear
}

#pbOverlay.thumbs .imageWrap {
    margin-top: -50px;
    padding: 50px 0
}

#pbOverlay.error .imageWrap img {
    width: 0
}

#pbOverlay.show .imageWrap img {
    transition: .8s .5s cubic-bezier(.1, .87, .48, 1);
    -webkit-transition: .8s .5s cubic-bezier(.1, .8, .5, 1.03);
    -ms-transition: .3s .5s ease-out;
    transform: scale(1) rotateX(0);
    -webkit-transform: scale(1) rotateX(0);
    -ms-transform: scale(1);
    -webkit-backface-visibility: hidden;
    box-shadow: 0 0 20px #000;
    background-color: #fff
}

#pbOverlay .imageWrap img,
#pbOverlay.hide .imageWrap img.prepare {
    display: inline-block;
    opacity: 1;
    vertical-align: middle;
    transform: scale(0) rotateX(80deg);
    -webkit-transform: scale(0) rotateX(80deg);
    -ms-transform: scale(0) rotateX(80deg);
    border-radius: 6px;
    border: none;
    max-height: 95%;
    max-width: 100%
}

#pbOverlay.on .imageWrap img {
    transition-delay: 0s;
    -webkit-transition-delay: 0s;
    -ms-transition-delay: 0s
}

#pbOverlay .imageWrap img.zoomable {
    transition: .1s;
    -webkit-transition: .1s;
    -ms-transition: .1ms;
    position: relative;
    z-index: 9
}

#pbOverlay.hide .imageWrap img {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    opacity: 0;
    transition: .4s ease-in;
    -webkit-transition: .4s ease-in;
    -ms-transition: .4s ease-in
}

#pbAutoplayBtn,
#pbCloseBtn {
    position: absolute;
    top: -50px;
    right: -50px;
    z-index: 999;
    display: block;
    padding: 0 0 20px 20px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    transition: .3s .3s ease-out;
    -webkit-transition: .2s .3s ease-out
}

.hide #pbCloseBtn {
    top: -50px;
    right: -50px
}

.on #pbCloseBtn {
    top: -2px;
    right: -2px
}

#pbCloseBtn:before {
    content: '\00D7';
    font-weight: 700
}

#pbAutoplayBtn:before,
#pbCloseBtn:before {
    display: inline-block;
    height: 35px;
    width: 35px;
    padding: 8px 8px 12px 12px;
    font-size: 2em;
    opacity: .8;
    line-height: .7;
    vertical-align: middle;
    background: rgba(255, 255, 255, .2);
    border-radius: 0 0 0 70px;
    transition: .1s ease-out;
    -webkit-transition: .1s ease-out
}

#pbCloseBtn:hover:before {
    padding: 15px 10px 24px 24px;
    background: rgba(255, 100, 100, .4)
}

#pbAutoplayBtn {
    display: none;
    right: auto;
    left: -50px;
    padding: 0;
    width: 50px;
    height: 50px;
    font-size: 13px
}

.hasAutoplay #pbAutoplayBtn {
    display: block
}

#pbAutoplayBtn:hover {
    width: 60px;
    height: 60px
}

.on #pbAutoplayBtn {
    top: 0;
    left: 0;
    transition: .1s ease-out;
    -webkit-transition: .1s ease-out
}

#pbAutoplayBtn:before {
    content: '\2016';
    width: 100%;
    height: 100%;
    border-radius: 0 0 70px 0;
    font-weight: 700;
    padding: 0;
    text-indent: -6px;
    line-height: 1.6
}

#pbAutoplayBtn:active:before {
    text-shadow: 0 0 3px #fff, 0 0 6px #fff
}

#pbAutoplayBtn.play:before {
    content: '\25BA'
}

#pbAutoplayBtn .pbProgress {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    padding: 6px;
    top: 0;
    left: 0;
    opacity: .2;
    transform: rotateZ(0);
    -webkit-transform: rotateZ(0);
    -ms-transform: rotateZ(0);
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transition: .4s;
    -ms-transition: .4s;
    transition: .4s
}

#pbAutoplayBtn.playing .pbProgress {
    -webkit-transform: rotateZ(90deg);
    -ms-transform: rotateZ(90deg);
    transform: rotateZ(90deg)
}

#pbAutoplayBtn .pbProgress:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #fff inset
}

#pbCaption,
.hide #pbCaption {
    position: absolute;
    z-index: 999;
    bottom: -110px;
    width: 100%;
    -webkit-transition: .4s;
    transition: .4s
}

.show.on #pbCaption {
    bottom: 5px;
    transition-delay: .5s;
    -webkit-transition-delay: .5s
}

#pbCaption .counter,
#pbCaption .title {
    display: inline-block;
    color: #fff;
    margin: 0 6px
}

#pbCaption .counter {
    opacity: .55
}

.pbCaptionText {
    -webkit-transition: .3s;
    transition: .3s;
    opacity: .9;
    font-weight: 700;
    font-size: .9em;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .5)
}

.pbCaptionText.change {
    -webkit-transform: translateY(25px);
    transform: translateY(25px);
    opacity: 0
}

#pbOverlay .pbThumbs {
    display: none;
    -webkit-transition: .35s;
    transition: .35s
}

#pbOverlay.thumbs .pbThumbs {
    display: block;
    width: 100%;
    padding: 5px 0 2px;
    overflow: hidden
}

#pbCaption .pbThumbs:hover {
    clear: both
}

#pbCaption .pbThumbs ul {
    display: inline-block;
    position: relative;
    list-style: none;
    height: 80px;
    padding: 0 5px;
    margin: 0;
    white-space: pre;
    transition: .2s;
    -webkit-transition: .2s
}

#pbCaption .pbThumbs ul:after {
    vertical-align: bottom
}

#pbCaption .pbThumbs li {
    display: inline-block;
    vertical-align: bottom;
    height: 70%;
    opacity: .6;
    transition: .15s;
    -webkit-transition: .15s
}

#pbCaption .pbThumbs li.active {
    height: 100%;
    opacity: 1
}

#pbCaption .pbThumbs li:hover {
    height: 100%;
    opacity: 1
}

#pbCaption .pbThumbs a {
    height: 100%;
    padding: 0 2px;
    display: block;
    -moz-user-select: none
}

#pbCaption .pbThumbs img {
    height: 96%;
    min-height: 95.9%;
    border: 2px solid #fff;
    max-width: none;
    border-radius: 0;
    transition: .15s;
    -webkit-transition: .15s
}

#pbCaption .pbThumbs li:hover img {
    min-height: 96%
}

#pbCaption .pbThumbs li.fast a img {
    transition: none;
    -webkit-transition: none
}

#pbCaption .pbThumbs li.active a img {
    border-color: #005bab;
    min-height: 96%
}

#pbOverlay .prevNext {
    display: none;
    background: rgba(0, 0, 0, 0);
    position: absolute;
    z-index: 10;
    height: 100%;
    width: 35%;
    padding: 80px 0;
    opacity: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    top: 0;
    transition: .2s ease-out;
    -webkit-transition: .2s ease-out;
    text-shadow: 0 0 12px #000, 0 0 10px #fff;
    cursor: pointer
}

#pbOverlay.hasArrows .prevNext {
    display: block
}

#pbOverlay.on .prevNext:hover {
    opacity: .5
}

#pbOverlay.on .prevNext:active {
    transition: 80ms;
    opacity: 1;
    text-shadow: 0 0 16px #fff, 0 0 10px #000
}

.prevNext b {
    display: inline-block;
    vertical-align: middle;
    transition: .2s ease-in;
    -webkit-transition: .2s ease-in
}

.prevNext:hover b {
    transition: .2s cubic-bezier(.095, .87, .485, .985);
    -webkit-transition: .2s cubic-bezier(.095, .87, .485, .985)
}

#pbPrevBtn b {
    transform: scale(.4) translateX(350px);
    -webkit-transform: scale(.4) translateX(350px)
}

#pbNextBtn b {
    transform: scale(.4) translateX(-350px);
    -webkit-transform: scale(.4) translateX(-350px)
}

#pbNextBtn b:after,
#pbPrevBtn b:before {
    display: inline;
    line-height: .3;
    font-size: 18em;
    font-weight: 400;
    color: #fff;
    font-family: Arial
}

#pbPrevBtn b:before {
    content: '\2039'
}

#pbNextBtn b:after {
    content: '\203A'
}

#pbOverlay.on #pbPrevBtn:hover b {
    transform: scale(1) translateX(20px);
    -webkit-transform: scale(1) translateX(20px)
}

#pbOverlay.on #pbNextBtn:hover b {
    transform: scale(1) translateX(-20px);
    -webkit-transform: scale(1) translateX(-20px)
}

#pbOverlay.show #pbPrevBtn {
    left: 0;
    text-align: left
}

#pbOverlay.show #pbNextBtn {
    right: 0;
    text-align: right
}

@media all and (max-width:700px) {

    #pbOverlay .imageWrap img,
    #pbOverlay.hide .imageWrap img.prepare {
        max-height: 100%
    }

    #pbOverlay.thumbs .imageWrap {
        padding: 0;
        margin: 0
    }

    #pbOverlay .pbThumbs {
        margin-bottom: -60px
    }

    #pbOverlay .pbThumbs.show {
        margin: 0
    }

    #pbCaption .pbThumbs ul {
        height: 50px
    }

    #pbCaption .pbThumbs li {
        height: 100%;
        opacity: 1
    }

    #pbCaption .pbThumbs li img {
        min-height: 96.5%
    }
}

@media all and (max-width:710px) {
    #pbCaption .pbThumbs li.active a img {
        min-height: 96%
    }
}