@media screen and (max-height: 480px) {
}
@media screen and (max-width: 767px) {
    .block-image {
        background-size: cover;
    }
    .block-image2, .block-image3, .block-image4 {
        display: none;
    }
}
@media screen and (max-width: 480px) {
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .gallery {
        height: 480px;
        overflow: hidden;
        margin: 0;
        position: relative;
    }
    .block-image {
        background-size: cover;
    }
    .block-image3, .block-image4 {
        display: none;
    }
    .innergallery .block-image.block-image1 {
        width: calc(480px);
        height: calc(480px );
        position: absolute;
        background-size: cover;
    }
    .innergallery .block-image.block-image2 {
        width: calc(255px);
        height: 240px;
        left: calc(480px);
        position: absolute;
        background-size: cover;
    }
    .innergallery .gallery .block-color1 {
        width: calc(255px);
        height: 240px;
        left: calc(480px);
        top: 240px;
        position: absolute;
        background-color: #ea5a0b;
    }
}
@media screen and (min-width: 992px) {
    /* Gallery Home */
    .gallery {
        background-color: #e52322;
        color: #FFF;
    }
    .gallery a {
        color: #FFF !important;
        text-decoration: none !important;
    }
    .gallery .description {
        position: absolute;
        bottom: 0;
        left: calc(480px + 188px + 30px);
    }
    .gallery .block-image {
        background-position: center center;
        background-size: cover;
        overflow: hidden;
        text-align: center;
    }
    /*.gallery .block-image img {
     display: block;
     object-fit: cover;
     margin: auto;
     }*/
    .galleries h2, .innergallery h2 {
        font-weight: 500 !important;
        font-size: 23px !important;
        color: #000 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }
    .galleries li, .galleries li.active, .innergallery li, .innergallery li.active {
        border-color: #000;
    }
    .galleries .carousel-indicators {
        bottom: 0;
    }
    .galleries li.active, .innergallery li.active {
        background-color: #000;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-color1, .innergallery .block-color1 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(282px  );
        top: 188px;
        background-color: #ea5a0b;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-color2, .innergallery .block-color2 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(282px + 188px );
        top: 0;
        background-color: #fbb900;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-color1 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(94px  );
        top: 188px;
        background-color: #f18700;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-color2 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(282px + 188px );
        top: 0;
        background-color: #ae1615;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-color1 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(188px  );
        top: 188px;
        background-color: #fbb900;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-color2 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(94px  );
        top: 0;
        background-color: #f18700;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-image1, .innergallery .block-image1 {
        height: 282px;
        width: 282px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-image2, .innergallery .block-image2 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: calc(282px );
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1)  .block-image3, .innergallery .block-image3 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(282px + 94px );
        top: 188px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1)  .block-image4, .innergallery .block-image4 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: calc(282px + 188px );
        top: 94px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2)  .block-image1 {
        height: 282px;
        width: 282px;
        left: calc(188px );
        position: relative;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2)  .block-image2 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: 0;
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-image3 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: 0;
        top: 188px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-image4 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: calc(282px + 188px );
        top: 94px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3)  .block-image1 {
        height: 282px;
        width: 282px;
        left: calc(376px);
        position: relative;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3)  .block-image2 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: calc(188px );
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-image3 {
        position: absolute;
        height: 94px;
        width: 94px;
        left: calc(188px + 94px );
        top: 188px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-image4 {
        position: absolute;
        height: 188px;
        width: 188px;
        left: 0;
        top: 94px;
    }
    .innergallery {
        margin-top: 30px;
    }
}
@media screen and (min-width: 1200px) {

    /* Gallery Home */
    .gallery {
        background-color: #e52322;
        color: #FFF;
        height: 342px;
    }
    .gallery a {
        color: #FFF;
    }
    .gallery .description {
        position: absolute;
        bottom: 0;
        left: calc(570px + 228px + 30px);
    }
    .gallery .block-image {
        background-position: center center;
        background-size: cover;
        overflow: hidden;
        text-align: center;
    }
    /*.gallery .block-image img {
     display: block;
     object-fit: cover;
     margin: auto;
     }*/
    .galleries h2, .innergallery h2 {
        font-weight: 500 !important;
        font-size: 23px !important;
        color: #000 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }
    .innergallery h3 {
        width: 280px;
    }
    .galleries li, .galleries li.active, .innergallery li,          , .innergallery li.active {
        border-color: #000;
    }
    .galleries .carousel-indicators {
        bottom: 0;
    }
    .galleries li.active, .innergallery li.active {
        background-color: #000;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-color1, .innergallery .block-color1 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(342px);
        top: 228px;
        background-color: #ea5a0b;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-color2, .innergallery .block-color2 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(342px + 228px);
        top: 0;
        background-color: #fbb900;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-color1 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(114px);
        top: 228px;
        background-color: #f18700;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-color2 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(342px + 228px);
        top: 0;
        background-color: #ae1615;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-color1 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(228px );
        top: 228px;
        background-color: #fbb900;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-color2 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(114px );
        top: 0;
        background-color: #f18700;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-image1, .innergallery .block-image1 {
        height: 342px;
        width: 342px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1) .block-image2, .innergallery .block-image2 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: calc(342px);
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1)  .block-image3, .innergallery .block-image3 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(342px + 114px);
        top: 228px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 1)  .block-image4, .innergallery .block-image4 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: calc(342px + 228px);
        top: 114px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2)  .block-image1 {
        height: 342px;
        width: 342px;
        left: calc(228px );
        position: relative;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2)  .block-image2 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: 0;
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-image3 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: 0;
        top: 228px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 2) .block-image4 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: calc(342px + 228px);
        top: 114px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3)  .block-image1 {
        height: 342px;
        width: 342px;
        left: calc(456px);
        position: relative;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3)  .block-image2 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: calc(228px);
        top: 0;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-image3 {
        position: absolute;
        height: 114px;
        width: 114px;
        left: calc(228px + 114px);
        top: 228px;
    }
    .galleries .carousel-inner .item:nth-child(3n + 3) .block-image4 {
        position: absolute;
        height: 228px;
        width: 228px;
        left: 0;
        top: 114px;
    }
    .innergallery {
        margin-top: 30px;
    }
}
.gallery {
    position: relative;
}
