div#blockPageGallery{
    position: relative;
    display: table;
    width: 710px;
    height: auto;
    margin: 0px 0px 10px 0px;
}
div#blockPageGallery > h1{
    display: block;
    font: bold 25px Arial, "Segoe UI", Tahoma, Verdana, sans-serif;
    color: #505050;
    padding: 0;
    margin: -5px 0px 10px 0px;
}
div#blockPageGallery > figure{
    position: relative;
    display: none;
    float: left;
    margin: 0px 10px 10px 0px;
    width: 230px;
    height: 150px;
    overflow: hidden;
}
div#blockPageGallery > figure:nth-of-type(3n){
    margin-right: 0;
}
div#blockPageGallery > figure > a{
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}
div#blockPageGallery > figure > a > img{
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    -webkit-transition-duration: 5s;
         -o-transition-duration: 5s;
            transition-duration: 5s;
}
div#blockPageGallery > figure > a:hover img {
    -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
            transform: scale(1.2);
}
div#blockPageGallery > figure > figcaption{
    position: absolute;
    z-index: 9;
    bottom: 0;
    display: table;
    max-height: 120px;
    height: auto;
    width: 100%;
    opacity: 0.90;
    padding: 20px 0px 0px 0px;
    background: url('../img/bgTitleSlideGallery.png') repeat-x top;
    transition: opacity 0.2s, bottom 0.15s linear;
    -webkit-transition: opacity 0.2s, bottom 0.15s linear;
    -moz-transition: opacity 0.2s, bottom 0.15s linear;
    -o-transition: opacity 0.2s, bottom 0.15s linear;
}
div#blockPageGallery > figure:hover > figcaption{
    opacity: 1.0;
    bottom: 0;
}
div#blockPageGallery > figure > figcaption > time{
    position: relative;
    display: block;
    bottom: 0;
    height: 20px;
    padding: 7px 0px 0px 5px;
    font: 11px Arial, Tahoma, Verdana, sans-serif;
    color: #e5e5e5;
}
div#blockPageGallery > figure > figcaption > a{
    position: relative;
    display: block;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 5px;
    width: 175px;
    max-height: 55px;
    height: auto;
    font: 13px/19px "Segoe UI", Arial, Tahoma, Verdana, sans-serif;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    top: 0;
}
div#blockPageGallery > figure > figcaption > a:hover{
    top: -5px;
}
div#blockPageGallery > figure > figcaption > div#countPhotos{
    position: absolute;
    right: 5px;
    top: 20px;
    padding: 0px;
    width: 25px;
    height: 25px;
    background: url('../img/iconCountPhotos.png') no-repeat left center;
    cursor: default;
}
div#blockPageGallery > figure > figcaption > div#countPhotos > span{
    position: absolute;
    display: block;
    top: 3px;
    left: 1px;
    width: 20px;
    height: 14px;
    font: bold 12px Arial, "Segoe UI", Tahoma, Verdana, sans-serif;
    color: #fff;
    text-align: center;
}
div#blockPagePhotosGallery{
    position: relative;
    display: table;
    width: 710px;
    height: auto;
    margin: 0px 0px 10px 0px;
}
div#blockPagePhotosGallery > h1{
    display: block;
    font: bold 25px Arial, "Segoe UI", Tahoma, Verdana, sans-serif;
    color: #505050;
    padding: 0;
    margin: -5px 0px 10px 0px;
}
div#blockPagePhotosGallery > a{
    position: relative;
    float: left;
    display: none;
    width: 160px;
    height: 110px;
    padding: 3px;
    margin: 0px 10px 10px 0px;
    text-align: center;
    border: 1px solid #e5e5e5;
    background-color: #fff;
}
div#blockPagePhotosGallery > a:hover{
    border: 1px solid #4a7194;
}
div#blockPagePhotosGallery > a:nth-of-type(4n){
    margin-right: 0;
}
div#blockPagePhotosGallery > a > div{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
div#blockPagePhotosGallery > a img{
    height: 100%;
    border: none;
}

@media screen and (max-width: 990px) {
    div#blockPageGallery {
        width: 100%;
    }
    div#blockPageGallery > figure {
        width: calc(100% / 4 - 7.5px);
    }
    div#blockPageGallery > figure:nth-of-type(3n) {
        margin-right: 10px;
    }
    div#blockPageGallery > figure:nth-of-type(4n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure > a > img {
        -o-object-fit: cover;
           object-fit: cover;
    }
    div#blockPageGallery > figure > figcaption > a {
        width: calc(100% - 40px);
    }
    div#blockPagePhotosGallery {
        width: 100%;
    }
    div#blockPagePhotosGallery > a {
        width: calc(100% / 4 - 16.5px);
    }
}

@media screen and (max-width: 767px) {
    div#blockPageGallery {
        width: 100%;
    }
    div#blockPageGallery > figure {
        width: calc(100% / 3 - 7px);
    }
    div#blockPageGallery > figure:nth-of-type(3n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(4n) {
        margin-right: 10px;
    }
    div#blockPageGallery > figure > figcaption {
        padding-bottom: 5px;
    }
    div#blockPagePhotosGallery > a {
        width: calc(100% / 3 - 7.5px);
        height: 160px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(4n) {
        margin-right: 10px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 615px) {
    div#blockPageGallery > figure {
        width: calc(100% / 2 - 5px);
    }
    div#blockPageGallery figure:nth-of-type(2n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(3n) {
        margin-right: 10px;
    }
    div#blockPageGallery > figure:nth-of-type(4n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(6n) {
        margin-right: 0;
    }
    div#blockPagePhotosGallery > a {
        height: 130px;
    }
}

@media screen and (max-width: 520px) {
    div#blockPagePhotosGallery > a {
        width: calc(100% / 2 - 5px);
        height: 160px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(4n) {
        margin-right: 10px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(3n) {
        margin-right: 10px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 450px) {
    div#blockPageGallery > figure {
        width: 100%;
        height: 255px;
    }
    div#blockPageGallery figure:nth-of-type(2n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(3n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(4n) {
        margin-right: 0;
    }
    div#blockPageGallery > figure:nth-of-type(6n) {
        margin-right: 0;
    }
    div#blockPagePhotosGallery > a {
        height: 140px;
    }
}

@media screen and (max-width: 360px) {
    div#blockPageGallery > figure {
        height: 200px;
    }
    div#blockPagePhotosGallery > a {
        width: 100%;
        height: 195px;
    }
    div#blockPagePhotosGallery > a:nth-of-type(2n) {
        margin-right: 10px;
    }
}