/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background: #F8F7EC;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #ef5a29;
    color: #fff;
    border-color: #ef5a29;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
}

.gallery-overlay p {
    font-size: 14px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

/* Gallery Filter Animation */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-tabs {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .gallery-overlay {
        padding: 20px 15px 15px;
    }
}
