:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #d4af37;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image {
    flex: 0 0 25%;
    max-width: 25%;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(80%);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(100%);
}

.hero-content {
    flex: 1;
    padding: 120px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--bg-color);
}

.artist-name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.artist-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.artist-location {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.artist-bio {
    max-width: 700px;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    column-count: 2;
    column-gap: 40px;
    margin-top: 1rem;
}

.artist-bio p {
    margin-bottom: 1.5rem;
    text-align: justify;
    break-inside: avoid;
}

.artist-bio p:empty {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 2px;
    height: 6px;
    background: var(--accent-color);
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* --- Gallery Section --- */
#gallery-container {
    padding: 100px 4vw;
}

.masonry-grid {
    column-count: 4;
    column-gap: 30px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: #111;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(40%);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 3rem;
    font-weight: 200;
    color: var(--accent-color);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.close-lightbox:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

/* --- Loader --- */
.loading-state {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.loader {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    #hero {
        flex-direction: column;
        height: auto;
    }

    .hero-image,
    .hero-content {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        height: auto;
        min-height: 400px;
        /* Ensure a decent size on narrow screens */
        aspect-ratio: 4/5;
        /* Keep a professional portrait ratio */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        pointer-events: none;
        /* Disable click/lightbox on mobile */
        cursor: default;
    }

    .hero-content {
        padding: 60px 8vw;
    }

    .masonry-grid {
        column-count: 2;
    }

    .artist-bio {
        column-count: 1;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .artist-name {
        font-size: 3rem;
    }

    .close-lightbox {
        top: 20px;
        right: 20px;
    }
}