:root {
    --accent-color: #2c3b1d;
    --background-color: #a0af7b;
    --card-bg: #f3ce71;
    --white: #fff8ec;
    --black: #000000;
    --border-color: #ddd;
    --text-muted: #666;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.2s ease;
}

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

em {
    font-style: italic;
}

strong, b {
    font-weight: 600;
}

/* header + navbar*/

.gallery-header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    border-bottom: 3px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent-color);
    border: none;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 0.95em;
    font-weight: 500;
    border: none;
    padding: 5px 10px;
}

.main-nav a:hover {
    background-color: var(--background-color);
    border-bottom: none;
}

.current-section {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--accent-color);
    padding: 5px 10px;
}

/* footer*/

.critical-footer {
    background-color: var(--white);
    padding: 18px 5%;
    /* margin-top: 60px; */
    border-top: 3px solid var(--black);
    text-align: center;
    font-size: 0.95em;
}

.critical-footer p {
    margin-bottom: 10px;
}

.critical-footer a {
    color: var(--accent-color);
    font-weight: 500;
}

/* home page*/

.exhibition-index {
    padding: 60px 5%;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.intro {
    margin-bottom: 60px;
    max-width: 800px;
    color: white;
}

.intro h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.intro p {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Background image for exhibition index */
.exhibition-index {
    position: relative;
    background-image: url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.exhibition-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.exhibition-index > * {
    position: relative;
    z-index: 2;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.exhibit-card {
    display: block;
    padding: 40px;
    background-color: var(--white);
    border: 15px ridge var(--card-bg);
    transition: all 0.3s ease;
    position: relative;
    min-height: 250px;
}

.exhibit-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.exhibit-card:hover .exhibit-number {
    color: var(--accent-color);
}

.exhibit-number {
    font-size: 4em;
    font-weight: bold;
    color: var(--card-bg);
    line-height: 1;
    display: block;
    margin-bottom: 15px;
}

.exhibit-card h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 10px 0 15px 0;
    color: var(--black);
    line-height: 1.3;
}

.exhibit-desc {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 10px;
}

/* the Text chapters*/

.gallery-room {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.room-title {
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.chapter-intro {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    font-style: italic;
    color: var(--accent-color);
}

/* Text + Image layout */
.text-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.text-section.reverse {
    grid-template-columns: 1fr 1.5fr;
}

.main-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
}

.main-text .lede {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 30px;
}

.section-heading {
    font-size: 1.8em;
    color: var(--accent-color);
    margin: 50px 0 20px 0;
    font-weight: bold;
}

.section-subheading {
    font-size: 1.3em;
    color: var(--black);
    margin: 30px 0 15px 0;
    font-weight: 600;
}

/* Image containers */
.image-plaque {
    background-color: var(--white);
    padding: 20px;
    border: 2px solid var(--black);
    align-self: start;
    position: sticky;
    top: 100px;
}

.image-box-placeholder {
    max-width: 100%;
    border: 15px ridge var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    background-color: #f5f5f0;
}

.image-plaque figcaption {
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
    color: var(--text-muted);
}

.plaque-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.95em;
    line-height: 1.6;
}

.plaque-text strong {
    color: var(--accent-color);
}

/* Comparisons layout */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.comparison-item {
    background-color: var(--white);
    padding: 20px;
    border: 2px solid var(--black);
}

.comparison-prompt {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent-color);
}

/* Carousel styles */
.carousel-section {
    margin: 20px 0 60px 0;
    padding: 20px 0;
    border-top: 2px solid var(--accent-color);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.carousel-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    text-align: center;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0.6;}
    to {opacity: 1;}
}

.carousel-slide img {
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    display: block;
    border: 10px ridge var(--card-bg);
}

.carousel-caption {
    margin-top: 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--black);
    font-style: italic;
    padding: 0 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5em;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--black);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

/* Full-width image sections */
.full-width-image {
    margin: 60px 0;
}


/* Visual chapters*/

.visual-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.visual-item {
    background-color: var(--white);
    padding: 15px;
    border: 2px solid var(--black);
}


.visual-prompt {
    font-size: 1.3em;
    font-weight: 600;
    margin: 60px 0 30px 0;
    text-align: center;
    color: var(--accent-color);
}

.visual-note {
    text-align: center;
    font-size: 0.95em;
    font-style: italic;
    margin: 20px 0;
    color: var(--text-muted);
}

/* chapter navigation*/

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 2px solid var(--black);
}

.gallery-footer a {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

.gallery-footer a:hover {
    background-color: var(--black);
    border: none;
}

.gallery-footer a:first-child {
    margin-right: auto;
}

.gallery-footer a:last-child {
    margin-left: auto;
}

.gallery-footer a.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* the Glossary page*/

.key-concepts {
    padding: 60px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.key-concepts h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--black);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 20px;
}

.glossary-intro {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 700px;
    font-style: italic;
}

.concept-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.concept-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 25px 0;
    border-bottom: 5px dashed var(--card-bg);
    align-items: start;
}

.concept-item:last-child {
    border-bottom: none;
}

.concept-list dt {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color);
    padding: 0;
    margin: 0;
}

.concept-list dd {
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 1.05em;
}

.exhibit-refs {
    font-size: 0.9em;
    margin-left: 8px;
    white-space: nowrap;
}

.exhibit-refs a {
    color: var(--accent-color);
    border: none;
    padding: 2px 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.exhibit-refs a:hover {
    background-color: var(--card-bg);
    border: none;
}

/* Highlight target when jumping from glossary */
span[id]:target {
    padding: 2px 2px;
    border-radius: 4px;
    animation: highlight-fade 3s ease-out forwards;
    scroll-margin-top: 100px;
}

@keyframes highlight-fade {
    0% {
        background-color: var(--card-bg);
        box-shadow: 0 0 0 4px rgba(243, 206, 113, 0.3);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(243, 206, 113, 0);
    }
}

/* the About page*/
/* 
.about-page {
    padding: 60px 5%;
    padding-top: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.about-page h1 {
    font-size: 3em;
    font-weight: normal;
    margin-bottom: 40px;
}

.about-page h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 40px 0 20px 0;
    color: var(--accent-color);
    text-decoration: underline;
}

.about-page p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-page ul {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.about-page li {
    margin-bottom: 10px;
} */

.about-page {
    padding: 60px 5%;
}

.about-page h1,
.about-page h2,
.about-page p,
.about-page ul {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-page h1 {
    font-size: 3em;
    font-weight: normal;
    margin-bottom: 40px;
}

.about-page h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--white);
    text-decoration: underline;
}

.about-page p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white);
}

.about-page ul {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 30px;
    line-height: 1.8;
}

.about-page li {
    margin-bottom: 10px;
}

/* Responsive design for mobile*/

@media (max-width: 900px) {
    .text-section,
    .text-section.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-plaque {
        position: static;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
    }
    
    .concept-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }

    .concept-list dt {
        padding-bottom: 5px;
    }

    .concept-list dd {
        padding-top: 5px;
    }
}

@media (max-width: 768px) {
    .intro h1 {
        font-size: 2.2em;
    }
    
    .room-title {
        font-size: 2em;
    }
    
    .exhibit-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-footer a:first-child,
    .gallery-footer a:last-child {
        margin: 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .intro h1 {
        font-size: 1.8em;
    }
    
    .chapter-number {
        font-size: 3em;
    }
    
    .gallery-room,
    .exhibition-index,
    .key-concepts,
    .about-page {
        padding: 40px 5%;
    }
}