/* Gallery Page Styles */

.gallery-header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4), rgba(10, 10, 18, 0.95)),
                url('../img/gallery-bg.jpg') center/cover no-repeat;
}

/* Filter Tabs */
.gallery-filters {
    background: var(--bg-card);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--alliance-blue-dark);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--alliance-blue-dark);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--alliance-blue);
}

.filter-tab.active {
    background: var(--alliance-blue);
    border-color: var(--alliance-blue);
}

/* Gallery Grid */
.gallery {
    padding: var(--spacing-lg) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--alliance-blue-dark);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--alliance-gold);
    transform: translateY(-4px);
}

.gallery-item.hidden {
    display: none;
}

.gallery-img {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.gallery-info {
    padding: var(--spacing-sm);
}

.gallery-info h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Upload CTA */
.upload-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--alliance-gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--alliance-blue);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-caption {
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
}
