/* Image en mode galerie */
body > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    transition: box-shadow 0.3s ease-in-out;
}

body > div > img:hover {
    box-shadow: white 0 0 20px;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

/* Style pour l'image en plein écran */
.active {
    max-width: 100vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    text-align: center;
    position: fixed;
    inset: 0;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 4;
}

/* Adaptation en mode portrait */
@media (orientation: portrait) {
    .active {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 90vh;
    }
}

/* Positionnement fixe du formulaire en mode plein écran */
.comment-form {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    max-width: 500px;
    width: 80%;
}

/* Positionnement du formulaire en mode plein écran */
.active + .comment-form {
    position: fixed;
    bottom: 20px;
    width: 80%;
    margin: auto;
}

.comment-form {
    color: black;
}