* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Gallery Grid */
.gallery-container {
    max-width: 75vw;
    margin: 0 auto;
    padding: 48px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.gallery-item:hover img {
    opacity: 0.85;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    cursor: default;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid #444;
    display: block;
}

.lightbox-caption {
    font-size: 14px;
    color: #ccc;
    margin-top: 8px;
    text-align: left;
    max-width: 100%;
}

/* Empty state */
.empty-gallery {
    text-align: center;
    padding: 100px 24px;
    color: #555;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-container {
        max-width: 90vw;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-container {
        max-width: 95vw;
        padding: 24px 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
    }
}
