/* Gallery Page Styles */
:root {
    --gold: #FFD700;
    --dark: #121212;
    --darker: #0a0a0a;
}

/* Filter Section */
.gallery-filter {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-buttons .btn-outline-gold {
    color: var(--gold);
    border: 1px solid var(--gold);
    background: transparent;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-buttons .btn-outline-gold:hover,
.filter-buttons .btn-outline-gold.active {
    background-color: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Gallery Items */
.gallery-item {
    margin-bottom: 30px;
    transform: scale(1);
    transition: all 0.4s ease;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
    background-color: var(--darker);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Section dividers */
.gallery-category:not(:last-child)::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 3rem auto 0;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.gallery-section .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
}

.gallery-section .col-lg-4,
.gallery-section .col-md-6 {
    width: 100%;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.gallery-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    height: 100%;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 68, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-card img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
    color: var(--gold);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--white);
}

/* Category badges */
.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1;
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-family: 'Montserrat', sans-serif;
    color: var(--gold);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-data .lb-close {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(10, 31, 68, 0.7);
    }
    
    .overlay-content i {
        font-size: 1.5rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}