
.gridxmin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 1em 0 4em;
    list-style: none;
}

/* Common style */
.gridxmin figure {
	position: relative;
	float: left;
	overflow: hidden;
	/*margin: 10px 1%;*/
	max-height: 460px;
	width: 48%;
	background: #000000;
	text-align: center;
	cursor: pointer;
}

.gridxmin figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.99;
}

.gridxmin figure figcaption {
	padding: 2em;
	color: #fff;
	/*text-transform: uppercase;*/
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gridxmin figure figcaption::before,
.gridxmin figure figcaption::after {
	pointer-events: none;
}

.gridxmin figure figcaption,
.gridxmin figure figcaption > a {
	position: absolute;	top: 0;	left: 0;
/*	width: 100%;*/
	height: 100%;
}

.gridxmin figure figcaption > a {
    z-index: 1000;
    position: absolute;
    bottom: 0; /* Ajustez selon vos besoins */
    width: 100%;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s, visibility 0.35s;
	top: 210px;
    color: white;
}

/* Styles pour le survol sur l'ensemble de la figure */
.gridxmin figure:hover figcaption > a {
    visibility: visible;
    opacity: 1;
}
.gridxmin figure:hover figcaption > h2 {
    visibility: visible;
    opacity: 1;
}
.gridxmin figure h2 {
	/*word-spacing: -0.15em;*/
	font-weight: 300;
	font-size: 1.1em;
}

.gridxmin figure h2 span {
	font-weight: 800;
}

.gridxmin figure h2,
.gridxmin figure p {
	margin: 0;
}

.gridxmin figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

/***** Sarah *****/

.effect-sarah {
    margin: 10px;
    flex: 1 1 auto;
    min-width: 320px; /* Ajustez selon la taille minimale souhaitée */
    max-width: 490px; /* Ajustez selon la taille maximale souhaitée */
}


figure.effect-sarah {
	/*background: #2821DC;*/
}

figure.effect-sarah img {
	max-width: none;
	width: -webkit-calc(100% + 20px);
	width: calc(100% + 20px);
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-10px,0,0);
	transform: translate3d(-10px,0,0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-sarah:hover img {
	opacity: 0.1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-sarah figcaption {
	text-align: left;
}

figure.effect-sarah h2 {
	position: relative;
	overflow: hidden;
	padding: 0.5em 0;
	/*background: #474848e5;*/
	text-align: center;
	padding: 7px;
	letter-spacing: 1.5px;
	visibility: hidden;
}

figure.effect-sarah h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #fff;
	content: '';
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(-100%,0,0);
	transform: translate3d(-100%,0,0);
}

figure.effect-sarah:hover h2::after {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-sarah p {
	padding: 1em 0;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(100%,0,0);
	transform: translate3d(100%,0,0);
}

figure.effect-sarah:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
