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

body {
    padding: 0;
    background-color: #eee8d9;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Vogue x David Jones specific body styles */
body:has(.vogue-dj-hero) {
    background-color: #ffffff;
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-width: 100%;
}

/* Full width wrapper for grey background */
.vogue-dj-wrapper {
    background-color: #f0f0f0;
    min-height: 100vh;
    width: 100%;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #eee8d9;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Vogue x David Jones specific navbar styles */

/* Add navbar hidden state */
.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-inner {
    max-width: 1400px;
    width: 86%;
    margin: 0 auto;
    padding: 40px 0px 0px 0px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.navbar-brand {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    display: block;
    opacity: 1;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #8a9ee6;
}

/* Disable clicking on index page only */
body:has(#projectGrid) .navbar-brand {
    pointer-events: none;
    cursor: default;
}

body:has(#projectGrid) .navbar-brand:hover {
    color: #000;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar-nav a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: #8a9ee6;
}

.navbar-nav a.active {
    color: #000;
    font-weight: normal;
}

/* Remove the override that was preventing hover on project pages */

/* Style "The Work" link on index page only */
body:has(#projectGrid) .navbar-nav a[href="index.html"] {
    text-decoration: underline;
    text-underline-offset: 3px;
    pointer-events: none;
    cursor: default;
}

/* Prevent hover effect on index page */
body:has(#projectGrid) .navbar-nav a[href="index.html"]:hover {
    color: #000;
}

/* Container adjusted for fixed navbar */
.container {
    width: 100%;
    padding-top: 90px;
}

/* Vogue x David Jones specific navbar styles */
body:has(.vogue-dj-wrapper) .navbar {
    background-color: #f0f0f0;
}

/* Vogue x David Jones specific container styles */
.vogue-dj-wrapper .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 10rem; /* More space above headline and story */
}

/* Wrapper for centering content */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Row containers */
.full-width-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.half-width-row {
    width: 86%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto;
}

/* Project Item Styles */
.project-item {
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
}

a.project-item {
    color: inherit;
}

.project-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(152, 172, 244, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.project-item:hover::after {
    background-color: rgba(152, 172, 244, 0.5);
}

/* Project image */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Full-width specific */
.full-width {
    position: relative;
    overflow: hidden;
    background-color: #000;
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 28 / 9;
    border-radius: 12px;
}

/* Half-width projects with 16:9 aspect ratio */
.half-width {
    display: flex;
    flex-direction: column;
}

.half-width .image-container {
    position: relative;  
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.half-width::after {
    bottom: auto;
    height: 0;
}

.half-width .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(152, 172, 244, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.half-width:hover .image-container::after {
    background-color: rgba(152, 172, 244, 0.5);
}

.half-width .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full-width projects grid behavior */
.full-width {
    grid-column: 1 / -1;
}

/* Project Info Styling */
.project-info {
    padding: 20px 0;
    text-align: center;
}

/* Half-width projects have left-aligned titles */
.half-width .project-info {
    text-align: left;
}

.project-title {
    font-size: 32px;
    font-weight: 300;
    color: black;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: white;
}

/* Full-width project overlay text */
.full-width .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 40px 40px 35px;
    background: rgba(0,0,0,0.2);
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.full-width .project-overlay .project-title {
    font-size: 32px;
    font-weight: 300;
    color: white;
    margin-bottom: 8px;
}

.full-width .project-overlay .project-link {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 400; 
}

.full-width .project-overlay .project-link:hover {
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-inner {
        width: 100%;
        padding: 40px 20px 0px 20px;
    }
    
    .footer {
        width: 100%;
        padding: 80px 20px 40px 20px;
    }

    .navbar-brand {
        font-size: 14px;
    }

    .navbar-nav {
        gap: 20px;
    }

    .navbar-nav a {
        font-size: 14px;
    }

    .container {
        padding-top: 110px;
    }

    .half-width-row {
        width: calc(100% - 10px);
        grid-template-columns: 1fr;
        margin: 0 5px;
    }
    
    .full-width {
        aspect-ratio: 16 / 9;
        width: calc(100% - 10px);
        margin: 0 5px;
        border-radius: 8px;
    }

    .full-width .project-overlay {
        padding: 24px;
        background: rgba(0,0,0,0.5);
    }

    .full-width .project-overlay .project-title {
        font-size: 24px;
    }

    /* Make half-width projects behave like full-width on mobile */
    .half-width {
        position: relative;
        aspect-ratio: 16 / 9;
    }

    .half-width .image-container {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .half-width .project-info {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 24px;
        background: rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        border-radius: 8px;
    }

    .half-width .project-title {
        color: white;
        font-size: 24px;
        font-weight: 300;
        margin-bottom: 8px;
    }
    
    /* Home page mobile font size reductions */
    body:has(#projectGrid) .full-width .project-overlay .project-title {
        font-size: 19px; /* 24px * 0.8 */
    }
    
    body:has(#projectGrid) .half-width .project-title {
        font-size: 19px; /* 24px * 0.8 */
    }
    
    body:has(#projectGrid) .half-width .project-link {
        font-size: 13px;
        font-weight: 400;
    }

    .half-width .project-link {
        color: rgba(255,255,255,0.9);
        font-weight: 500;
    }

    .half-width .project-link:hover {
        color: white;
    }
}

/* Footer */
.footer {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
    padding: 80px 0 40px 0;
}

.about-page .footer {
    background-color: #eee8d9;
    padding-top: 0;
}

.footer p {
    margin: 0;
    color: #666;
    font-size: 10px;
}

/* About Page Styles */
.about-page {
    background-color: #eee8d9;
}

.about-page .container {
    background-color: #eee8d9;
    min-height: calc(100vh - 80px);
}

.about-wrapper {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-container {
    position: sticky;
    top: 120px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.about-text {
    max-width: 700px;
}

.about-title {
    font-size: 36px;
    font-weight: 400;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-links {
    margin-top: 40px;
}

.about-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.about-link:hover {
    color: white;
}

/* About Page Mobile Responsiveness */
@media (max-width: 768px) {
    .about-wrapper {
        width: 100%;
        padding: 40px 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-container {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .about-paragraph {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Project title hover effects */
.project-item:hover .project-title {
    color: #8a9ee6;
}

.full-width:hover .project-overlay .project-title {
    color: #8a9ee6;
}

/* For half-width project links */
.project-item:hover .project-link {
    color: #8a9ee6;
}

/* For full-width project links */
.full-width:hover .project-overlay .project-link {
    color: #8a9ee6;
}

/* Home page specific font size reductions (80% of original) - desktop only */
@media (min-width: 769px) {
    body:has(#projectGrid) .project-title {
        font-size: 26px;
    }

    body:has(#projectGrid) .project-link {
        font-size: 13px;
    }

    body:has(#projectGrid) .full-width .project-overlay .project-title {
        font-size: 26px;
    }

    body:has(#projectGrid) .full-width .project-overlay .project-link {
        font-size: 13px;
    }
}

/* Reduce spacing under half-width projects on home page - desktop only */
@media (min-width: 769px) {
    body:has(#projectGrid) .half-width .project-info {
        padding: 20px 0 0 0;
    }
}

/* Play cursor animation */
@keyframes playFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.play-cursor-overlay {
    animation: playFade 0.5s ease-in-out;
}

/* Red play cursor for Belvedere page only */
.belvedere-page .play-cursor-overlay {
    cursor: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjkwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjM0NSAzMDcgNjAgMzAiPgogIDxnPgogICAgPHBhdGggZmlsbD0iI2U0NDE1MyIgZD0iTTM2NS44LDMxNy40Yy42LDAsMS4xLjEsMS42LjNzLjguNSwxLC45LjQuOC40LDEuNC0uMSwxLS40LDEuNC0uNi43LTEsLjktMSwuMy0xLjYuM2gtMS43djIuOGgtMS43di03LjloMy4zWk0zNjUuNSwzMjEuMmMuNSwwLC45LS4xLDEuMS0uMy4yLS4yLjQtLjUuNC0uOXMtLjEtLjctLjQtLjljLS4yLS4yLS42LS4zLTEuMS0uM2gtMS40djIuNWgxLjRaIi8+CiAgICA8cGF0aCBmaWxsPSIjZTQ0MTUzIiBkPSJNMzcxLjEsMzE2Ljd2Ni44YzAsLjMsMCwuNS4xLjYsMCwuMS4zLjIuNS4ycy4yLDAsLjMsMGMwLDAsLjIsMCwuMywwdjEuMWMtLjMsMC0uNC4xLS43LjJzLS40LDAtLjYsMGMtLjYsMC0xLS4xLTEuMy0uNC0uMy0uMy0uNC0uNy0uNC0xLjR2LTdoMS42WiIvPgogICAgPHBhdGggZmlsbD0iI2U0NDE1MyIgZD0iTTM3Ni43LDMyMS41YzAtLjMsMC0uNi0uMy0uOC0uMi0uMi0uNS0uMy0uOC0uM3MtLjYsMC0uOC4yYy0uMi4yLS40LjQtLjUuOGwtMS40LS40Yy4xLS41LjQtMSwuOS0xLjMuNS0uMywxLjEtLjUsMS45LS41czEsMCwxLjQuMi43LjQuOS43LjMuNy4zLDEuMnYyLjRjMCwuMy4xLjUuNC41cy4zLDAsLjQsMHYxYy0uMy4xLS42LjItLjkuMnMtLjUsMC0uOC0uMWMtLjIsMC0uNC0uMi0uNS0uNC0uMS0uMi0uMi0uNC0uMi0uN2gwcy4zLDAsLjMsMGMwLC4zLS4yLjYtLjQuOHMtLjUuNC0uOC41Yy0uMy4xLS42LjItMSwuMnMtLjgsMC0xLjEtLjJjLS4zLS4xLS41LS4zLS43LS41LS4yLS4yLS4yLS41LS4yLS45cy4xLS44LjQtMS4xLjctLjUsMS4yLS42bDIuMy0uNXYxcy0xLjUuMy0xLjUuM2MtLjMsMC0uNS4xLS42LjItLjEsMC0uMi4yLS4yLjVzMCwuNC4yLjVjLjEuMS4zLjIuNS4ycy4zLDAsLjUsMCwuMy0uMS40LS4yLjItLjIuMy0uNGMwLS4yLjEtLjMuMS0uNnYtMS42WiIvPgogICAgPHBhdGggZmlsbD0iI2U0NDE1MyIgZD0iTTM4NS42LDMxOS4zbC0yLjQsNi40Yy0uMi41LS40LDEtLjYsMS4zcy0uNS42LS44LjctLjcuMi0xLjEuMnMtLjYsMC0uOS0uMWMtLjMsMC0uNS0uMi0uNy0uM2wuMy0xLjJjLjIuMS4zLjIuNS4zLjIsMCwuNCwwLC42LDBzLjQsMCwuNi0uMWMuMiwwLC4zLS4zLjQtLjZsLjItLjUtLjctMS42LTEuOC00LjVoMS44bDEuMSwzLjYuMywxLjIuNC0xLjMsMS4xLTMuNWgxLjdaIi8+CiAgPC9nPgogIDxwYXRoIGZpbGw9IiNlNDQxNTMiIGQ9Ik0zOTcuNywzMjFsLTEwLTQuNmMtLjItLjEtLjUsMC0uNS4zdjkuMWMwLC4zLjMuNC41LjNsMTAtNC42Yy4zLS4xLjMtLjUsMC0uNloiLz4KPC9zdmc+') 30 45, pointer !important;
}


/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for project pages */
.project-hero.fade-in {
    transition-delay: 0s;
}

.project-headline.fade-in,
.project-body.fade-in {
    transition-delay: 0.2s;
}

.project-images .fade-in:nth-child(1) {
    transition-delay: 0.4s;
}

.project-images .fade-in:nth-child(2) {
    transition-delay: 0.5s;
}

.project-images .fade-in:nth-child(3) {
    transition-delay: 0.6s;
}

.project-images .fade-in:nth-child(4) {
    transition-delay: 0.7s;
}

.project-images .fade-in:nth-child(5) {
    transition-delay: 0.8s;
}

.half-width-row .project-item:nth-child(1) {
    transition-delay: 0.1s;
}

.half-width-row .project-item:nth-child(2) {
    transition-delay: 0.2s;
}

/* About Page Styles */
.about-section {
    width: 86%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    padding: 60px 0 80px 0;
    align-items: start;
}

/* About page content background - same as navbar */
body:has(.about-section) .container {
    background-color: #eee8d9;
    min-height: calc(100vh - 160px);
    margin-top: 80px;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.about-text-column {
    padding-top: 0;
    margin-top: -80px;
}

.about-text-column h1 {
    font-size: 32px;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 32px;
    color: #666;
}

.about-text-column p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
    max-width: 700px;
}

.about-text-column p a {
    color: #666;
    text-decoration: none;
    font-weight: normal;
    padding-bottom: 2px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.about-text-column p a:hover {
    color: #8a9ee6;
    border-bottom-color: #8a9ee6;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    padding-bottom: 2px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #8a9ee6;
    border-bottom-color: #8a9ee6;
}

/* About Page Medium Screen Responsiveness */
@media (max-width: 1024px) {
    .about-section {
        grid-template-columns: 250px 1fr;
        gap: 50px;
    }
    
    .about-text-column {
        margin-top: 0;
    }
}

/* About Page Mobile Responsiveness */
@media (max-width: 768px) {
    .about-section {
        width: 100%;
        padding: 40px 20px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-column {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-photo {
        position: static;
    }
    
    .about-text-column {
        margin-top: 0;
    }

    .about-text-column h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .about-text-column p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Project Template Styles */
.project-hero {
    width: 86%;
    max-width: 1400px;
    margin: 80px auto 0;
    aspect-ratio: 28 / 9;
    overflow: hidden;
    background-color: #000;
    position: relative;
    border-radius: 12px;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video overlay for project hero */
.project-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.project-hero-video.loaded {
    opacity: 1;
}

.project-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

/* Home page video overlay */
.home-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.home-video-overlay.loaded {
    opacity: 1;
}

.home-video-overlay iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

.project-content {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 80px 0;
    margin-top: -40px;
}

.project-headline {
    font-size: 36px;
    font-weight: 300;
    color: black;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.project-body {
    max-width: 700px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.project-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
}

/* Image captions - same style as body text */
.image-caption {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-top: 16px;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.project-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* Different image sizes */
.project-image-full {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.project-video-full {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Force the video's container to have rounded corners and clip its contents */
.project-video-full > div {
    border-radius: 8px !important;
    overflow: hidden !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Also force the overlay to have the same rounded corners */
.play-cursor-overlay {
    border-radius: 8px !important;
}

.project-video-full iframe {
    border-radius: 8px;
    cursor: auto;
}

.project-image-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-image-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Ensure equal height images in grid */
.project-image-half {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1500 / 1053; /* Match sonic-day.jpg aspect ratio */
}

.project-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-image-medium {
    width: 70%;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
}

.project-image-small {
    width: 50%;
    max-width: 600px;
}

.project-image-full img,
.project-image-medium img {
    border-radius: 8px !important;
}

/* Ensure Tiffany page images have rounded corners */
.tiffany-page .project-image-full img,
.tiffany-page .project-image-medium img {
    border-radius: 8px !important;
}

/* Mobile responsiveness for project template */
@media (max-width: 768px) {
    .project-hero {
        aspect-ratio: 16 / 9;
        width: 100%;
        border-radius: 0;
        margin: 80px 0 0;
    }
    
    /* Visit Victoria hero on mobile */
    .visit-victoria-page .project-hero {
        margin-top: 90px;
    }
    
    /* HP Spectre hero on mobile */
    .hp-spectre-page .project-hero {
        margin-top: 100px;
    }
    
    .project-content {
        width: 100%;
        padding: 40px 20px;
    }
    
    .project-headline {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .project-body p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .project-images {
        gap: 30px;
    }
    
    .project-image-row,
    .project-image-row.three-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-image-medium,
    .project-image-small {
        width: 100%;
    }
}

/* Project Navigation */
.project-nav {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.nav-links {
    text-align: right;
}

.project-nav a,
.nav-disabled {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.nav-disabled {
    color: #ccc;
    cursor: default;
}

.project-nav a:hover {
    color: #8a9ee6;
}

.nav-divider {
    color: #ccc;
    margin: 0 5px;
}

.copyright {
    color: #666;
    font-size: 10px;
}

@media (max-width: 768px) {
    .project-nav {
        width: 100%;
        padding: 40px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .copyright {
        order: 2;
    }
    
    .nav-links {
        order: 1;
        text-align: center;
    }
}

/* Yalumba page specific video sizing */
.yalumba-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* Reel page specific styling */
.reel-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reel-page .navbar {
    background-color: black;
}

.reel-page .navbar-brand,
.reel-page .navbar-nav a {
    color: #999;
}

.reel-page .navbar-brand:hover,
.reel-page .navbar-nav a:hover {
    color: #fff;
}

.reel-page .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reel-page .project-content {
    padding-top: 120px;
    flex: 1;
}

.reel-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

.reel-page .project-nav {
    margin-top: auto;
    padding-bottom: 40px;
}

/* Tiffany video sizing - same as Yalumba */
.tiffany-video {
    width: 80%;
    max-width: 900px;
}

/* Stella Artois video sizing - same as Yalumba */
.stella-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* David Jones Opening Act video sizing - same as Yalumba */
.david-jones-opening-act-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* Sonic video sizing - same as Yalumba */
.sonic-video {
    width: 80%;
    max-width: 900px;
}

/* Max Factor video sizing - same as Yalumba */
.max-factor-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* David Jones Art of Living video sizing - same as Yalumba */
.david-jones-art-of-living-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* Belvedere video sizing - same as Yalumba */
.belvedere-page .project-video-full {
    width: 80%;
    max-width: 900px;
}

/* British Paints video sizing - smaller than Yalumba */
.british-paints-page .project-video-full {
    width: 51%;
    max-width: 576px;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* British Paints video corner fix */
.british-paints-page .project-video-full > div {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* British Paints body copy margin adjustment */
.british-paints-page .project-body {
    margin-bottom: 50px;
}

/* Belvedere image sizing - same as video */
.belvedere-page .project-image-medium {
    width: 80%;
    max-width: 900px;
}

/* Sonic stacked images - same width as video */
.sonic-images-stacked {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

/* Glenfiddich Mavericks section */
.mavericks-section {
    width: 100%;
    background-color: #f5f5f5;
    padding: 80px 0;
    margin-top: 0px;
}

.mavericks-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.maverick-videos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.project-video-medium {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.project-video-medium iframe {
    border-radius: 8px;
}

.video-caption {
    text-align: left;
    margin-top: 15px;
    font-size: 16px;
    color: white;
    font-weight: 400;
}


.mavericks-content .project-image-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.project-image-third {
    max-width: 280px;
    flex: 0 0 auto;
}

.project-image-third img {
    width: 100%;
    height: auto;
    display: block;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {opacity: 0; transform: scale(0.1);}
    to {opacity: 1; transform: scale(1);}
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Modal navigation arrows */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px 12px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Mobile responsive for mavericks section */
@media only screen and (max-width: 768px) {
    .mavericks-content .project-image-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .project-image-third {
        max-width: 300px;
    }
}

/* Mobile responsive modal */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
    
    .modal-prev,
    .modal-next {
        padding: 12px 8px;
        font-size: 20px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

/* Tiffany hero image alignment */
.tiffany-page .project-hero-image {
    object-position: bottom;
}

/* Nivea hero image alignment */
.nivea-page .project-hero-image {
    object-position: center;
}

/* Visit Victoria hero image alignment */
.visit-victoria-page .project-hero-image {
    object-position: bottom;
}
/* Visit Victoria hero section customization */
.visit-victoria-page .project-hero {
    margin-top: 90px;
}
/* Disable transform animation on Visit Victoria hero to prevent glitch */
.visit-victoria-page .project-hero.fade-in {
    transform: translateY(0);
}

/* Yalumba hero image alignment */
.yalumba-page .project-hero-image {
    object-position: top;
}

/* David Jones Art of Living hero image alignment */
.david-jones-art-of-living-page .project-hero-image {
    object-position: center top -80px;
    height: calc(100% + 80px);
}

/* David Jones Art of Living video corner fix */
.david-jones-art-of-living-page .project-video-full > div {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border-radius: 8px !important;
    overflow: hidden !important;
}
/* HP Spectre hero section positioning */
.hp-spectre-page .project-hero {
    margin-top: 120px;
}

/* Visit Victoria consistent image and video widths */
.visit-victoria-page .project-image-medium,
.visit-victoria-page .project-video-medium {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.visit-victoria-page .project-image-medium img {
    width: 100%;
    height: auto;
    display: block;
}

.visit-victoria-page .project-video-medium {
    border-radius: 8px;
    overflow: hidden;
}

.visit-victoria-page .project-video-medium iframe {
    border-radius: 8px;
}

/* Roam section on Yalumba page */
.roam-section {
    width: 100%;
    background-color: #eee8d9;
    padding: 80px 0;
    margin-top: 60px;
}

/* --- Vogue x David Jones Project Styles --- */

/* Hero Section: Text on left, Image on right */
.vogue-dj-hero {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 4rem; /* Space between text and image */
    margin-bottom: 5rem;
}

.vogue-dj-hero-text {
    flex: 1; /* Takes up 1 part of the available space */
    min-width: 300px;
}

.vogue-dj-hero-text h1 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: 0;
    color: black;
}

.vogue-dj-hero-text p {
    max-width: 50ch; /* Limit text width for readability */
    font-size: 0.9rem;
    font-weight: 300;
    color: black;
}

.vogue-dj-hero-image {
    flex: 0.5; /* Reduced from 1 to 0.5 to make it 50% smaller */
}

.vogue-dj-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Section */
.vogue-dj-video {
    max-width: 900px; /* Limit video width */
    margin: 5rem auto; /* Center it */
}

.vogue-dj-video iframe {
    border-radius: 12px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Image Collage */
.vogue-dj-collage {
    max-width: 900px;
    margin: 0 auto; /* Center the collage container */
}

/* Base styling for each row in the collage */
.vogue-dj-section {
    display: flex;
    justify-content: space-between; /* Pushes items to the edges */
    align-items: center; /* Vertically align items in the center */
    margin-bottom: 10rem; /* Much more vertical space between rows */
    gap: 6rem; /* Much more spacing between images */
    padding: 0 30px; /* Move small images 30px closer to center */
}

/* Individual image items within a row */
.vogue-dj-item img {
    max-width: 100%;
    display: block;
}

/* --- Size Modifiers for Collage Items --- */
.vogue-dj-item.large { flex-basis: 55%; }
.vogue-dj-item.small { flex-basis: 25%; }

/* Single item centering */
.vogue-dj-section:has(.vogue-dj-item:only-child) {
    justify-content: center;
}

/* Side fade animations for collage items */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 100;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: 100;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: opacity 0.3s ease;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.lightbox.closing {
    animation: lightboxFadeOut 0.3s ease;
}

/* Make collage images clickable */
.vogue-dj-item img,
.glenfiddich-collage img {
    cursor: pointer;
    transition: transform 0.3s ease;
}


/* --- Responsive Styles for Mobile --- */
@media (max-width: 768px) {
    /* Stack hero section on mobile */
    .vogue-dj-hero {
        flex-direction: column;
        gap: 2rem;
    }

    /* Stack collage items on mobile */
    .vogue-dj-section {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    /* Reset all positional modifiers on mobile */
    .vogue-dj-section.offset-left,
    .vogue-dj-section.offset-right {
        margin-left: 0;
        margin-right: 0;
    }

    .vogue-dj-item.push-up,
    .vogue-dj-item.push-down {
        transform: translateY(0);
    }
}

.roam-content {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roam-image {
    width: 70%;
    max-width: 500px;
    height: auto;
    margin-bottom: 24px;
}

/* =================================================================== */
/* CSS-ONLY PATCH FOR DAVID JONES PAGE VIDEOS
/* This overrides the incorrect size/shape created by script.js
/* =================================================================== */


