/* ============================================================
   project.css
   Extends index.css for individual project pages.
   The body grid (10 columns, 5vw margins) is inherited.
   ============================================================ */


/* ----------------------------------------------------------
   COVER — breaks out of the body margin to go full-bleed
   ---------------------------------------------------------- */

.cover-full {
    grid-column: 1 / -1;

    /* Reach past the 5vw body margins to hit the viewport edge */
    margin-left: -5vw;
    margin-right: -5vw;

    /* No top gap — sit flush under header */
    margin-top: -25px;

    overflow: hidden;
}

.cover-full-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ----------------------------------------------------------
   PROJECT INTRO — title + date on the left, paragraph right
   ---------------------------------------------------------- */

.project-intro {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    column-gap: 20px;
    padding-top: 10px;
    align-items: start;
}

.project-meta {
    grid-column: 1 / 4;
    padding-left: 0;
}

.project-title {
    font-family: "ITC Galliard Bold";
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 0 8px 0;
    line-height: 1;
}

.project-date {
    font-family: "ITC Galliard Roman";
    color: gray;
    margin: 0;
    font-size: 0.95rem;
}

.project-description {
    grid-column: 4 / 9;
    font-family: "ITC Galliard Roman";
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    color: #333;
}


/* ----------------------------------------------------------
   GALLERY — variable grid, two image widths
   ---------------------------------------------------------- */

.gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
}

.gallery-item {
    grid-column: span 1;         /* default: 1-of-4 columns */
    overflow: hidden;
}

.gallery-item--wide {
    grid-column: span 2;         /* accent images: half the grid */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item img:hover {
    opacity: 0.88;
}


/* ----------------------------------------------------------
   BACK LINK
   ---------------------------------------------------------- */

.back-link-row {
    grid-column: 1 / -1;
    padding-bottom: 40px;
}

.back-link {
    font-family: "ITC Galliard Roman";
    font-size: 0.9rem;
    color: gray;
    text-decoration: none;
}

.back-link:hover {
    color: #000;
}


/* ----------------------------------------------------------
   RESPONSIVE — single column on small screens
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .cover-full-img {
        height: 40vh;
    }

    .project-intro {
        grid-template-columns: 1fr;
    }

    .project-meta {
        grid-column: 1 / -1;
    }

    .project-description {
        grid-column: 1 / -1;
        padding-top: 16px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--wide {
        grid-column: span 2;
    }
}
