/* 
.project-content a {
    font-family: "Instrument Serif", serif;
    font-size: 1.2rem;         
    font-weight: 400;
    color: #641F09;          
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-content a:hover {
    opacity: 0.7;
} */

/* ----------------------------------------------------
   PROJECT PAGE — LINK ROW (UNDER TITLE)
---------------------------------------------------- */

.project-text .links {
    margin: 1rem 0 1.5rem;
    display: flex;
    justify-content: space-between; /* spreads links across text column */
    gap: 1rem;

    width: 100%;
}

.project-text .links a {
    font-family: "Instrument Serif", serif;
    font-size: 1.3rem;
    font-weight: 400;

    color: #641F09;              /* dark maroon */
    text-decoration: none;

    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.project-text .links a:hover {
    color:#b48883;}
/* Project links inside text sections */
.text-section .links {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.text-section .links a {
    font-family: "Instrument Serif", serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #641F09;
    text-decoration: none;
}

.text-section .links a:hover {
    color:#b48883;
}

/* Container */

.container-p {
    justify-content: space-between;
    position: relative;
    text-align: center;

}

/* Project Content Layout */
.project-content {
    padding: 11rem 2rem 0 2rem; /* 295px 60px 0 60px */

}

/* Flex Layout for Main Section */
.project-layout-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;

}

/* Left Section (Text) */
.project-landing{
margin-bottom: 2rem;}
.project-text {
    flex: 1;
    max-width: 31.25rem; /* 500px */
    text-align: left;
    align-self: flex-end;
}

.project-title {
    font-size: 5rem;
    margin: 0 0 1.25rem;
    line-height: 1;
}

.project-description {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;

}

/* Skills */
.skills {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    font-size: 0.9rem;
    margin-bottom: 0.625rem;
    color: #707070;
}

.skills span {
    padding: 0.3125rem 0.625rem;
}

/* Featured Image */
.project-image-featured {
    width: 46.875rem;
    height: 28.125rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.625rem;

}

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

/* Right Section */
.project-image-container {
    flex: 1;
}

.project-image-container video {
    margin-top: 2.5rem;
}

.project-image img,
.project-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.caption {
    font-family: "Lato", sans-serif;
    font-weight: 300;
}

/* Image Grids */
.image-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.image-grid img {
    width: 100%;
}

.grid-2x2,
.grid-2x2l {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2rem;
}

.grid-2x2 img {
    height: 25rem;
    object-fit: cover;
}
.grid-3x3
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.grid-3x3 img{
    width: 100%;
    object-fit: cover;
}

.grid-4x3,
.grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.grid-4x3 img,
.grid-4x2 img {
    width: 100%;
    object-fit: cover;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.25rem;
    margin: 2.5rem;
}

.video-grid video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Text and Image Split Layout */
.text-image-layout {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2.5rem;
}

.text-section {
    flex: 1;
    text-align: left;
    font-weight: 300;
}

.text-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.text-section p {
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.image-section {
    margin-top: 2rem;
    flex: 1;
}

.image-section img {
    width: 100%;
}

/* ---------------- Media Queries ---------------- */

/* Tablet and below */
@media (max-width: 64rem) {
    .project-content {
        padding: 11.25rem 2rem 0 2rem;
        
    }
    .project-title {
        font-size: 4rem;
        margin-left: 0rem;

    }
    .project-layout-1 {
        align-items: left;
        flex-direction: column;
        gap: 3.75rem;
        
    }
    .skills {
        font-size: 1.2rem;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 0.4rem;
    }
    .project-description {
        
        font-size: 1.2rem;
        margin-bottom: 0rem;
        margin-left: 0rem;
    }

    .text-section h3 {
        font-size: 1.8rem;
        font-weight: 300;
    }

    .text-section p {
        font-size: 1.2rem;
    }

    /* ------------------------------
       CAPTIONS & VIDEO
    ------------------------------ */
    .caption {
        font-size: 1rem;
    }

    .video-grid video {
        aspect-ratio: 16 / 9;
    }

    /* ------------------------------
       TEXT + IMAGE LAYOUT SPACING
    ------------------------------ */
    .text-image-layout {
        margin-top: 0.4rem;
    }

    .grid-4x3,
    .grid-4x2,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .text-image-layout {
        flex-direction: column;
        gap: 1.25rem;
    }

 
    .project-image-featured {
        width: 100%;
        height: auto;
    }

    .project-image-featured img,
    .image-grid img {
        height: auto;
        object-fit: contain;
    }
}

/* Mobile */
@media (max-width: 48rem) {

    /* ------------------------------
       PAGE PADDING & TITLES
    ------------------------------ */
    .project-content {
        padding: 6rem 1.2rem 0 1.2rem;
        
    }

    .project-title {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }

    /* ------------------------------
       SKILLS
    ------------------------------ */
    .skills {
        font-size: 0.8rem;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 0.4rem;
    }

    /* ------------------------------
       IMAGE GRIDS — SINGLE COLUMN
    ------------------------------ */
    .image-grid,
    .grid-2x2,
    .grid-2x2l,
    .grid-4x2,
    .grid-4x3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-grid,
    .image-section {
        margin-top: 0rem;
    }

    /* ------------------------------
       FEATURED / IMAGE RATIOS
    ------------------------------ */
    .project-image-featured {
        width: 100%;
        height: auto;
    }

    .project-image-featured img,
    .image-grid img {
        height: auto;
        object-fit: contain;
    }

    /* ------------------------------
       LINK ROW — OVERFLOW FIX
    ------------------------------ */
    .project-text .links,
    .text-section .links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.2rem;
        width: 100%;
    }

    .project-text .links a,
    .text-section .links a {
        font-size: 1.4rem;
        white-space: normal;
    }

    /* ------------------------------
       TEXT HIERARCHY
    ------------------------------ */
    .project-description {
        font-size: 1rem;
        margin-bottom: 0rem;
    }

    .text-section h3 {
        font-size: 1.35rem;
    }

    .text-section p {
        font-size: 1rem;
    }

    /* ------------------------------
       CAPTIONS & VIDEO
    ------------------------------ */
    .caption {
        font-size: 0.9rem;
    }

    .video-grid video {
        aspect-ratio: 16 / 9;
    }

    /* ------------------------------
       TEXT + IMAGE LAYOUT SPACING
    ------------------------------ */
    .text-image-layout {
        margin-top: 0.4rem;
    }
}

/* --------------------------------
   1 VIDEO + 1 IMAGE GRID
-------------------------------- */
.grid-1video-1image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

.grid-1video-1image video,
.grid-1video-1image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
