/* ========================================
   PROJECT PAGE
   ======================================== */

.project-page {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px 60px 20px;
}


/* ========================================
   BACK BUTTON
   ======================================== */

.back-button {
    display: inline-block;

    margin-top: 20px;
    margin-bottom: 0;
    margin-left: -10px;

    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    color: #01a2e0;
}


/* ========================================
   PROJECT HEADER
   ======================================== */

.project-header {
    margin-bottom: 60px;
    text-align: center;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.project-meta {
    color: #888;
    margin-bottom: 20px;
}

.project-intro {
    max-width: 750px;

    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;

    margin-bottom: 20px;
}


/* ========================================
   BUTTON
   ======================================== */

.project-button {
    display: inline-block;

    margin-top: 5px;
    padding: 11px 20px;

    background-color: #002554;
    color: white;

    border: 2px solid #002554;
    border-radius: 6px;

    text-decoration: none;
    font-weight: bold;
}

.project-button:hover {
    background-color: #01a2e0;
    border-color: #01a2e0;
}


/* ========================================
   PROJECT DETAILS
   ======================================== */

.project-details {
    margin-bottom: 70px;
}


/* ========================================
   IMAGE + TEXT ITEMS
   ======================================== */

.project-item {
    display: grid;

    grid-template-columns: 1.2fr 1fr;
    gap: 30px;

    align-items: center;

    margin-bottom: 20px;
}


/* Alternate image/text */

.project-item.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-item.reverse .project-image {
    order: 2;
}

.project-item.reverse .project-text {
    order: 1;
}


/* ========================================
   PROJECT IMAGES
   ======================================== */

.project-image img {
    width: 100%;
    display: block;

    border-radius: 10px;
    border: 1px solid black;
}


/* ========================================
   PROJECT TEXT
   ======================================== */

.project-text h2 {
    font-size: 1.7rem;

    margin-top: 0;
    margin-bottom: 15px;
}

.project-text p {
    color: #555;

    line-height: 1.6;

    max-width: 450px;

    margin: 0;
}


/* ========================================
   VIDEO
   ======================================== */

.project-video-section {
    margin-bottom: 70px;
}

.project-video-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.project-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;

    display: block;

    border-radius: 10px;
    border: 1px solid black;
}


/* ========================================
   END SECTION
   ======================================== */

.project-end {
    text-align: center;

    background-color: #f2f2f2;

    padding: 40px 30px;

    margin-top: 20px;
}

.project-end h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 768px) {

    /* Header */

    .project-header h1 {
        font-size: 2rem;
    }


    /* Stack image and text */

    .project-item,
    .project-item.reverse {
        display: flex;
        flex-direction: column;

        gap: 20px;

        margin-bottom: 50px;
    }


    /* Reset desktop ordering */

    .project-item.reverse .project-image,
    .project-item.reverse .project-text {
        order: initial;
    }


    /* Images */

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


    /* Text */

    .project-text h2 {
        font-size: 1.5rem;
    }


    /* Video */

    .project-video-section {
        margin-bottom: 50px;
    }


    /* End section */

    .project-end {
        padding: 35px 20px;
    }

}