/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- Navigation (Centered Stack) --- */
nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 5% 3rem;
    width: 100%;
    z-index: 10;
    position: relative;
    background-color: #ffffff;
    border-bottom: 6px solid #f9f9f9;
}

.logo {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.logo a {
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.6;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 4vw, 2.5rem);
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    /* Reduced height since Nav is now above it */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1452587925148-ce544e77e70d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: #fff;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.8;
    color: #fff;
}

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* --- Gallery Grid --- */
.gallery-container {
    padding: 5rem 5%;
}

.gallery-container h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: calc(15vw - 33.33px);
    grid-auto-flow: dense;
    gap: 40px;
}

.item {
    overflow: hidden;
    background-color: #f5f5f5;
    border: 4px solid #000;
}

.landscape {
    grid-column: span 3;
    grid-row: span 2;
}

.portrait {
    grid-column: span 2;
    grid-row: span 3;
}

.item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.item img:hover {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* --- About & Projects Pages --- */
.about-page,
.projects-page {
    padding: 4rem 10% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-section {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.bio-image img {
    width: 100%;
    border-radius: 2px;
    border: 2px solid #000;
}

.bio-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.separator {
    border: 0;
    height: 1px;
    background: #f9f9f9;
    margin: 4rem 0;
}

.exhibit-item {
    display: flex;
    padding: 0.5rem 0;
}


.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

/* --- Footer --- */
footer {
    padding: 3rem 5%;
    text-align: center;
    background: #f9f9f9;
    border-top: 6px solid #f9f9f9;
}

footer h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

footer p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

footer a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.6;
}

.socials {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-link {
    color: #000000;
    text-decoration: none;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-divider {
    color: #ccc;
}

.copyright {
    font-size: 1.1rem;
    opacity: 0.5;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.close,
.prev,
.next {
    position: absolute;
    color: white;
    font-size: 35px;
    cursor: pointer;
    user-select: none;
}

.close {
    top: 20px;
    right: 30px;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Gap handled by clamp() above */

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .bio-section,
    .project-card {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bio-image {
        margin-top: 0;
    }

    .bio-image img {
        height: auto;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: calc(67.5vw - 15px);
        gap: 20px;
    }

    .landscape {
        grid-column: span 2;
        grid-row: span 1;
    }

    .portrait {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Thinner borders on mobile */
    .item {
        border: 2px solid #000;
    }

    .bio-image img {
        border: 1px solid #000;
    }
}
















/* --- Modern Projects Layout --- */
.projects-page {
    padding: 80px 5% 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 8rem;
}

.section-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 150px;
    /* Large breathing room between projects */
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* This makes every second project flip sides for a better look */
.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) .project-info {
    direction: ltr;
    /* Keeps text reading left-to-right */
}

.project-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    display: block;
    margin-bottom: 1.5rem;
}

.project-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.project-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-link {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    transition: border-color 0.3s;
}

.project-link:hover {
    border-color: #000;
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {

    .project-card,
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .project-info h2 {
        font-size: 2rem;
    }
}














/* --- Exhibition Link Styling --- */
/* --- Updated Exhibition List Styling --- */
.exhibition-grid {
    margin-top: 2rem;
}

.exhibit-item {
    display: flex;
    justify-content: space-between;
    /* Pushes the 'View' link to the right */
    align-items: center;
    padding: 0.5rem 0;
}

.exhibit-detail {
    flex-grow: 1;
    /* Takes up the middle space */
}

.exhibit-detail h3 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: #000;
    font-weight: 400;
}

.exhibit-detail p {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}

/* The View Link on the right */
.view-link {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid #ccc;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevents button from breaking into two lines */
}

.view-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Mobile Tweak for Exhibitions */
@media (max-width: 768px) {
    .exhibit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .exhibit-detail {
        margin-left: 0;
    }

    .exhibit-action {
        width: 100%;
    }

    .view-link {
        display: block;
        text-align: center;
    }
}




/* --- Wider & Swapped About Page --- */
.about-page {
    padding: 80px 5% 60px;
    /* Reduced side padding to allow more width */
    max-width: 1400px;
    /* Increased from 1200px for a wider feel */
    margin: 0 auto;
}

.bio-section {
    display: flex;
    flex-direction: row-reverse;
    /* Swaps the image to the right and text to the left */
    gap: 6rem;
    /* Large gap for a premium look */
    align-items: stretch;
    margin-bottom: 8rem;
}

.bio-image {
    flex: 1;
    margin-top: 5.85rem; /* Aligns image top with paragraph top */
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(10%);
    /* Subtle desaturation */
    display: block;
    border: 2px solid #000;
}

.bio-text {
    flex: 1.2;
    /* Gives the text slightly more presence than the image */
}

.bio-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.bio-text p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Ensure the Exhibitions section also uses the new wider width */
.exhibitions-section h2 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
}

.exhibitions-section {
    max-width: 1000px;
    /* Keeps the list readable so it doesn't stretch too far */
    margin: 0 auto;
}

@media (max-width: 900px) {
    .bio-section {
        flex-direction: column;
        /* Stack image on top of text on mobile */
        gap: 3rem;
        text-align: center;
    }

    /* Ensure the image shows first on mobile despite the desktop swap */
    .bio-image {
        order: 1;
    }

    .bio-text {
        order: 2;
    }

    /* Font size handled by clamp() above */
}

/* --- Contact Page Styling --- */
.contact-page {
    padding: 100px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-hero {
    text-align: center;
    margin-bottom: 80px;
}

.contact-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.4rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 1rem;
}

.info-item p, .info-item a {
    font-size: 1.4rem;
    color: #000;
    text-decoration: none;
}

.info-socials h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 1.5rem;
}

.info-socials a {
    display: block;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.info-socials a:hover {
    color: #888;
}

.contact-form-container {
    background: #fdfdfd;
    padding: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #000;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 20px;
    padding: 1rem 3rem;
    font-size: 1rem;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-hero h1 {
        font-size: 3rem;
    }
}