/* =========================================
   ECOWOOD — COMPLETED PROJECTS PAGE
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f7f9f7;
    color: #1f1f1f;
}


/* BACK BUTTON */

.projects-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 20px 0 25px;

    color: #087a3c;
    font-size: 16px;
    font-weight: 700;

    text-decoration: none;
}


/* MAIN PAGE */

.projects-page {
    width: 100%;
    padding: 20px 16px 70px;
}


/* HEADING */

.projects-heading {
    max-width: 750px;
    margin: 0 auto 35px;
    text-align: center;
}

.projects-heading .small-title {
    color: #168944;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 4px;

    margin-bottom: 10px;
}

.projects-heading h1 {
    margin: 0;

    color: #087a3c;

    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.projects-heading p {
    margin: 14px auto 0;

    color: #68736d;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   PROJECT GALLERY
========================================= */

.projects-grid {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* PROJECT CARD */

.project-card {
    width: 100%;

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.09);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:active {
    transform: scale(0.98);
}


/* PROJECT IMAGE */

.project-card img {
    display: block;

    width: 100%;
    height: 250px;

    object-fit: cover;

    cursor: pointer;

    transition: transform 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.035);
}


/* =========================================
   FULL SCREEN IMAGE / LIGHTBOX
========================================= */

.project-lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.94);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 999999;
}

.project-lightbox.active {
    display: flex;
}

.project-lightbox img {
    display: block;

    max-width: 96%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;
}


/* CLOSE BUTTON */

.lightbox-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #087a3c;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.25);
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 700px) {

    .projects-page {
        padding: 30px 25px 80px;
    }

    .projects-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }

    .project-card img {
        height: 320px;
    }

    .projects-heading h1 {
        font-size: 44px;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 1100px) {

    .projects-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 22px;
    }

    .project-card img {
        height: 350px;
    }

    .project-card:hover {
        transform: translateY(-5px);

        box-shadow:
            0 14px 35px rgba(0, 0, 0, 0.14);
    }
}