/* Gallery specific styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

/* Gallery Controls */
.gallery-controls {
    margin-bottom: 30px;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.category-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4px;
    padding: 0;
    background: #000;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.caption {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.date {
    margin: 0;
    font-size: 0.8em;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 2px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .gallery-categories {
        gap: 10px;
    }

    .category-btn {
        padding: 6px 15px;
        font-size: 0.9em;
    }
}

/* Loading animation */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.gallery-item.loaded::before {
    display: none;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2em;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* Make gallery items clickable */
.gallery-item {
    cursor: pointer;
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 1.5em;
    }

    .nav-btn {
        font-size: 1.5em;
        padding: 15px 10px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
} 