.galleryPage {
    margin-top: 90px;
    /* background: #f7f7f7; */
    padding: 40px 0 20px;
}
.galleryPage h1, .galleryPage h2{
    /* text-align:center; */
}
.galleryPage h1 span {
    display: block;
}
.galleryPage h1{
    font-size:42px;
    display:block;
    max-width: 1160px;
    margin:auto;
}
.galleryBlock{
    max-width: 1160px;
    margin:35px auto;
    box-sizing: border-box;
}
.lightgallery{
    display:flex;
    flex-wrap:wrap;
    margin: 0 -10px;
}
.galleryImage {
    width: 210px;
    height: 130px;
    border: 3px solid #fff;
    margin:7px;
    overflow:hidden;
    position:relative;
    border-radius: 10px;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    -ms-transition: all .3s ease;
}
.galleryImage:hover img {
    transform: scale(1.1);
}
.galleryImage img{
    width: 120%;
    max-width: 120%;
}
.galleryImage:hover {
    border: 3px solid #f9da3c;
}
.coloredH {
    color: #3755a7;
}
.fancybox-skin{
    padding:5px !important;
}
.fancybox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    padding: 3px;
    z-index: 8040;
    background: url(https://gasteplospb.ru/wp-content/themes/gasteplospb/assets/js/fancybox/close.png) center center no-repeat;
    background-color: rgba(255,255,255, 0.8);
    background-size: 50%;
    border-radius: 25px;
}
.fancybox-mobile .fancybox-inner {
	height:initial!important;
}
@media (max-width: 900px) {
    .galleryImage {
        width: 180px;
        height: 120px;
    }
}
@media (max-width: 800px) {
    .galleryImage {
        width: 165px;
        height: 110px;
    }
}
@media (max-width: 740px) {
    .galleryImage {
        width: 145px;
        height: 100px;
    }
}
@media (max-width: 660px) {
    .galleryImage {
        width: 125px;
        height: 90px;
    }
}
@media (max-width: 580px) {
    .galleryImage {
        width: 105px;
        height: 75px;
    }
}
@media (max-width: 580px) {
    .galleryImage {
        width: 105px;
        height: 75px;
    }
}
@media (max-width: 500px) {
    .galleryImage {
        width: 85px;
        height: 60px;
    }
}
@media (max-width: 420px) {
    .galleryImage {
        width: 70px;
        height: 50px;
    }
}
@media (max-width: 370px) {
    .galleryImage {
        width: 130px;
        height: 90px;
    }
}