/* Art page styles */
.art-page {
    padding: 5rem 1.5rem;
    min-height: 80vh;
    background: var(--bg-primary);
}

.page-header {
    margin-bottom: 4rem;
    max-width: 900px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Art Grid */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
}

.art-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.art-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--bg-card);
}

.art-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.art-caption {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.art-title {
    margin: 0;
    font-style: italic;
}

.art-untitle {
    margin: 0;
    font-style: normal;
}

.art-year {
    margin: 0.25rem 0 0 0;
    opacity: 0.8;
}

.art-medium {
    margin: 0.5rem 0 0 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .art-page {
        padding: 3rem 1.25rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .art-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: -2.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .art-page {
        padding: 2.5rem 1rem;
    }

    .page-header {
        margin-bottom: 2.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .art-grid {
        gap: 1.5rem;
    }
}
