/* ===== PROJECT page — simple grille 4 colonnes ===== */
/* Pour ajouter des images : ajoute des .pj-item dans project.html.
   La grille s'étend toute seule (autant de lignes que nécessaire). */

   .pj-grid {
    column-count: 4;
    column-gap: 10px;
    padding: 10px;
    padding-top: calc(5vh + 10px); /* laisse la place au header fixe */
    background-color: white;
    min-height: 100vh;
}

.pj-item {
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 10px;
}

.pj-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.pj-item img:hover {
    transform: scale(1.03);
}

.pj-item img {
    cursor: zoom-in;
}

/* ===== Lightbox — image agrandie au centre de l'écran ===== */
.pj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pj-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.pj-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-out;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.pj-lightbox.is-open img {
    transform: scale(1);
}

@media (max-width: 900px) {
    .pj-grid {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .pj-grid {
        column-count: 1;
    }
}