/* ==========================
   ГАЛЕРЕЯ ФОТООТЗЫВОВ
   ========================== */

.gallery-section {
    padding: 40px 20px;
    background: #f9fafb;
}

.gallery-title {
    font-size: 28px;
    font-weight: 800;
    color: #101828;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Контейнер галереи */
.gallery-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Скроллируемая обертка */
.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--Style1Color1, #a432b3) #e5e7eb;
}

/* Стили скроллбара для WebKit */
.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--Style1Color1, #a432b3);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #8e2a9e;
}

/* Элемент галереи */
.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lazy loading placeholder */
.gallery-item img[data-src] {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.gallery-item img.loaded {
    filter: blur(0);
}

/* ==========================
   MOBILE АДАПТАЦИЯ
   ========================== */

@media (max-width: 768px) {
    .gallery-section {
        padding: 30px 16px;
    }
    
    .gallery-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .gallery-scroll {
        gap: 12px;
        padding: 8px 0;
    }
    
    .gallery-item {
        width: 240px;
        height: 240px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 24px 12px;
    }
    
    .gallery-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .gallery-scroll {
        gap: 10px;
    }
    
    .gallery-item {
        width: 200px;
        height: 200px;
        border-radius: 8px;
    }
}

