/* --- Fix for Sticky Header Overlap --- */
.pt-header {
    /* Adjust this value based on your actual header height */
    padding-top: 120px;
}

#project-detail-template {
    --text-main: #121212;
    --text-soft: #666666;
    --accent-bg: #f9f9f9;
    --border-soft: #e5e5e5;

    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: #ffffff;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
    /* Ensures content stays behind dropdowns but above background */
}

/* --- Typography Fixes --- */
.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.project-breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

/* .summary-item h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #888;
} */

.summary-item p {
    margin: 0;
    font-weight: 500;
}

.summary-container {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 20px;              /* Gap between items on mobile */
}

.project-main-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    /* Responsive sizing */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-top: 10px;
    margin-bottom: 50px;
}
.project-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem); /* Scales smoothly from mobile to desktop */
    font-weight: 400;
    color: var(--text-soft); /* Using your existing soft grey variable */
    line-height: 1.4;
    max-width: 700px; /* Prevents the text from stretching too wide on large screens */
    margin-top: -20px; /* Pulls it slightly closer to the main title */
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

/* --- Narrative Rows & Zig-Zag --- */
.project-row {
    padding: 50px 0;
}

.project-media-box {
    border-radius: 20px;
    overflow: hidden;
    background: var(--accent-bg);
    line-height: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

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

/* --- Responsive Spacing Fixes --- */

@media (max-width: 991px) {
    .pt-header {
        padding-top: 100px;
        /* Smaller header on tablets */
    }

    .project-row {
        padding: 25px 0;
    }
}

@media (max-width: 767px) {
    .pt-header {
        padding-top: 90px;
        /* Header height on mobile */
    }

    .project-main-title {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }

    .project-subtitle {
        margin-top: 10px; /* Adjust spacing for mobile */
        margin-bottom: 30px;
        line-height: 1.3;
    }

    /* Force Image-First on Mobile */
    .project-row.flex-md-row-reverse {
        flex-direction: column !important;
    }

    .project-media-box {
        margin-bottom: 30px;
    }
}

@media (min-width: 768px) {
    .summary-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }

    .summary-item {
        flex: 0 1 auto;
        min-width: 200px;
        text-align: center;
    }

    .summary-item:nth-child(2) {
        text-align: center;
    }

    .summary-item:nth-child(3) {
        text-align: center;
    }
    .project-summary-strip{
        padding: 5px;
    }
}