
.galleries h2 {
    padding-bottom: 14px;
}

.gallery-flex {
    margin: 0;
    padding: 0 25px;
}

.gallery-flex li {
    margin: 0;
    padding: 16px 0 0 0;
}

.gallery-flex li::before {
    display: none;
}

.gallery-flex li a {
    display: block;
}

.gallery-flex li img {
    width: 100%;
}

.galleries {
    /* margin-top: 23px; */
}

.gallery-flex li a {
    width: 100%;
    height: 137px;
}

.gallery-flex li a img {
    height: 100%;
    object-fit: cover;
}

.galleries .slick-arrow {
    top: 60px;
}

.section-block.galleries .js-gallery-slider .fx-slide {
    display: none;
}

.section-block.galleries .js-gallery-slider .fx-slide.show {
    display: block;
}

.pagination__wrapper .btn {
    z-index: 1;
    margin: 45px 0 0;
}

.featured-block__view:hover {
    cursor: pointer;
}

.galleries .gallery-flex li a:hover .hover-description__photo-gallery {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .gallery-flex li a {
        width: 100%;
        height: auto;
    }

    .gallery-flex {
        padding: 0 0;
        column-count: 3;
        column-gap: 32px;
    }

    .galleries {
        /* margin-top: 60px; */
    }

    .galleries .fx-slider .fx-slide {
        display: block;
    }
}

@media (min-width: 1200px) {
    .galleries {
        /* margin-top: 90px; */
    }
    
    .galleries.section-padding {
        padding-top: 90px;
    }

    .gallery-flex li {
        margin: 0;
        padding: 32px 0 0 0;
    }

    .gallery-flex li a:hover {
        opacity: 0.8;
    }
}


/* Galleries */
.image-gallery {
    background-color: #F2F2F2;
}

.image-gallery-heading-text .sub-heading {
    font-size: 20px;
}

.image-gallery-heading-text h2 {
    padding-bottom: 32px;
}

.image-gallery-heading {
    position: relative;
    padding-bottom: 10px;
    z-index: 1;
}

.image-gallery-card {
    background-color: var(--color-white);
    box-shadow: 0 6px 25px rgba(85, 85, 85, 0.15);
    margin-top: 20px;
}

.image-gallery-image {
    width: 100%;
    height: 154px;
}

.image-gallery-image-content {
    padding: 15px 25px 17px;
}

.image-gallery-image-content .sub-heading {
    padding-bottom: 0px;
    color: #212121;
}

.image-gallery-image-content p {
    font-size: 14px;
    padding-bottom: 6px;
}

.image-gallery-image-content a {
    color: var(--color-primary);
}

.photo-gallery-block__section .image-gallery-wrapper .image-gallery-card {
    display: none;
}

.photo-gallery-block__section .image-gallery-card.show {
    display: block;
}

@media(min-width: 768px) {
    .image-gallery-heading-text h2 {
        padding: 0;
    }

    .image-gallery-heading {
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .image-gallery-image {
        height: 100%;
    }

    .image-gallery-card {
        width: 100%;
        position: relative;
        height: 154px;
        margin-top: 25px;
    }

    .image-gallery-image-content {
        position: absolute;
        top: 15px;
        right: 19px;
        z-index: 1;
        width: 297px;
        background-color: var(--color-white);
        height: calc(100% - 30px);
    }

    .image-gallery-image-content .sub-heading {
        font-size: 18px;
    }

    .image-gallery-image-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .image-gallery-image-content .btn {
        font-size: 15px;
        width: max-content;
    }

    .image-gallery-wrapper {
        margin-top: 25px;
        display: inline-block;
        width: 100%;
    }
}

@media(min-width: 1200px) {

    .image-gallery-wrapper {
        display: grid; 
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        margin-top: 35px;
        gap: 33px;
        height: 545px;
     }

     .image-gallery-card {
        margin: 0;
        height: auto;
     }
       
     .image-gallery-card:nth-child(1) {
        grid-row-start: 1;
        grid-column-start: 1;
        grid-row-end: 3;
        grid-column-end: 2;
     }

     .image-gallery-card.photo-gallery-block:nth-child(1) .image-gallery-image {
        max-height: 100%;
        height: 100%;
     }

     .image-gallery-card.photo-gallery-block .image-gallery-image {
        height: 400px;
    }

     .image-gallery-card:nth-child(2) {
        grid-row-start: 1;
        grid-column-start: 2;
     
        grid-row-end: 2;
        grid-column-end: 3;
     }

     .image-gallery-card:nth-child(3) {
        grid-row-start: 2;
        grid-column-start: 2;
        grid-row-end: 3;
        grid-column-end: 3;
     }

     .image-gallery-card.photo-gallery-block:nth-child(2) .image-gallery-image,
     .image-gallery-card.photo-gallery-block:nth-child(3) .image-gallery-image {
        max-height: 100%;
     }

     .image-gallery-image-content .sub-heading {
        font-size: 20px;
    }

    .image-gallery-image-content p {
        font-size: 16px;
    }

    .image-gallery-image-content {
        height: 123px;
        top: unset;
        bottom: 19px;
        right: 21px;
        width: 375px;
    }

    .image-gallery-card:nth-child(1) .image-gallery-image-content {
        width: 297px;
    }

    .image-gallery-card:nth-child(1) .image-gallery-image-content .btn {
        font-size: 15px;
    }

    .image-gallery-image-content .btn {
        font-size: 13px;
    }

    .image-gallery-heading-text .sub-heading {
        font-size: 25px;
    }

}

@media(min-width: 1900px) {

    .image-gallery-wrapper {
        display: grid; 
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        margin-top: 35px;
        gap: 33px;
        height: auto;
     }

     .image-gallery-image-content {
        height: auto;
        width: 408px;
        right: 23px;
        bottom: 23px;
        padding: 26px 36px 26px 31px;
    }

    .image-gallery-card:nth-child(1) .image-gallery-image-content {
        width: 408px;
    }

    .image-gallery-image-content .sub-heading {
        font-size: 30px;
    }

    .image-gallery-image-content p {
        font-size: 18px;
        padding-bottom: 15px;
    }

    .image-gallery-image-content .btn {
        font-size: 18px;
    }

    .image-gallery-card:nth-child(1) .image-gallery-image-content .btn {
        font-size: 18px;
      }

}