:root {
    --primary-color: #3a3a3a;
    --secondary-color: #6d6d6d;
    --accent-color: #c7a17a;
    --light-color: #f5f5f5;
    --dark-color: #1a1a1a;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Playfair Display", serif;
    background-color: var(--light-color);
    color: var(--primary-color);
    line-height: 1.6;
}

.artist-header {
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
            no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a.active {
    color: var(--accent-color);
}

.main-nav a.active:after {
    content: "";
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 25%;
}

.gallery-container {
    max-width: 100;
    margin: 3rem auto;
    padding: 0 2rem;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--accent-color);
}

.filter-btn.active:after {
    content: "";
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 25%;
}

.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    max-height: 80vh;
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.artwork-medium {
    font-size: 0.9rem;
    opacity: 0.8;
}

.artist-footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-color);
}

.lightbox-content {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    align-items: center;
}

.lightbox-content img {
    max-height: 80vh;
    max-width: 60%;
    object-fit: contain;
}

.artwork-info {
    color: white;
    padding: 2rem;
    max-width: 40%;
}

.artwork-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.artwork-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 60vh;
    }

    .artwork-info {
        max-width: 100%;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 1;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        display: block;
        margin: 0.5rem 0;
    }
}
