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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Header & Adaptive Navigation --- */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    max-width: 150px;
    height: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

nav button {
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

nav button:hover {
    background: #f0f0f0;
    color: #000;
}

nav button.active {
    background: #1a1a1a;
    color: #fff;
}

/* --- Main Centered Layout --- */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.7;
}

/* --- Home / Artist Profile Centered Column --- */
.home-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.artist-statement,
.artist-biography {
    margin-bottom: 2.25rem;
}

.home-content p {
    font-size: clamp(15px, 2vw, 16.5px);
    color: #444;
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.artist-cv {
    margin-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}

.cv-section {
    margin-bottom: 2.25rem;
}

.cv-section h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cv-list {
    list-style-position: outside;
    padding-left: 1.25rem;
    color: #444;
}

.cv-list li {
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.cv-list ul {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin-top: 0.35rem;
}

.cv-year {
    font-weight: 600;
    color: #222;
}

/* --- Adaptive Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    background: #f5f5f5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-text {
    color: #fff;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    padding: 1rem;
    max-height: 100%;
    overflow-y: auto;
}

.image-not-found {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
}

/* --- Lightbox / Image Zoom Styles --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

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

.lightbox img.lightbox-image {
    max-width: 80vw;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: opacity 0.24s ease, transform 0.3s ease;
}

.lightbox.active img.lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 14px;
    max-width: 680px;
    color: #eee;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    transition: opacity 0.24s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: 200;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 210;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    box-shadow: none;
    border: none;
    padding: 0;
    transform: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.active img.lightbox-image {
    border: groove 1px #ccc;
    padding: 2px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 16px 16px;
    }

    main {
        padding: 28px 16px;
    }
}

@media (max-width: 600px) {
    .lightbox img.lightbox-image {
        max-width: 92vw;
        max-height: 68vh;
    }

    .lightbox-nav {
        top: auto;
        bottom: 24px;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .lightbox-nav:hover {
        transform: scale(1.08);
    }

    .lightbox-prev {
        left: 25%;
    }

    .lightbox-next {
        right: 25%;
    }
}

@media (max-width: 480px) {
    nav {
        gap: 4px;
    }

    nav button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .gallery-grid {
        gap: 14px;
    }
}
