/* Gallery Specific Styles */

.gallery-filter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons .btn {
    margin: 0;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
}

.filter-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.filter-buttons .btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 122, 95, 0.2);
}

.filter-buttons .btn:hover::before {
    width: 100%;
}

.filter-buttons .btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.3);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 250px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.7) 0%, rgba(192, 97, 74, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(20px);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-info h4 {
    color: white;
    margin-bottom: 10px;
}

.gallery-info p {
    color: #f5f5f5;
    margin-bottom: 0;
}

/* Lightbox Customization */
#lightbox {
    background: rgba(47, 79, 79, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#lightbox img {
    border: 5px solid rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#lightbox .lb-data .lb-close {
    background: url(../images/close.png) top right no-repeat;
    background-size: 30px;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#lightbox .lb-data .lb-close:hover {
    opacity: 1;
}

#lightbox .lb-nav a.lb-prev,
#lightbox .lb-nav a.lb-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#lightbox .lb-nav a.lb-prev:hover,
#lightbox .lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-card {
        height: 200px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-buttons .btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
    
    .gallery-filter {
        padding: 15px 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-card {
        height: 160px;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-buttons .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-width: 1px;
    }
    
    .gallery-overlay {
        transform: translateY(5px);
    }
    
    .gallery-info h4 {
        font-size: 1.1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .gallery-card {
        height: 130px;
    }
    
    .filter-buttons {
        gap: 4px;
    }
    
    .filter-buttons .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .gallery-info h4 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
}