/* =========================
   RESET & FOUNDATION
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #eeeeee;
    
    --content-width: 880px;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif; /* For small UI elements if needed */
}

/* =========================
   BASE TYPOGRAPHY
========================= */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.75;
    letter-spacing: 0.015em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 400;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-muted);
}

/* =========================
   LAYOUT UTILITIES
========================= */
#site-header,
#main-content,
#site-footer,
.artist-profile,
.exhibition-detail,
.navbar,
.page-header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* Consistent horizontal padding */
}

/* Vertical Spacing */
#site-header, .navbar { padding-top: 4rem; padding-bottom: 2rem; }
#site-footer { padding-top: 4rem; padding-bottom: 2rem; }
.artist-profile, .exhibition-detail { padding-top: 2rem; padding-bottom: 4rem; }

/* =========================
   HEADER & NAVIGATION
   (Unifies the Home header and the sub-page Navbar)
========================= */
.curator-name, .logo {
    font-size: 3.1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    display: block;
    font-family: var(--font-serif);
}

.curator-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* Navigation Links */
.nav-list, .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin-top: 2.5rem;
}

.nav-list a, .nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    position: relative;
}

.nav-list a:hover, .nav-links a:hover,
.nav-list a.active, .nav-links a.active {
    color: var(--text-main);
}

/* Hide Hamburger by default (clean desktop first) */
.hamburger { display: none; }

/* =========================
   HOME: INTRODUCTION
========================= */
.curator-introduction { margin-top: 3.5rem; }
.curator-introduction p {
    max-width: 720px;
    font-size: 1.05rem;
    margin-bottom: 1.9rem;
}
.curator-introduction p:first-child {
    font-size: 1.35rem;
    line-height: 1.6;
}

/* =========================
   SECTIONS & TITLES
========================= */
.section-title, h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    margin-top: 4rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* =========================
   GRIDS (Exhibitions & Artworks)
========================= */
/* Vertical Exhibition List */
.exhibition-list {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Generous spacing between exhibitions */
    margin-top: 4rem;
}

.exhibition-grid, .artworks-grid, .artists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 2rem;
    align-items: start;
}

/* Card Styles - Removing Shadows/Radius for Curator Look */
.exhibition-card, .artwork-card, .artist-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    background: transparent;
    box-shadow: none !important; /* Override inline styles */
    border-radius: 0 !important; /* Sharp corners */
}

/* Specific avatar styling for exhibition list image */
.exhibition-card .exhibition-image {
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    margin-bottom: 0.5rem;
}

.exhibition-image, .artwork-image, .artist-image {
    background: #f5f5f5;
    overflow: hidden;
    width: 100%;
    display: block;
    border-radius: 0 !important;
}

.exhibition-image img, .artwork-image, .artist-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Effects */
.exhibition-card:hover img, 
.artwork-card:hover .artwork-image,
.artist-card:hover .artist-image {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Typography inside cards */
.exhibition-year, .artwork-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-ui); /* Clean sans for metadata */
    letter-spacing: 0.05em;
}

.exhibition-title, .artwork-title, .artist-info h3 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.exhibition-venue, .artist-info p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================
   ARTIST PROFILE & DETAILS
========================= */
.artist-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
    align-items: start;
}

.artist-bio h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.artist-bio p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* =========================
   EXHIBITION DETAIL TEXT
========================= */
.exhibition-detail .text-content {
    max-width: 680px;
    margin-bottom: 4rem;
}

.exhibition-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.exhibition-info ul {
    list-style: none;
    padding: 0;
}

.exhibition-info li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =========================
   FOOTER
========================= */
#site-footer p, .footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .exhibition-grid, .artworks-grid, .artists-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .artist-header {
        grid-template-columns: 1fr;
    }
    
    .nav-list, .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .curator-name, .logo {
        font-size: 2.4rem;
    }
}

/* Animation Classes */
.curator-name, .curator-role, .curator-introduction p, .exhibition-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* =========================
   ARTIST GRID SPECIFICS
========================= */

/* 1. Force the container to be a square */
.artist-card .artist-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

/* 2. Force the image to fill the square and crop from the TOP */
.artist-card .artist-image img {
    width: 100%;
    height: 100%;          /* Critical: forces image to fill the square height */
    object-fit: cover;     /* Ensures no stretching */
    object-position: top;  /* Critical: Focuses on the face/top of image */
    display: block;
    transition: transform 0.8s ease;
}

/* Hover Effect */
.artist-card:hover .artist-image img {
    transform: scale(1.05);
}
/* =========================
   ARTWORK GRID (Selected Works)
========================= */

/* 1. Define the container size */
.artwork-card .artwork-image {
    width: 100%;
    height: 400px; /* Sets a fixed height for all artwork boxes */
    background: #f5f5f5;
    overflow: hidden; /* Cuts off anything that goes outside */
    position: relative;
}

/* 2. Force the image to fit inside perfectly */
.artwork-card .artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the box without stretching/distorting */
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

/* Optional: Slight zoom on hover */
.artwork-card:hover .artwork-image img {
    transform: scale(1.05);
}

/* Mobile Adjustment: Make them smaller on phones */
@media (max-width: 768px) {
    .artwork-card .artwork-image {
        height: 300px;
    }
}