/* ========== СТИЛІ ДЛЯ ГАЛЕРЕЇ ФОТО ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 10px 10px;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ========== ФІЛЬТРИ З ІКОНКАМИ ========== */
.gallery-filters {
    text-align: center;
    margin: 20px 0 30px;
    padding-bottom: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.filter-btn:hover {
    color: #111;
}

.filter-btn.active {
    color: #111;
    font-weight: 700;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #ff9800;
    border-radius: 3px;
}

.filter-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* На десктопі - горизонтальний скрол */
@media (min-width: 769px) {
    .gallery-filters {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-filters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        display: inline-flex;
    }
}

/* На мобільних - дві строки */
@media (max-width: 768px) {
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px 10px;
    }
    .filter-btn {
        display: inline-flex;
        padding: 6px 14px;
        font-size: 13px;
    }
    .filter-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    .filter-btn.active::after {
        display: none;
    }
    .filter-btn.active {
        background: #ff9800;
        color: white;
        border-radius: 30px;
    }
}

/* ========== ЛІЧИЛЬНИК ФОТО ========== */
.photo-counter {
    background: #1a2c3e;
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    display: inline-block;
    font-weight: 500;
}

/* ========== КНОПКА "ПОКАЗАТИ ЩЕ" ========== */
.load-more-btn {
    background: linear-gradient(135deg, #25a65b 0%, #1e8c4c 100%);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.load-more-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== КНОПКА INSTAGRAM ========== */
.sv-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f09433 0%, #d62976 40%, #962fbf 80%);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sv-instagram-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.sv-instagram-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 140px;
    }
    
    .gallery-caption {
        font-size: 10px;
        padding: 30px 5px 5px;
    }
    
    .sv-instagram-btn {
        padding: 8px 20px;
        font-size: 14px;
        gap: 8px;
    }
}