/* ============================================================
   PROJECT.CSS — Projects Listing Page Only
   Grid layout + overlay style for the /en/project.html page.
   ============================================================ */

/* --- PROJECT GRID --- */
.startgrid {
    --grid-gap: 0px;
    --grid-max-cols: 3;
    --grid-min-col: 300px;
    --col-calc: calc((100% - var(--grid-gap) * var(--grid-max-cols) - var(--grid-gap)) / var(--grid-max-cols));
    --col-min: max(var(--grid-min-col), var(--col-calc));

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--col-min), 1fr));
    grid-auto-rows: minmax(500px, 650px);
    gap: var(--grid-gap);
    flex: 1;
    width: 75%;
    margin: 0 auto 80px;
}


/* --- PROJECT CARD IMAGE --- */
.pimage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 11;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.pimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 15;
}


/* --- HOVER OVERLAY --- */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.pimage:hover .overlay {
    opacity: 1;
}


/* --- PROJECT DESCRIPTION --- */
.desc {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    z-index: 21;
    opacity: 1;
    transition: 0.5s;
}

.ptag {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ptag span {
    color: #fff;
    font-weight: 100;
    text-decoration: none;
}

.ptitle {
    font-weight: 600;
    font-size: 20px;
}


/* --- RESPONSIVE --- */
@media (max-width: 1600px) {
    .startgrid {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .startgrid {
        grid-auto-rows: minmax(300px, 450px);
    }
}
