.bg-green {
    background-color: #3b5d50;
}

.plancton-img {
    display: block;
    border-radius: 15px;        /* Coins arrondis */
    margin: 0 auto; 
}
              
.fiche {
    border: 5px solid #3b5d50;
    border-radius: 15px;
    /* background-color: #3b5d50; 
    color: #fff;
    margin: auto 10px;*/
}

/* Lightbox Modale */
.lightbox-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4000;
}

.lightbox-modal.active {
    display: flex !important;
}

/* Conteneur de l'image et du bouton */
.lightbox-content {
   
    position: relative;
    display: block;
}

.lightbox-image {
    max-width: auto;
    max-height: auto; 
    border-radius: 10px;
    cursor: auto; /* Le clic sur l'image ne ferme pas la lightbox */
    
}

/* Styles spécifiques pour l'orientation */
.lightbox-image.portrait {
    max-height: 90vh;          /* Utilise la hauteur maximale disponible */
    width: auto;           /* Laisse la largeur s'adapter */
    max-width: 90vw;      /* S'assure que ça ne dépasse pas en largeur */
    border: 5px solid #3b5d50; /* Bordure autour de l'image */

}

.lightbox-image.landscape {
    max-width: 90vw;          /* Utilise la largeur maximale disponible */
    height: auto;         /* Laisse la hauteur s'adapter */
    max-height: 90vh;     /* S'assure que ça ne dépasse pas en hauteur */
    border: 5px solid #3b5d50; /* Bordure autour de l'image */

}


/* Bouton de fermeture */
.lightbox-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #3b5d50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close-button:hover {
    background: #2a4b40;
}
/* overlay*/
.image-wrapper {
    display: inline-block;
    position: relative;
    margin: 0 auto;
}

.image-wrapper a {
    display: inline-block;
    position: relative;
}


.photo-credit {
    position: absolute;
    bottom: 0px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 5px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.photo-credit-lightbox {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1050;
}

.species-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.species-column {
    flex: 1;
    min-width: 200px; /* Ajuste selon tes besoins */
}
.species-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
