.gallery {
    padding: 0;
    min-height: 100vh;
    background-color: transparent;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-inner {
    width: 100%;
    overflow: hidden;
}

.slider-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

                                        /* 3 изображения */

.slide {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    overflow: hidden;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    image-rendering: -webkit-optimize-contrast;
}

                                            /* Стрелки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.arrow svg {
    width: 22px;
    height: 22px;
}

.arrow svg path {
    stroke: #FFFFFF;
    stroke-width: 2;
}

.slider-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
}

                                                /*2 изображения */
@media (max-width: 900px) {
    .slide {
        flex: 0 0 50%;
        width: 50%;
    }
    
    .slide img {
        height: 500px;
    }
    
    .arrow {
        width: 36px;
        height: 36px;
    }
    
    .arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .arrow-left {
        left: 10px;
    }
    
    .arrow-right {
        right: 10px;
    }
}

                                                /* Мобилки 1 изобрадение*/
@media (max-width: 480px) {
    .slide {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .slide img {
        height: 500px;
    }
    
    .arrow {
        width: 32px;
        height: 32px;
    }
    
    .slider-counter {
        font-size: 12px;
        padding: 4px 10px;
        bottom: 10px;
        right: 10px;
    }
}