.main-content {
	width: 95%;
	margin: 0 auto;
	display: flex;
}

/* Galerie principale */

.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: flex-start;
	scroll-behavior: smooth;
}

.gallery-item {
	display: flex;
	flex-direction: column;
    align-items: center;
	min-width: 45%;
	max-width: 50%;
	margin-top: 20px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.gallery-item-TDW {
	display: flex;
	flex-direction: column;
    align-items: center;
	min-width: 30%;
	max-width: 30%;
	margin-top: 20px;
	margin-bottom: 20px;
    margin-right: 10px;
    margin-left: 10px;
    box-sizing: border-box;
}

/* Post individuel */

.post_contenu, .post_contenu_TDW {
	width: 100%;
	display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.post_media, .post_media_TDW {
    display: inline-flex;
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
    scroll-snap-type: x mandatory;
    scroll-snap-align: center;
    box-sizing: border-box;
    justify-content: center;
}

.post_media_item, .post_media_item_TDW {
	display: flex;
	width: 100%;
	justify-content: center;
	box-sizing: border-box;
}

.post_media_item.hidden, .post_media_item_TDW.hidden {
	display: none;
}

.post_media img, .post_media_TDW img {
    object-fit: contain;
    max-height: 80vh;
    width: 100%;
    box-sizing: border-box;
}

 .post_media video, .post_media_TDW video {
    object-fit: contain;
    width: 100%;
    max-height: 80vh;
}

.post_media img:hover {
	cursor: pointer;
}

/*Boutons du post*/

.bouton_box {
	display: flex;
	flex-direction: row;
	margin-top: 5px;
}

.bouton_gauche, .bouton_droite {
	color: #390042;
	z-index: 1;
	display: flex;
	max-height: 4vh;
	min-height: 20px;
	aspect-ratio: 1/1;
	border-radius: 5px;
	align-items: center;
	justify-content: center;
	align-content: center;
	border: none;
	background-color: #e5bfea;
	cursor: pointer;
	margin-top: 1vh;
    margin-bottom: 1vh;
}

@media (hover: hover) {
  .bouton_gauche:hover,
  .bouton_droite:hover {
    background-color: white; 
  }
}

.bouton_gauche {
	margin-right: 10px;
}

.bouton_droite {
	margin-left: 10px;
}

/* Légende */

.post_footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
}

.post_caption {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.post_caption p {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
    font-size: 12px;
    line-height: 16px;
    box-sizing: border-box;
    margin-block: 0;
}

.post_caption .caption-titre {
    font-style: italic;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 20px;
}

/* Media Queries pour affichage en 1 colonne */

@media (max-width: 900px) {

	.main-content {
		display: flex;
		justify-content: center;
	}

	.gallery {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.gallery-item {
		min-width: none;
		max-width: none;
	}

	.post_media_item {
	width: 60vw;
	}

	.post_media img {
	max-height: none;
	}

	.gallery-item-TDW {
		min-width: 50%;
		max-width: 50%;
	}

	.post_media img:hover {
	cursor: auto;
	}
}



@media (max-width: 700px) {
	.post_media_item {
	width: 85vw;
	}

	.post_media img:hover {
	opacity: 100%
	}

}


/* Media Queries pour smartphones */

@media (max-width: 480px) {
	
	.gallery-item {
		min-width: none;
		max-width: none;
	}

	.gallery-item-TDW {
		min-width: none;
		max-width: none;
	}

	.post_media img:hover {
	cursor: auto;
	}
}