.version-2.lightbox .google-ad {
    background-color: transparent;
}

#fancybox-overlay {
    z-index: 99999;
}

#fancybox-wrap.full-lightbox {
    margin: auto;
}

.version-2.lightbox {
    max-width: 1200px;
}

.version-2.lightbox .gallery-header {
    padding: 17px 40px;
    position: fixed;
    /*width: calc(100vw - 20px);*/ 
    background-color: #000;
    z-index: 100;
    left: 0;
}
.version-2.lightbox .gallery-header h4 {
    font-family: Arial;
    font-size: 20px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    text-transform: uppercase;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    margin: 0;
    display: inline-block
}

.version-2.lightbox .gallery-header .close {
    position: relative;
    float: right;
    width: 23px;
    height: 23px;
    margin: 0;
    padding: 0;
    top: 0;
    right: 0;
}

.version-2.lightbox .gallery-header .close:after {
    font-size: 30px;
    position: relative;
    top: 0;
}

.version-2.lightbox .gallery-block {
    padding: 60px 68px 0;
    margin: 0;
    border: 0;
}

.version-2.lightbox .gallery-block .gallery-title {
    margin: 20px 0px 40px;
    padding: 0 !important;
    font-family: Arial;
    font-size: 36px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
}

.version-2.lightbox .gallery-block .slides {
    margin-bottom: 64px;
}

.version-2.lightbox .gallery-block .slides img{
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.version-2.lightbox .gallery-block .slides .caption {
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    margin-bottom: 20px;
}

.version-2.lightbox .gallery-block .slides section {
    margin-bottom: 30px;
}

.version-2.lightbox .gallery-block .slides .slide-content {
    display: inline-block;
    width: calc( 100% - 340px );
    margin-top: 40px;
    vertical-align: top
}

.version-2.lightbox .gallery-block .slides .slide-content.wide {
    width: 100%;
}

.version-2.lightbox .gallery-block .slides .slide-content .share .soc {
    display: inline-block;
    zoom: 1.4583;
    margin-right: 8px;
}

.version-2.lightbox .gallery-block .slides .slide-content .slide-title {
    font-family: Arial;
    font-size: 24px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    display: inline-block;
    max-width: calc( 100% - 70px );
    word-break: break-word;
}

.version-2.lightbox .gallery-block .slides .slide-content .slide-index {
    font-family: Arial;
    font-size: 17px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: right;
    color: #ffffff;
    margin-top: 30px;
}

.version-2.lightbox .gallery-block .slides .slide-content > p {
    font-family: Arial;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.4;
    letter-spacing: normal;
    color: #ffffff;
}

.version-2.lightbox .gallery-block .slides .caption a {
    display: inline;
    color: #008817;
    font-weight: 700;
}

.version-2.lightbox .gallery-block .slides .caption a:hover, 
.version-2.lightbox .gallery-block .slides .caption a:visited,
.version-2.lightbox .gallery-block .slides .caption a:active {
    display: inline;
    color: #008817;
    font-weight: 700;
}

.version-2.lightbox .gallery-block .slides .slide-content > p a {
    display: inline;
    color: #008817;
    font-weight: 700;
}

.version-2.lightbox .gallery-block .slides .slide-content > p a:hover, 
.version-2.lightbox .gallery-block .slides .slide-content > p a:visited,
.version-2.lightbox .gallery-block .slides .slide-content > p a:active {
    display: inline;
    color: #008817;
    font-weight: 700;
}

.version-2.lightbox .gallery-block .slides {
    min-height: 600px;
}

.version-2.lightbox .gallery-block .slides .slide-ad {
    display: inline-block;
    width: 300px;
    margin-left: 35px;
    vertical-align: top;
}

.version-2.lightbox .ad-300x250 {
    height: 250px;
}
.version-2.lightbox .ad-320x50 {
    height: 50px;
}
.version-2.lightbox .ad-728x90 {
    height: 90px;
}

.version-2 .gallery-container {
    background-color: #ffffff;
    position: relative;
}

.version-2 .social-btn {
    padding: 0px;
    margin: 2px;
}

.version-2 .gallery-right-ad{
    margin-top: 0;
}

.version-2 .gallery-img-share>* {
    margin: 20px 5px;
    display: inline-block;
}

.version-2 h1.gallery-title {
    color: #1b1b1b;
    font-family: Arial;
    font-size: 36px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    line-height: 1.1875em;
    padding: 30px 0 !important;
    margin: 0;
    overflow: hidden;
}

.maincontent.gallery.version-2 .google-ad-content {
    margin-bottom: 20px;
}

#fancybox-wrap .nicescroll-rails.nicescroll-rails-vr {
    display: block !important;
}

.maincontent.version-2 .top-content .right {
    position:fixed;
    display:none;
}

@media only screen and (max-width: 1200px) {
    .version-2.lightbox .gallery-header .close:after {
        font-size: 20px;
        top: 0;
        right: 0;
    }
}

@media only screen and (max-width: 1023px)  {

    .version-2.lightbox .gallery-header {
        padding-left: 20px;
        padding-right: 20px;
    }
    .version-2.lightbox .gallery-header h4 {
        font-family: Arial;
        font-size: 15px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-header .close {
        width: 20px;
        height: 20px;
    }

    .version-2.lightbox .gallery-header .close:after {
        font-size: 20px;
        top: 0;
        right: 0;
    }

    .version-2.lightbox .gallery-block {
        padding-left: 20px;
        padding-right: 20px;
    }

    .version-2.lightbox .gallery-block .gallery-title {
        font-family: Arial;
        font-size: 26px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides .share {
        text-align: center;
    }
    

    .version-2.lightbox .gallery-block .slides {
        margin-bottom: 40px;
    }

    .version-2.lightbox .gallery-block .slides .slide-content {
        width: 100%;
        margin: 0;
        margin-bottom: 40px;
    }

    .version-2.lightbox .gallery-block .slides .slide-content .share .soc {
        zoom: 1.25;
    }

    .version-2.lightbox .gallery-block .slides .slide-content .slide-title {
        font-family: Arial;
        font-size: 18px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides img {
        margin-left: -20px;
        max-width:  100vw;
        width: 100vw;
    }

    .version-2.lightbox .gallery-block .slides .slide-content .slide-index {
        opacity: 0.7;
        font-family: Arial;
        font-size: 15px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        text-align: right;
        color: #ffffff;
        margin-top: 15px
    }

    .version-2.lightbox .gallery-block .slides .slide-content > p {
        font-family: Arial;
        font-size: 18px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.28;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides .slide-ad {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .version-2.lightbox .gallery-block .ad-728x90 {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .version-2.lightbox .gallery-block .gallery-title {
        font-family: Arial;
        font-size: 26px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides .caption {
        margin-bottom: 5px;
    }

    .version-2.lightbox .gallery-block .slides .share {
        display:none;
    }

    .version-2.lightbox .gallery-block .slides .slide-content .slide-title {
        font-family: Arial;
        font-size: 16px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides .slide-content > p {
        font-family: Arial;
        font-size: 16px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }
    

    .version-2.lightbox .gallery-block .slides .slide-content .slide-title {
        font-family: Arial;
        font-size: 16px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
    }

    .version-2.lightbox .gallery-block .slides .slide-content .slide-index {
        opacity: 0.7;
        font-family: Arial;
        font-size: 14px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        text-align: right;
        color: #ffffff;
    }
    
}

@media only screen and (max-width: 400px) {
    .version-2.lightbox .gallery-block .slides .slide-ad {
        width: 100vw;
        margin-left: -20px;
    }
}

#fancybox-wrap.full-lightbox #fancybox-content>div::-webkit-scrollbar{
    display: none;
}

.version-2.lightbox .gallery-header {
    width: 100vw;
}
