.gallery1 .relative {
    width: calc(100% + clamp(240px, calc(8vw + 80px), 120px));
    margin-left: clamp(-120px, calc(-4vw - 40px), -60px);
}

.gallery1 .swiper {
    height: 26vw;
    max-width: 2560px;
}

.gallery1 .swiper-slide {
    transition: transform 0.6s, height 0.6s;
    height: 100%;
}

.gallery1 .arrow {
    border: 2px solid var(--color2);
}

.gallery1 .next {
    right: 80px !important;
}

.gallery1 .prev {
    left: 80px !important;
}

.gallery1 .next i,
.gallery1 .prev i {
    color: var(--color2);
    font-size: 30px;
    font-weight: 300;
}


@media (min-width: 1024px) {
    .gallery1 .swiper-slide:not(.swiper-slide-next) {
        transform: scale(0.9);
        height: 85%;
    }
}

@media (max-width: 767px) {

    .gallery1 .relative {
        width: 100vw;
        margin-left: -20px;
    }

    .gallery1 .swiper {
        height: 300px;
    }

    .gallery1 .next {
        right: 20px !important;
    }
    
    .gallery1 .prev {
        left: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery1 .swiper {
        height: 340px;
    }
}