.gallery3 .relative {
    width: calc(100% + clamp(240px, calc(8vw + 80px), 120px));
    margin-left: clamp(-120px, calc(-4vw - 40px), -60px);
}

.gallery3 .swiper {
    height: 26vw;
    max-width: 2560px;
}

.gallery3 .swiper-slide {
    transition: transform 0.6s, height 0.6s;
    height: 100%;
}

.gallery3 .next,
.gallery3 .prev {
    position: static;
    transform: none;
    box-shadow: 2px 2px 10px #D9D9D9;
    width: 50px;
    height: 50px;
}

.gallery3 .next i,
.gallery3 .prev i {
    font-size: 32px;
    color: #000;
    font-weight: 100;
}

.gallery3 .buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 1024px) {
    .gallery3 .swiper-slide:not(.swiper-slide-next) {
        transform: scale(0.9);
        height: 85%;
    }
}

@media (max-width: 767px) {

    .gallery3 .relative {
        width: 100%;
        margin-left: 0;
    }

    .gallery3 .swiper {
        height: 250px;
    }

    .gallery3 .buttons {
        gap: 20px;
        margin-top: 20px;
    }

    .gallery3 .prev,
    .gallery3 .next {
        transform: scale(0.85);
    }

}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery3 .swiper {
        height: 340px;
    }
}