:root {
    --bg-color: #FFFFFF;
    --text-color: #000000;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --spacing-unit: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden; /* Prevent body scroll */
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 12px; /* Smaller base size like the reference */
    line-height: 1.3;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: white;
}

.custom-cursor::before {
    transform: rotate(45deg);
}

.custom-cursor::after {
    transform: rotate(-45deg);
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(1.5) rotate(90deg);
}

.custom-cursor.more-cursor {
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.more-cursor::before {
    display: none;
}

.custom-cursor.more-cursor::after {
    content: 'more';
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
    color: white;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure default cursor is hidden on all elements */
a, button, .nav-link, .project-card, .modal-close {
    cursor: none !important;
}

/* Image Loading State */
.image-wrapper {
    background-color: #f5f5f5; /* Light grey placeholder */
    position: relative;
    overflow: hidden;
}

.image-wrapper img,
.image-wrapper video {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.image-wrapper img.loaded,
.image-wrapper video.loaded {
    opacity: 1;
}

/* Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    pointer-events: none;
    z-index: 0;
}

.grid-lines .line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
}

.line-marker {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background-color: #000;
    transform: translate(-50%, -50%);
}

/* Navigation */
.site-nav {
    pointer-events: none;
}

.nav-left {
    position: fixed;
    top: 0;
    left: 0;
    padding: var(--spacing-unit);
    padding-top: 1rem;
    z-index: 1000;
    mix-blend-mode: difference;
}

.site-logo {
    pointer-events: auto;
    display: block;
    cursor: none !important;
}

.nav-right {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    padding: var(--spacing-unit);
    display: flex;
    gap: 2rem;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-link {
    pointer-events: auto;
    color: #fff; /* With difference mode, white works well against white bg (becomes black) and dark images */
    text-decoration: none;
    font-size: 12px;
    font-weight: 700; /* Bold like the reference headers */
    text-transform: uppercase; /* Keep uppercase */
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.intro-text {
    position: relative;
    align-self: flex-start;
    margin-top: 50vh;
    padding-top: 20px;
    margin-left: var(--spacing-unit); /* Align with Logo */
    margin-right: 40vw;
    z-index: 10;
    mix-blend-mode: difference;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
    flex-shrink: 0;
    /* Ensure visibility if blend mode fails */
    color: #fff; 
}

.intro-logo {
    pointer-events: auto;
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.intro-text p {
    color: #fff;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Mobile Swipe Animation */
.mobile-swipe-animation img {
    animation: swipe-loop 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    transform-origin: center bottom;
}

/* Vertical Masking */
.mask-vertical-15 img {
    clip-path: inset(15% 0 15% 0);
}

.mask-vertical-5 video {
    clip-path: inset(5% 0 5% 0);
}

.format-square {
    aspect-ratio: 1 / 1;
}

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

@keyframes swipe-loop {
    0%, 30% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: translateX(-40%) rotate(-5deg);
        opacity: 0;
    }
    45% {
        transform: translateX(30%) rotate(5deg);
        opacity: 0;
    }
    55% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

/* Main Content */
main {
    padding-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Horizontal Scroll Gallery */
.gallery-container {
    position: relative;
    flex: 1;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding-bottom: 8rem; /* Increased to clear footer */
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    align-items: center;
    /* Extra width to accommodate clones */
    width: max-content;
    /* will-change removed to fix mix-blend-mode context issue */
}

.project-card {
    position: relative;
    width: 22vw; /* Narrower cards like reference */
    height: auto; /* Let content define height */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* contain: paint layout; Removed to allow absolute elements to overflow */
    margin-right: 8vw; /* Add space back between projects */
    padding-right: 0;
    z-index: 5;
    transform: translateY(6vh); /* Push down to center image on grid line */
}

/* Staggered Layout */
.project-card.stagger-up {
    transform: translateY(-10vh);
}

.project-card.stagger-down {
    transform: translateY(10vh);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 3/4; /* Portrait aspect ratio */
    overflow: hidden;
    background-color: transparent;
    position: relative;
    margin-bottom: 1.5rem;
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    z-index: 2;
}

/* Base loading state for standard images */
.image-wrapper img:not(.slideshow-img),
.image-wrapper video {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.image-wrapper img.loaded:not(.slideshow-img),
.image-wrapper video.loaded {
    opacity: 1;
}

/* Specific slideshow logic */
.image-wrapper .slideshow-img {
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 1;
    will-change: opacity;
}

.image-wrapper .slideshow-img.active {
    opacity: 1;
    z-index: 2;
}

.project-card:hover .img-hover {
    opacity: 1;
}

.project-info {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px; /* Smaller technical font */
    color: var(--text-color);
    line-height: 1.4;
    font-family: 'Courier New', Courier, monospace; /* Technical look */
}

.project-description {
    font-family: var(--font-main);
    font-size: 0.8rem; /* Made smaller */
    line-height: 1.4;
    margin-top: 0.5rem;
    max-width: 100%;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-meta strong {
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 0.2rem;
}

/* About Card Styles */
.about-card {
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: 50vh;
    padding-top: 20px;
    background: transparent;
    transform: none !important; /* Override default transform */
    width: 30vw; /* Wider text */
    margin-right: 2vw; /* Closer together */
}

.about-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    font-size: 1.2rem;
    line-height: 1.4;
    max-width: 100%;
    position: relative; /* Context for absolute headline */
    overflow: visible;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.about-connect-link {
    align-self: flex-end;
    margin-top: 0.5rem;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    letter-spacing: 0.02em; /* Match nav-link spacing */
}

.about-connect-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.about-connect-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.about-headline {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    display: block;
    overflow: visible;
    z-index: 100; /* Ensure visibility */
    width: 100px; /* Ensure logical width */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.about-headline-only {
    width: 200px; /* Force smaller width for headline only card */
}

/* About Image Styles */
.about-image-card {
    transform: translateY(4rem) !important;
    margin-right: 2vw;
}

.about-image-card .image-wrapper {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 12px;
    align-items: flex-start; /* Left align to match reference */
    font-weight: 700; /* Bold contact info like "Contact:" in reference */
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: none;
    width: fit-content;
    transition: opacity 0.3s ease;
    font-weight: 400; /* Keep links regular? Or bold? Reference has mixed. Let's keep regular for contrast */
}

.contact-info a:hover {
    opacity: 0.6;
    border-bottom: none;
}

/* Animation Classes */
.project-card .image-wrapper,
.project-card .project-info,
.site-logo,
.nav-link {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.intro-text,
.site-logo,
.nav-link {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.project-card.visible .image-wrapper,
.project-card.visible .project-info,
.intro-text.visible,
.site-nav.visible .site-logo,
.site-nav.visible .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.project-card.visible .project-info {
    transition-delay: 0.1s;
}

/* Stagger header animations */
.site-nav.visible .nav-link:nth-child(1) {
    transition-delay: 0.1s;
}
.site-nav.visible .nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

/* Footer */
.site-footer {
    display: flex; /* Visible now */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-unit);
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1000;
    pointer-events: none;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Ensure footer links are always visible and black */
.site-footer .nav-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
    color: var(--text-color) !important;
}

.site-footer .nav-link::after {
    background-color: var(--text-color);
}

.footer-left, .footer-right {
    pointer-events: auto;
    color: var(--text-color);
    mix-blend-mode: normal;
    display: flex;
    gap: 2rem;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--spacing-unit);
    text-align: center;
    pointer-events: auto;
    mix-blend-mode: normal;
    z-index: 1001; /* Ensure on top */
}


/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Transparent to show wipe effect over content */
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Closing transition: Wait for wipes (1s) before hiding container */
    transition: visibility 0s linear 1s, opacity 0s linear 1s;
    display: flex;
    flex-direction: column;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Opening transition: Appear immediately */
    transition: opacity 0.1s linear;
}

.modal-close {
    position: fixed;
    top: var(--spacing-unit);
    right: var(--spacing-unit);
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 2002;
    color: #fff; /* White with difference mode ensures visibility on all backgrounds */
    mix-blend-mode: difference;
    opacity: 0;
    /* Closing transition: Fade out quickly */
    transition: opacity 0.3s ease;
}

.modal-next {
    position: fixed;
    bottom: var(--spacing-unit);
    right: var(--spacing-unit);
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer; /* Will be overridden to none by script but let's keep it clean */
    z-index: 2002;
    color: #fff;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active .modal-close,
.project-modal.active .modal-next {
    opacity: 1;
    /* Opening transition: Fade in after wipes */
    transition: opacity 0.5s ease 0.8s;
}

.modal-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 100%;
    padding: 0;
}

.modal-header {
    width: 50%;
    height: 100%;
    padding: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    
    /* Wipe Effect - Reveal from Bottom */
    opacity: 1;
    transform: none;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.project-modal.active .modal-header {
    clip-path: inset(0 0 0 0);
}

.modal-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    text-transform: none;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-modal.active .modal-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.modal-category {
    font-family: var(--font-main);
    font-size: 12px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-modal.active .modal-category {
    opacity: 0.6;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.modal-role-wrapper {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-modal.active .modal-role-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.modal-label {
    font-family: var(--font-main);
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.modal-meta-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-modal.active .modal-meta-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.modal-status {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 100px;
    opacity: 0.6;
}

.modal-category {
    margin-bottom: 0; /* Reset margin since it's in a flex row */
    opacity: 1; /* Reset opacity handling since parent row handles it */
    transform: none;
    transition: none;
}

.modal-role-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-role {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    opacity: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    margin: 0;
}

.modal-description {
    font-family: var(--font-main);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-modal.active .modal-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.modal-gallery {
    width: 50%;
    height: 100%;
    overflow: hidden; /* Custom scroll */
    position: relative;
    background-color: #fff;

    /* Wipe Effect - Reveal from Top */
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.modal-gallery-track {
    display: flex;
    flex-direction: column;
    padding: 10vh 4vw;
    gap: 2vh;
    width: 100%;
    will-change: transform;
}


.project-modal.active .modal-gallery {
    clip-path: inset(0 0 0 0);
}

.modal-image-wrapper {
    position: relative;
    width: 55%; /* Adjusted for 50% column: 55% of 50vw ≈ 27.5vw */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.modal-image-wrapper.size-small { width: 40%; }
.modal-image-wrapper.size-medium { width: 55%; }
.modal-image-wrapper.size-large { width: 75%; }
.modal-image-wrapper.size-full { width: 90%; }

.modal-image-wrapper.reveal {
    opacity: 1;
    transform: translateY(0);
}

.modal-image-wrapper:nth-child(odd) {
    align-self: flex-start;
}

.modal-image-wrapper:nth-child(even) {
    align-self: flex-end;
    margin-top: 2vh;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    display: block; /* Remove baseline space */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}



.modal-gallery::-webkit-scrollbar {
    display: none;
}

.modal-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Scribble Circle Styles */
.circled-word {
    position: relative;
    display: inline-block;
}

.scribble-rect {
    position: absolute;
    top: -15%;
    left: -5%;
    width: 110%;
    height: 130%;
    pointer-events: none;
    overflow: visible;
    z-index: -1;
}

.scribble-rect path {
    fill: none;
    stroke: currentColor; /* Use text color */
    stroke-width: 0.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.8;
}


.final-spacer {
    margin-right: 20vw; /* Reduced gap before loop restarts */
}

.project-card.extra-space {
    margin-right: 25vw; /* Increased space before About section */
}

/* Ensure wrappers are above the line */
.modal-image-wrapper {
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card {
        width: 80vw;
        height: 50vh;
    }

    /* Stack Modal on Mobile */
    .modal-content {
        flex-direction: column;
    }

    .modal-header {
        width: 100%;
        height: auto;
        padding: 2rem;
        padding-top: 4rem; /* Space for close button */
        flex-shrink: 0;
    }

    .modal-gallery {
        width: 100%;
        height: auto;
        overflow: visible;
        padding-bottom: 4rem;
    }

    .modal-gallery-track {
        padding: 2rem 1rem;
    }

    .modal-image-wrapper {
        width: 100% !important; /* Force full width on mobile */
        margin-top: 1rem !important;
    }
    
    /* Adjust Typography for Mobile */
    body {
        font-size: 14px; /* Slightly larger base for readability on small screens */
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    .intro-text {
        margin-right: 10vw;
        margin-top: 40vh;
    }
    
    .nav-right {
        display: none; /* Hide top nav links on mobile if they don't fit, or adjust */
    }
    
    /* Make intro text wrap */
    .intro-text p {
        white-space: normal;
    }
    
    .about-card {
        width: 80vw;
        margin-right: 10vw;
    }
    
    .about-headline-only {
        width: auto;
    }
}

/* Large Screens (Desktop / iMacs) */
@media (min-width: 1440px) {
    body {
        font-size: 13px; /* Subtle bump for standard desktops */
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 15px; /* Larger text for large displays */
    }
    
    .project-card {
        width: 18vw; /* Slightly reduce relative width so images don't become overwhelmingly huge */
        margin-right: 6vw;
    }
    
    .project-meta strong {
        font-size: 1.6rem;
    }

    .modal-title {
        font-size: 2rem;
    }
    
    .modal-gallery-track {
        width: 80%; /* Constrain width within the half-panel for cleaner read */
        margin: 0 auto;
    }
}

@media (min-width: 2560px) {
    body {
        font-size: 18px; /* High-DPI / 27"+ screens */
    }
    
    .project-meta strong {
        font-size: 2rem;
    }
}
