/* Verbatim <style> block of templates/home/projectDetail.html.twig (Symfony app). */

    /* --- Projects Section --- */
    .projects-section {
        text-align: center;
        padding: 40px 20px;
        color: #fff;
        background-color: #000;
    }

    .project-presentation h1 {
        margin-bottom: 10px;
    }

    /* --- Project Grid --- */
    .project-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* center each row, incl. an incomplete last row */
        gap: 8px;
    }

    .project-card {
        /* grow to fill complete rows, cap width so last-row cards stay centered */
        flex: 1 1 280px;
        max-width: 340px;
        position: relative;
        overflow: hidden;
        border-radius: 6px;
        transition: transform 0.3s ease;
    }

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

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

    /* --- Overlay/Watermark (optional) --- */
    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 10px;
        text-align: left;
    }

    .watermark {
        position: absolute;
        bottom: 10px;
        right: 10px;
        opacity: 0.8;
    }
    .watermark img {
        width: 60px;
        height: auto;
    }

    /* --- Lightbox Image --- */
    .glightbox-container img {
        max-height: 90vh;
        width: auto;
        object-fit: contain;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }

