.gallery-section {
    margin: 0px;
    padding: 30px 0px;
}
.gallery-section-content {
    max-width: 1145px;
    margin: 0px auto;
    text-align: center;
}
.gallery-section .block-title {
    font-size: 36px;
    line-height: 40px;
    font-family: Museo700, sans-serif;
    position: relative;
    margin-bottom: 60px;
}
.gallery-section .block-title:after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -80px;
    width: 160px;
    height: 16px;
    background: url('/img/fff.png') 0 0 no-repeat;
}
.gallery-list {
    font-size: 0px;
}
.gallery-preview-slide {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 20%;
    height: -webkit-calc(100vw/10);
    height: calc(100vw/10);
    margin: 0px;
    padding: 5px;
    font-size: 14px;
}
.gallery-preview-item {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}
.gallery-preview-item:hover .gallery-preview-image {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.gallery-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    -webkit-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
}

.gallery-popup .popup-container {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    max-width: 1145px;
    margin: 0px auto;
    padding: 40px;
}
.gallery-popup .popup-container .popup-close {
    top: 15px;
    right: 15px;
}
.gallery-photo-slider {
    margin: 0px;
    padding: 0px;
}
.gallery-photo-item {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: calc(100vh - 200px);
}
.gallery-photo-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: -webkit-calc(100vh - 200px);
    max-height: calc(100vh - 200px);
    /*display: block;*/
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*min-width: 100%;*/
    /*max-width: 100%;*/
    /*min-height: 100%;*/
    /*width: auto;*/
    /*height: auto;*/
    /*-webkit-transform: translate(-50%, -50%);*/
    /*transform: translate(-50%, -50%);*/
    /*z-index: 1;*/
}
.gallery-photo-slider .slick-prev,
.gallery-photo-slider .slick-next {
    text-indent: -99999px;
    width: 20px;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    position: absolute;
}
.gallery-photo-slider .slick-prev {
    left: -30px;
}
.gallery-photo-slider .slick-prev:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 20px;
    background: #000000;
    -webkit-transform: translateX(8px) translateY(-3px) rotate(-45deg);
    -ms-transform: translateX(8px) translateY(-3px) rotate(-45deg);
    -o-transform: translateX(8px) translateY(-3px) rotate(-45deg);
    transform: translateX(8px) translateY(-3px) rotate(-45deg);
}
.gallery-photo-slider .slick-prev:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 20px;
    background: #000000;
    -webkit-transform: translateX(8px) translateY(3px) rotate(45deg);
    -ms-transform: translateX(8px) translateY(3px) rotate(45deg);
    -o-transform: translateX(8px) translateY(3px) rotate(45deg);
    transform: translateX(8px) translateY(3px) rotate(45deg);
}
.gallery-photo-slider .slick-next {
    right: -30px;
}
.gallery-photo-slider .slick-next:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 20px;
    background: #000000;
    -webkit-transform: translateX(8px) translateY(-3px) rotate(45deg);
    -ms-transform: translateX(8px) translateY(-3px) rotate(45deg);
    -o-transform: translateX(8px) translateY(-3px) rotate(45deg);
    transform: translateX(8px) translateY(-3px) rotate(45deg);
}
.gallery-photo-slider .slick-next:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 20px;
    background: #000000;
    -webkit-transform: translateX(8px) translateY(3px) rotate(-45deg);
    -ms-transform: translateX(8px) translateY(3px) rotate(-45deg);
    -o-transform: translateX(8px) translateY(3px) rotate(-45deg);
    transform: translateX(8px) translateY(3px) rotate(-45deg);
}

@media (max-width: 1440px) {

    .gallery-preview-slide {
        height: -webkit-calc(100vw/8);
        height: calc(100vw/8);
    }

}

@media (max-width: 1399px) {

    .gallery-popup .popup-container {
        max-width: 900px;
    }

}

@media (max-width: 1199px) {

    .gallery-preview-slide {
        height: -webkit-calc(100vw/6);
        height: calc(100vw/6);
    }

}

@media (max-width: 999px) {

    .gallery-popup .popup-container {
        max-width: -webkit-calc(100% - 30px);
        max-width: calc(100% - 30px);
    }

}

@media (max-width: 840px) {

    .gallery-section .block-title {
        font-size: 26px;
        line-height: 40px;
    }

}

@media (max-width: 766px) {

    .gallery-photo-item {
        height: -webkit-calc(100vh - 120px);
        height: calc(100vh - 120px);
    }
    .gallery-photo-item img {
        max-height: -webkit-calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }
    .gallery-photo-slider .slick-prev, .gallery-photo-slider .slick-next {
        display: none !important;
    }
    .gallery-popup .popup-container {
        padding: 20px;
    }
    .gallery-popup .popup-container .popup-close {
        top: 2px;
        right: 2px;
    }

}

@media (max-width: 479px) {

    .gallery-photo-item {
        height: -webkit-calc(100vh / 2.5);
        height: calc(100vh / 2.5);
    }
    .gallery-photo-item img {
        max-height: -webkit-calc(100vh / 2.5);
        max-height: calc(100vh / 2.5);
    }

}