/*--------_GLOBAL---IMAGE&VIDEOS---------*/

img, video {
    width: 100%;
    height: auto;
}

.bigPicture {
    overflow: hidden;
}

.bigPicture img{
    height: auto; /* Pour maintenir le ratio de l'image */
    display: block; 
}

.gallery-container {
    display: flex;
    justify-content: flex-start;
}

.gallery-item {
    flex-shrink: 0; 
    width: 50vw; 
}

#caption-container {
    padding-left: 6%;
    padding-bottom: 5%;
}

#portrait {
    padding-top: 1%;
}

#portrait img {
    max-width: 50%; /* Ajustez selon vos besoins */
    height: auto;
}




/*---------------_GIFs-------------------*/

.gif-container {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/*----------__RESPONSIVE------------*/


@media (min-width: 769px) {

    /*---------_Gifs--------------*/
    .gif-container {
        padding-top: 3%;
        padding-bottom: 3%;
        max-width: 80%;
        flex-wrap: wrap; /* Les vidéos passeront à la ligne suivante si elles ne tiennent pas sur une seule ligne */
    }
    
    .gif-item {
        padding: 0.5%;
        flex: 0 0 calc(16.66666% - 0px); /* ajustez 10px pour le gap souhaité entre les éléments */
    }

    
    /*---------------------*/

    .gallery-container {
        margin-top: 1%;
        flex-wrap: wrap;
        width: 100%;
    }

    .videos .landscape .gallery-container {
        width: 85vw;
    }

    .bigPicture{
        width: 100%; /* Assurez-vous que l'image s'étend à la largeur du conteneur */      
    }

    .gallery-item {
        width: 21.5%;
    }

    .gallery-item.caroussel {
        max-width: 80%;
        padding-right: 1%;
    }

    .gallery-item.videos {
        padding: 10px;
    }

    .gallery-item.landscape {
        width: 47.8%; /* Les images paysage*3 prendront la largeur complète de l'écran */
    }

    .gallery-item.landscape.two {
        display: flex;
        margin-left: auto;
        margin-right: auto;
        padding-right:1%;
        width: 40%; /* Les images paysage*2 prendront la largeur complète de l'écran */
    }

    .gallery-item.landscape.solo {
        margin-top: 2%;
        margin-bottom: auto;
        margin-right: auto;
        margin-left: auto;
        width: 80%; /* Les images paysage*1 prendront la largeur complète de l'écran */
    }

}


/* Pour les écrans mobiles */
@media (max-width: 768px) {

    /*---------------------*/

    .gif-container {
        max-width: 95%;
        padding-top: 2.5%;
        padding-bottom: 5%;
        flex-wrap: wrap; /* Les vidéos passeront à la ligne suivante si elles ne tiennent pas sur une seule ligne */
    }

    .gif-item {
        padding: 1%;
        flex: 0 0 calc(31% - 0px); /* ajustez 10px pour le gap souhaité entre les éléments */
        line-height: 0px;
    }
    

    /*PHOTOS & VIDEOS*/

    .gallery-container {
        margin-left: 0.5% ;
        margin-top: 4%;
        margin-bottom: 3%;
        display: flex;
        overflow-x: auto; /* Active le défilement horizontal si le contenu déborde */
        -webkit-overflow-scrolling: touch; /
    }

    .bigPicture {
        margin-top: 0px;
        width: 100%; /* Assurez-vous que l'image s'étend à la largeur du conteneur */      
    }

    .gallery-item.caroussel {
        max-width: 80%;
        width: 80vw;
        padding-right: 2%;
    }

    .gallery-item.videos {
        padding: 1%;
        width: 83vw; 
        padding-right: 5px;
    }

    .gallery-item.landscape {
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-item.landscape.two {
        width: 85vw; /* Les images paysage prendront la largeur complète de l'écran */
    }

    .gallery-item.landscape.solo {
        width: 95vw; /* Les images paysage prendront la largeur complète de l'écran */
    }

    .landscape img {
        width: 100%; /* Assurez-vous que l'image prend toute la largeur de .gallery-item */
        height: auto;
    }

}


