/* Structure de la fenêtre modale plein écran */
.modal-lightbox {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir très sombre */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Image agrandie */
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

/* Bouton de fermeture (croix) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--beige);
}

/* Petite animation d'ouverture */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}