/* ===================================
   Project Detail Pages Shared Styles
   =================================== */

#projectTitle {
    font-size: 1.2vw;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4vw;
    margin-top: 3vw;
}

/* Flexible Grid System for Projects */
#projectGrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5vw;
    row-gap: 2vw;
    margin: 2vw;
    margin-top: 0;
}

/* Desktop Layout - Left column stacks, right column spans */
#projectLabel {
    grid-column: 1 / span 2;
    grid-row: 1;
    border: 1px solid black;
    padding: 1.2vw;
    text-transform: uppercase;
    letter-spacing: 0.18vw;
}

#projectLabel span {
    display: block;
    margin-top: 0.6vw;
    font-weight: 600;
    letter-spacing: 0.05vw;
}

#projectSummary {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

#projectSummary p {
    text-align: left;
    line-height: 1.6;
}

#projectNotes {
    grid-column: 1 / span 2;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

#projectHero {
    grid-column: 3 / span 4;
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

#projectHero img {
    width: 100%;
    height: auto;
    border: 1.5px solid black;
}

.note-block {
    padding: 1vw;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 0.95em;
    font-style: italic;
    line-height: 1.5;
}

#projectGallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vw;
    margin-top: 2vw;
}

/* Gallery cards - flexible for both .gallery-card and plain divs */
.gallery-card,
#projectGallery > div {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}

.gallery-card img,
#projectGallery > div img {
    width: 100%;
    height: auto;
    border: 1px solid black;
    object-fit: cover;
}

.gallery-card span,
#projectGallery > div span {
    font-size: 0.85em;
    color: #666;
    text-align: left;
    line-height: 1.4;
}

/* Grid Items - for flexible positioning */
.grid-item {
    /* Allow natural grid flow unless specifically positioned */
}

/* Mobile Responsive */
@media (max-width: 900px) {
    #projectTitle {
        font-size: 3vw;
        letter-spacing: 1vw;
    }

    #projectGrid {
        grid-template-columns: 1fr;
        margin: 2vw 6vw 6vw;
        gap: 3vw;
    }

    #projectLabel,
    #projectSummary,
    #projectHero,
    #projectNotes,
    #projectGallery {
        grid-column: 1;
    }

    #projectGallery {
        grid-template-columns: 1fr;
        gap: 3vw;
    }

    .note-block {
        padding: 2vw;
    }
}
