.project-heading h1,
.project-heading p {
    margin: 0;
}

.project-heading p {
    margin-top: 0px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch devices: neutralize hover-only UI */
@media (hover: none),
(pointer: coarse) {

    .more-gallery img {
        transition: none;
    }

    .more-gallery img:hover {
        width: 250px;
    }

    .more-production-image:hover .more-productions-title {
        opacity: 0;
    }
}

/* Tablet (≤ 1024px): keep 5 columns, tighten spacing */
@media (max-width: 1024px) {

    /* Give content breathing room from fixed menu button on the right */
    .project-content {
        padding-right: 40px;
    }

    .grid {
        grid-template-columns: repeat(6, 1fr);
        gap: clamp(6px, 2vw, 16px);
        padding: 24px 16px;
    }

    .grid>* {
        width: 100%;
    }

    /* On small desktop/tablet widths, reduce overlay title size so it fits */
    .more-productions-title {
        font-size: clamp(1rem, 1.9vw, 1.6rem);
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {

    /* Prevent horizontal scroll/gutter on iOS Safari due to 100vw quirks */
    html,
    body {
        overflow-x: hidden;
    }

    .project-page {
        padding: 24px 0;
    }

    .project-container {
        /* Keep a two-column grid on mobile so the label travels alongside content */
        display: grid;
        grid-template-columns: minmax(36px, 44px) 1fr;
        column-gap: 16px;
        row-gap: 12px;
        margin: 0 16px;
        align-items: start;
    }

    .project-content {
        gap: 8px;
        /* Extra padding so fixed menu button doesn't overlap content */
        padding-right: 42px;
    }

    .project-label {
        font-size: 2.4rem;
        line-height: 2.4rem;
        min-width: 44px;
        /* spacing controlled by grid column gap on mobile */
        margin-right: 0;
        position: sticky;
        top: 0;
    }

    .project-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        line-height: 1.1;
        /* tighter leading for wrapped titles on mobile */
    }

    .project-subtitle {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    /* Media blocks */
    .project-main-image img,
    .project-gallery img,
    .more-gallery img {
        border-radius: 2px;
    }

    .project-gallery {
        gap: 8px;
    }

    .gallery-row {
        flex-direction: column;
        gap: 8px;
    }

    .gallery-row img {
        flex: 1;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* More productions: column of tiles on mobile */
    .more-gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: visible;
    }

    .more-production-image {
        display: block;
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 6;
        position: relative;
        overflow: hidden;
    }

    .more-production-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .more-gallery img {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: cover;
        border-radius: 2px;
        transition: none !important;
    }

    .more-gallery img:hover {
        width: 100% !important;
        height: auto !important;
    }

    /* Title overlay always visible on mobile */
    .more-productions-title {
        position: absolute;
        font-weight: 200;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px;
        font-size: 1.5rem;
        line-height: 1.1;
        letter-spacing: 0.08em;
        opacity: 1;
        /* always visible on mobile */
        /* subtle readable overlay */
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.55),
                rgba(0, 0, 0, 0.25) 40%,
                rgba(0, 0, 0, 0) 70%);
    }

    /* Creative team: stack columns */
    .creative-team {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 32px;
    }

    .team-column {
        flex: 1 1 auto;
    }

    .creative-team p {
        font-size: 0.95rem;
    }

    .grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 16px 12px;
    }

    .grid>* {
        width: 100%;
        height: auto;
        aspect-ratio: 110 / 76;
    }







    .menu-btn {
        top: 16px;
        right: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 32px;
        height: 22px;
        padding: 0;
        gap: 0;
        z-index: 1002;
    }

    .menu-btn .menu-label {
        display: none;
    }

    .menu-btn .bar {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
        z-index: 1002;
    }

    .menu-btn.open {
        display: flex;
    }

    .menu-btn.open .bar:nth-child(2) {
        /* top bar */
        transform: translateY(9px) rotate(45deg);
    }

    .menu-btn.open .bar:nth-child(3) {
        /* middle bar */
        opacity: 0;
    }

    .menu-btn.open .bar:nth-child(4) {
        /* bottom bar */
        transform: translateY(-10px) rotate(-45deg);
    }

    .close-btn {
        display: none;
    }

    .drawer {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100dvh;
        /* use dynamic viewport height on mobile */
        background: #111;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(calc(-100% - env(safe-area-inset-top)));
        /* fully offscreen */
        transition: transform 0.35s ease-in-out;
        z-index: 1000;
        outline: none !important;
        /* avoid debug outline peeking */
    }

    .drawer.open {
        transform: translateY(0);
    }

    .drawer-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        font-size: 1rem;
        text-align: center;
        height: 100%;
        width: 100%;
    }

    .drawer-nav a {
        text-decoration: none;
        color: #fff;
        font-weight: 400;
        letter-spacing: 0.1em;
    }

    body.no-scroll {
        overflow: hidden;
        height: 100dvh;
        touch-action: none;
    }

    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-copyright {
        text-align: right;
    }
}