/* ===== BASIC RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== COLOR & FONT VARIABLES ===== */
:root {
    --color-bg: #1a1a1a;
    --color-bg-light: #242424;
    --color-text: #f0f0f0;
    --color-text-muted: #999999;
    --color-accent: #089FDA;
    --font-main: 'Cormorant', Georgia, serif;
}

/* ===== BODY ===== */
body {
    font-family: var(--font-main);
    font-size: 105%;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    letter-spacing: 0.01em;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: var(--color-bg);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    color: var(--color-text);
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* ===== HERO IMAGE ===== */
.hero {
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

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

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 7.5vw;
}

/* ===== SECTIONS ===== */
section {
    padding: 70px 0;
    border-bottom: 1px solid #333;
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.email {
    color: var(--color-accent);
}

/* ===== GALLERY SECTION ===== */
#gallery {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Masonry layout */
.gallery-grid {
    width: 100%;
}

.artwork {
    width: calc(25% - 15px);
    margin-bottom: 20px;
    overflow: hidden;
    background-color: var(--color-bg-light);
    cursor: pointer;
}

/* Featured pieces are twice as wide */
.artwork.featured {
    width: calc(50% - 10px);
}

.artwork img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.artwork:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ===== ABOUT SECTION ===== */
.about-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.about-header h2 {
    margin-bottom: 0;
}

.about-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

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

.about-text {
    max-width: 800px;
}

.about-text p {
    margin-bottom: 20px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-top: 1px solid #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .artwork {
        width: calc(33.333% - 14px);
    }

    .artwork.featured {
        width: calc(50% - 10px);
    }
}

@media (max-width: 900px) {
    .artwork {
        width: calc(50% - 10px);
    }

    .artwork.featured {
        width: calc(100% - 0px);
    }

    #gallery {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .artwork {
        width: 100%;
    }

    .artwork.featured {
        width: 100%;
    }

    main {
        padding: 0 20px;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 120px;
        height: 120px;
    }

    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 2rem;
    }
}
