.gallery {
    padding: 30px 0;
    padding-bottom: 80px;
    background-color: var(--bg-light);
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .gallery {
        padding-bottom: 180px;
    }
}

@media (min-width: 1920px) {
    .gallery {
        padding-bottom: 322px;
    }
}

.gallery__title {
    color: var(--text-dark);
    margin-bottom: 40px;
}


@media (min-width: 768px) {
    .gallery__title {
        margin-bottom: 50px;
    }
}


@media (min-width: 1280px) {
    .gallery__title {
        margin-bottom: 80px;
    }
}

@media (min-width: 1920px) {
    .gallery__title {
        margin-bottom: 100px;
    }
}

.gallery__slider {
    width: 100%;
    padding: 20px 0;

}

.gallery__item {
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.9s ease;
    transform-style: preserve-3d;
    opacity: 0.6;
    user-select: none;
}

.gallery__item:nth-child(odd):not(.swiper-slide-active) {
    transform: rotateY(15deg) rotateZ(4deg) translateY(15px) scale(0.85);
}

.gallery__item:nth-child(even):not(.swiper-slide-active) {
    transform: rotateY(-15deg) rotateZ(-4deg) translateY(15px) scale(0.85);
}

.gallery__item.swiper-slide-active {
    transform: rotateY(0deg) rotateZ(0deg) translateY(0) scale(1.1);
    z-index: 10;
    opacity: 1;
}

.gallery__item img {
    width: 100%;
    height: clamp(200px, calc(200px + (265 - 200) * ((100vw - 360px) / (1280 - 360))), 265px);
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

@media (min-width: 1280px) {
    .gallery__item img {
        height: clamp(265px, calc(265px + (350 - 265) * ((100vw - 1280px) / (1920 - 1280))), 350px);
    }
}

@media (min-width: 1920px) {
    .gallery__item img {
        height: 350px;
    }
}

.gallery__nav {
    display: none;
}

@media (min-width: 768px) {
    .gallery__nav {
        display: none;
    }
}

@media (min-width: 1280px) {
    .gallery__nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 52px;
        position: relative;
        height: 50px;
    }
}

.gallery__btn-prev,
.gallery__btn-next {
    position: static;
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    color: var(--color-white);
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery__btn-prev::after,
.gallery__btn-next::after {
    font-size: 16px;
    font-weight: 900;
}

.gallery__btn-prev:hover,
.gallery__btn-next:hover {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}