.gallery-image img {
    border-radius: 1rem;
    margin-top: 3rem;
}

.swiper-service_container {
    margin: auto;
    overflow: hidden;
    position: relative;
    margin-top: clamp(1rem, 2vw, 2rem);
    max-width: 85%;
}

.section-gallery .swiper-slide {
    height: auto;
}

.section-gallery .gallery-image {
    height: 100%;
    margin: 0 1rem;
}

.section-gallery .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item {
    transform-style: preserve-3d;
    transition: 0.3s;
    display: block;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.section-gallery .swiper-slide .gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.section-gallery .swiper-slide.swiper-slide-active .gallery-content {
    opacity: 1;
    visibility: visible;
}

.section-gallery .gallery-content .gallery-title {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.1;
    color: #212121;
}

.section-gallery .gallery-content .gallery-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
    margin-top: 10px;
    font-variation-settings: "wght" 400, "wdth" 100;
}


@media screen and (max-width: 992px) {
    .swiper-service_container {
        max-width: 100%;
    }

    .section-gallery .gallery-image {
        display: table;
        margin: auto;
    }

    .section-gallery .gallery-content .gallery-caption {
        max-width: 85%;
    }
}

@media screen and (max-width: 767.99px) {
    .section-gallery .swiper-service_container::before {
        content: '';
        background: linear-gradient(-270deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
        position: absolute;
        top: 0;
        right: 0;
        width: 4rem;
        height: 100%;
        z-index: 2;
    }

    .section-gallery .swiper-service_container::after {
        content: '';
        background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
        position: absolute;
        top: 0;
        left: 0;
        width: 4rem;
        height: 100%;
        z-index: 2;
    }

    .gallery-image img {
        margin-top: 0;
    }
}

@media screen and (min-width: 768px) {

    .gallery-image img {
        margin-top: 2rem;
    }

    .sw--secgallery .swiper-slide:not(.swiper-slide-active) .gallery-item {
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -moz-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        -o-transform: scale(1) !important;
    }

    .sw--secgallery .swiper-slide-active .gallery-item {
        transform: scale(1.25);
        -webkit-transform: scale(1.25);
        -moz-transform: scale(1.25);
        -ms-transform: scale(1.25);
        -o-transform: scale(1.25);
    }

    .section-gallery .swiper-wrapper {
        padding: 2.5rem 0 5.5rem;
    }
}

@media screen and (max-width: 400px) {
    .section-gallery .gallery-image img {
        width: auto;
        height: auto;
    }

    .section-gallery .gallery-item {
        border-radius: 1rem;
    }

    .gallery-image img {
        margin-top: 0;
    }
}