/* Слайдер для фотографий */
.photo_scroller_block {
    height: 444px;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
    overflow: hidden;

}

.photo_scroller {
    padding: 50px 25px;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    gap: 30px;
    align-items: center;
    box-sizing: content-box; 
}

.slider-track {
    display: flex;
    flex-direction: row; /* по умолчанию в строку */
    gap: 30px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.slide-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 450px;
    height: 300px;
    border-radius: 30px;
    user-select: none;
    transition: all 0.3s ease;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

.slide-item img {
    width: 450px;
    border-radius: 10px;
}

/* Стили для скроллбара */
.photo_scroller::-webkit-scrollbar {
    height: 10px; 
    background-color: #f0f0f0;
    border-radius: 15px;
}

.photo_scroller::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 15px;
}

.photo_scroller::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

@media (max-width: 769px) {
    .photo_scroller {
        width: 100%;
    }
    
    .slide-item {
        width: 100%;
        min-width: 100%;
        height: 250px
    }

    .slide-item img {
        width: 100%;
        border-radius: 10px;
    }
    
    .slider-track {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        height: 300px;
        overflow-y: visible;
    }
}


