/* ==========================================================================
   GALLERY & LIGHTBOX STYLESHEET - FUTURISTIC YELLOW & BLUE
   ========================================================================== */

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    color: #cbd5e1;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
    font-weight: 800;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    height: 280px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,10,18,0.95) 0%, rgba(7,10,18,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.gallery-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 4px;
}

.gallery-sub {
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap {
    position: relative;
    max-height: 75vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 15px rgba(56, 189, 248, 0.3);
    border: 2px solid var(--border-color);
}

.lightbox-caption {
    margin-top: 16px;
    color: white;
    text-align: center;
}

.lightbox-caption h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.lightbox-caption p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.lightbox-close:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 28, 49, 0.8);
    color: white;
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .gallery-card {
        height: 220px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        z-index: 30;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-container {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
