.projet-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 1em 0 2em;
}

.projet-gallery picture {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.projet-gallery picture:hover {
    transform: scale(1.05);
}

.projet-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .projet-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2em);
    max-width: 720px;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.modal img {
    transition: opacity 0.3s ease;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #ccc;
}

@media (min-width: 768px) {
    .modal-content {
        width: 720px;
    }
}