/* CSS Reset and Variables */
@font-face {
    font-family: 'Recoleta';
    src: url('Recoleta-RegularDEMO.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Original Script';
    src: url('Original Script Std Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Latin Modern Math';
    src: url('latin-modern-math.regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bolyar Sans Rust';
    src: url('fm-bolyar-sans-rust-300.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Reislust';
    src: url('Reislust-97D7.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Original Script';
    src: url('Original Script Std Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-bg: #F7F7F7;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-accent: #5F7049;
    --color-card-bg: #ffffff;
    --color-hero-text: #1B3022;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Recoleta', 'Original Script', serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography Elements */
h1, h2, h3, h4 {
    font-weight: 500;
}

/* Navbar Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-lg) var(--spacing-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(247, 247, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: 'Latin Modern Math', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    align-items: center;
}

.back-link {
    position: absolute;
    top: 10rem; /* Moved slightly up */
    left: var(--spacing-lg);
    z-index: 100;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600; /* Made bold */
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-hero-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: 'Original Script';
    font-size: 2.2rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
    width: 24px;
    height: 1.5px;
    background-color: var(--color-hero-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    display: block;
}

.contact-page .nav-toggle-bar {
    background-color: #000;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: min(100vh, 90vw); /* Don't leave the hero taller than the image on tall, narrow windows */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 0 var(--spacing-lg);
    position: relative;
    /* Space for the part of the image that extends below the hero (image height = min(100vh + 350px, 90vw)) */
    margin-bottom: max(2rem, calc(min(100vh + 350px, 90vw) * 0.94 - min(100vh, 90vw))); /* 0.94 trims the photo's blank bottom edge */
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.2s ease-out;
    margin-left: 0; /* Ensure no unintended shifting */
    position: relative;
    z-index: 10; /* Keep text above the image */
}

.hero-title {
    font-family: 'Latin Modern Math', var(--font-serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--color-hero-text);
    margin-bottom: var(--spacing-sm); 
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap; /* Prevent stacking */
}

.hero-subtitle {
    font-family: 'Original Script';
    font-size: 3rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.hero-image-container {
    position: absolute;
    right: calc(var(--spacing-lg) - 96px); /* Shift right by ~1 inch (96px) */
    top: 0; /* Moved back to top for full visibility */
    height: min(100vh + 350px, 90vw); /* Match the image's height so no empty box sits below it */
    width: 60vw; /* Controlled width */
    max-width: none;
    pointer-events: none; /* Make click-through so it doesn't interrupt UI */
    mix-blend-mode: darken; /* Darken guarantees absolute elimination of any white against grey backgrounds */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show the whole image, never crop top or bottom */
    object-position: right top;
    animation: fadeIn 1.5s ease-out 0.2s backwards;
}

/* About Section */
.about-section {
    padding: 0 var(--spacing-lg); /* Removed top padding, using margin for spacing */
    background-color: transparent;
    margin-top: 2rem; /* Closer to the section above */
}

.quote-layout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered */
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
}

.quote-container {
    margin: 0 auto 12rem; /* Centered and reduced bottom margin */
    max-width: 700px; /* Wider for centered text */
    text-align: center;
    position: relative;
    z-index: 10;
}

.images-right-cluster {
    display: flex;
    flex-wrap: wrap; /* Allow some tiling while maintaining gaps */
    gap: 3rem; /* 1/2 inch uniform spacing between images */
    align-items: flex-start;
    position: relative;
    flex: 1;
}

.floating-placeholder {
    aspect-ratio: 2/3;
    background-color: #E5E5E5;
    z-index: 1;
    transition: transform 0.3s ease;
    opacity: 0.8;
    position: relative; /* Changed from absolute to relative flow with offsets */
    overflow: hidden; /* Ensure zoomed images don't spill out */
}

.floating-placeholder:hover {
    transform: scale(1.02);
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Style Scatteredness via Offsets (maintaining 1/2 inch gap) */
.floating-placeholder.p1 {
    width: 180px;
    top: -8rem; /* Above the quote line */
    aspect-ratio: 449 / 681; /* Exact aspect ratio of IMG_0309.jpg */
    background-color: transparent;
}

.floating-placeholder.p2 {
    width: 150px;
    top: 4rem; /* Scattered down */
    background-color: transparent;
}

.floating-placeholder.p3 {
    width: 160px;
    top: -12rem; /* Higher up */
    background-color: transparent;
}

.floating-placeholder.p3 .artwork-img {
    transform: scale(1.6);
    transform-origin: 75% 60%;
}



@media (max-width: 1024px) {
    .images-right-cluster {
        display: none; /* Hide on smaller screens */
    }
    .quote-container {
        margin-left: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    .quote-layout-wrapper {
        justify-content: center;
    }
}

.artist-statement {
    font-family: inherit; /* Inter / Sans-serif */
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    font-weight: 400;
    font-style: italic;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Latin Modern Math', var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

/* Home Video Section (Reused as Gallery Hero) */
.home-video-section, .gallery-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    overflow: hidden;
}

.home-video-section {
    margin-top: 24rem; /* Reset to smaller default or keep as 0 if removed */
}

.gallery-hero {
    margin-top: 8rem; /* Move down so top is not hidden */
    height: 60vh; /* Adjust height for hero feel */
}

.full-screen-video, .gallery-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Left half */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to the left side of the overlay */
    padding-left: 12rem; /* Shifted further to the right */
    pointer-events: none;
}

.video-overlay-text {
    font-family: 'Original Script', cursive;
    font-size: clamp(6rem, 15vw, 10rem); /* Slightly shrunk */
    color: white;
    text-transform: none;
    letter-spacing: 0; /* Reset to original kerning */
    width: auto;
    text-align: left;
}

.project-page .video-overlay {
    align-items: flex-end;
    padding-bottom: 0;
    width: 100%;
    padding-left: 0;
    justify-content: center;
}

.project-page .video-overlay-text {
    font-size: clamp(3.5rem, 8vw, 5.5rem); /* Significantly smaller for project pages */
    transform: translateY(1.5rem);
    text-align: center;
}

/* Gallery Section Styles */
.gallery-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.art-card {
    text-align: left;
    transition: transform 0.4s ease;
}

.art-card:hover {
    transform: translateY(-8px);
}

.art-image-container {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    background-color: #ededed;
}

.art-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.art-card:hover .art-placeholder {
    transform: scale(1.05);
}

.color-1 { background-color: #B4C4B9; }
.color-2 { background-color: #7A90A4; }
.color-3 { background-color: #3C3C3C; }
.color-4 { background-color: #D3CABF; }
.color-5 { background-color: #A2B5B0; }

.art-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.art-edition {
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Footer Section */
.footer {
    padding: var(--spacing-lg);
    border-top: 1px solid #eaeaea;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.footer-brand {
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    font-weight: 500;
}

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

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

/* Responsive Design - Global & Home */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(247, 247, 247, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    .contact-page .nav-links {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .nav-links.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding: 7.5rem 1.5rem 0;
        margin-bottom: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-title {
        font-size: clamp(2.4rem, 11vw, 4.2rem);
        white-space: normal;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .hero-image-container {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        height: auto;
        width: 100%;
        max-width: 480px;
        margin: 2rem auto 0;
        mix-blend-mode: darken;
        pointer-events: auto;
    }

    .hero-image {
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        object-position: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }

    .nav-links a {
        font-size: 2.2rem;
    }
}
/* Contact Page Styles (Light Theme) */
.contact-page {
    background-color: #fff;
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-page .navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.contact-page .logo, 
.contact-page .nav-links a {
    color: #000;
}

.contact-page .nav-links a:hover {
    color: var(--color-accent);
}

.contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the hero text */
    padding: 6rem var(--spacing-lg) 10rem; /* Reduced top padding to move header up */
    margin-top: var(--spacing-lg);
}

.video-container {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 14rem; /* Reduced to 14rem to move text up one inch */
}

.video-text {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 550px; /* Increased to extend closer to video */
    align-self: flex-start;
    padding-right: 0; /* Removing padding to close the gap */
}

/* Removed .contact-hero-container since structure is flattened */

.video-placeholder {
    width: 45vw; /* A little less than half the screen */
    aspect-ratio: 16/9;
    object-fit: cover;
    opacity: 1;
    margin-left: 192px; /* Move to the right two inches */
}

.about-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--spacing-xl);
    padding: 12rem var(--spacing-lg);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-main .video-text {
    font-size: 1.05rem;
    line-height: 2; /* Increased to lengthen the text box vertically */
    color: var(--color-text-light);
}

.about-main .video-placeholder {
    width: 100%;
    margin-left: 0;
    opacity: 1;
    object-fit: cover;
}

.contact-info {
    align-self: flex-start; /* Move info back to the left */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 10rem; /* Matched to padding-bottom for equal spacing above and below */
    padding-left: 4rem; /* Shifted slightly to the right */
}

.contact-info-block h4 {
    font-size: 1rem; /* Enlarged from 0.8rem */
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #000;
}

.contact-info-block p, 
.contact-info-block a {
    display: block;
    margin-bottom: 0.4rem;
    color: #000;
}

.contact-note {
    margin-top: auto;
    font-size: 1rem; /* Enlarged from 0.75rem */
    color: #000; /* Changed from semi-transparent to solid black */
    max-width: 350px; /* Increased to accommodate larger text */
    line-height: 1.6;
}

.contact-hero-text {
    font-family: 'Latin Modern Math', var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 6.5rem); /* Reduced for a more refined look */
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
    color: #1B3022; /* Matched to home page hero title color */
    width: 100%;
    white-space: nowrap; /* Single line */
}



/* Responsive adjustments for About and Contact pages */
@media (max-width: 1024px) {
    .contact-hero-text {
        font-size: clamp(2.8rem, 9vw, 5.5rem);
    }

    .about-main {
        grid-template-columns: 1fr;
        padding: 8rem var(--spacing-lg) 6rem;
        gap: var(--spacing-lg);
    }

    /* Stack picture above text on narrower screens */
    .about-main .video-container {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .about-main .video-text {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
    }

    .about-main .video-placeholder {
        max-width: 450px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    /* About Page Mobile */
    .about-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 6.5rem 1.5rem 4rem;
        text-align: left;
    }

    .about-main .video-text {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-main .video-placeholder {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        display: block;
    }

    /* Contact Page Mobile */
    .contact-main {
        padding: 6.5rem 1.5rem 4rem;
        margin-top: 0;
        align-items: flex-start;
    }

    .contact-hero-text {
        font-size: clamp(2.4rem, 11vw, 4rem);
        white-space: normal;
        text-align: left;
        width: 100%;
    }

    .contact-info {
        margin-top: 2.5rem;
        padding-left: 0;
        align-self: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .contact-info-block {
        width: 100%;
    }

    .contact-note {
        margin-top: 1.5rem;
        max-width: 100%;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-text {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .about-main .video-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}
/* Gallery Page Styles */
.gallery-page {
    background-color: var(--color-bg); /* Matches unified background */
}

.gallery-purchase-notice {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    margin-bottom: 3rem; /* Matched to padding-top for vertical centering */
    line-height: 1.5;
}

.gallery-purchase-notice a {
    color: var(--color-text);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.gallery-purchase-notice a:hover {
    opacity: 0.7;
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 4px; /* Very narrow horizontal space */
    row-gap: 0; /* Managed by item and note margins to maintain spacing */
    padding: 3rem var(--spacing-lg) var(--spacing-xl); /* Balanced gap */
    background-color: var(--color-bg); /* Match page background */
    margin-top: 0;
    width: 100%;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 2/3; /* Original orientation to avoid cropping */
    overflow: hidden;
    margin-bottom: 1.5rem; /* Reduced to bring note closer to images */
}

.series-info-note {
    grid-column: 1 / -1;
    text-align: left; /* Aligned to the left */
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400; /* Unbolded */
    text-transform: none;
    color: #AAA; /* Even lighter grey */
    margin-bottom: 4.5rem; /* Increased to maintain total gap between series */
    line-height: 1;
}

.series-info-note a {
    color: #AAA;
    text-decoration: none;
}

.series-info-note a:hover {
    text-decoration: underline;
}

.gallery-item .art-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .art-placeholder {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gallery-full-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        height: auto;
    }

    .video-overlay {
        padding-left: 5rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        margin-top: 5rem;
        height: 42vh;
        min-height: 250px;
    }

    .video-overlay {
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        justify-content: center;
    }

    .video-overlay-text {
        font-size: clamp(3.2rem, 14vw, 5.5rem);
        text-align: center;
    }

    .gallery-purchase-notice {
        padding: 0 1rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .gallery-full-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 1rem 3rem;
        column-gap: 8px;
        row-gap: 8px;
    }

    /* Last image of a series sits alone in its row: center it */
    .gallery-item:has(+ .series-info-note) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 4px);
    }

    .series-info-note {
        margin-bottom: 3rem;
        padding: 0 0.25rem;
        text-align: center;
    }

    .back-link {
        top: 5.5rem;
        left: 1.25rem;
        font-size: 0.95rem;
    }

    .project-page .gallery-hero {
        margin-top: 7.5rem;
    }

    .project-page-content {
        padding: 2.5rem 1.25rem 4rem;
    }

    .statement-content {
        padding: 0;
    }

    .statement-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .statement-content .quote {
        font-size: 1.05rem;
        margin: 2rem 0;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-full-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:has(+ .series-info-note) {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem;
    }

    .video-overlay-text {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }
}

/* Project Page Styles */
.project-page-content {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    font-family: var(--font-main);
    color: var(--color-text-light);
    line-height: 1.8;
}

.statement-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem; /* Slightly larger for dedicated pages */
}

.statement-content .quote {
    font-style: italic;
    color: var(--color-text);
    border-left: 2px solid var(--color-accent);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0; /* Reduced from spacing-xl for a tighter look */
    font-size: 1.2rem;
}
