.bonsai-carrousel-container {
    width: 85%;
    margin: 20px auto;
    border-radius: 10px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bonsai-carrousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bonsai-carrousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.bonsai-thumbnail {
    flex: 0 0 100%;
    height: 450px;
    object-fit: cover;
    cursor: pointer;
    box-sizing: border-box;
}

.bonsai-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: black;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.bonsai-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.bonsai-left-arrow {
    left: 10px;
}

.bonsai-right-arrow {
    right: 10px;
}

.bonsai-photo-count {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 14px;
    color: black;
    opacity: 0.7;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.bonsai-photo-count:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.bonsai-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 1000;
    flex-direction: column;
}

.bonsai-lightbox img {
    max-width: 80%;
    max-height: 80%;
    margin-bottom: 20px;
}

.bonsai-lightbox .bonsai-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#bonsai-lightbox-caption, #bonsai-lightbox-date {
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

#bonsai-lightbox-date {
    font-size: 16px;
    margin-top: 5px;
}

.bonsai-lightbox .bonsai-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
}

.bonsai-lightbox .bonsai-left-arrow {
    left: 20px;
}

.bonsai-lightbox .bonsai-right-arrow {
    right: 20px;
}

/* Media query pour les petits écrans */
@media screen and (max-width: 480px) {
    .bonsai-carrousel-container {
        width: 310px; /* Limite la largeur du carrousel à 310px sur les petits écrans */
    }

    .bonsai-thumbnail {
        width: 310px; /* Ajuste la largeur de la miniature */
        height: auto; /* Maintient le ratio de l'image */
    }

    .bonsai-arrow {
        width: 30px; /* Réduit la taille des flèches pour correspondre à la nouvelle taille */
        height: 30px;
    }
}
