.wrap{
	  width: calc(100% - 12px);
	  margin: 0 auto;
	  font-family: sans-serif;

	margin-bottom: 25px;
	}
	
	.wrap { display: flex; flex-wrap: wrap;}

/* ------------------- CONTENU DES BLOC IMAGE ------------------- */
	.blocimage {
	position: relative;
	  display: inline-block;
	  font-size: 0;
	}



	.blocimage {
		width: calc(19.95% - 6px);
	  	margin-right: 8px;
	  	margin-bottom: 8px;
	}
	

	.blocimage:nth-of-type(5n) {margin-right: 0; }
	
/* --------------------------- STATUT DE LA FIGURE ------------------------- */
	.photo_grid_R1 {
		margin: 0; overflow: hidden;
		position: relative;
	  	display: inline-block;width: 100%;
	  	font-family: 'Open Sans', sans-serif;
	  	font-size: 16px;  text-align: center;
	  	overflow: hidden;

	  background-color: #bc89aa;
	}
	
	.photo_grid_R1 * {
	  -webkit-box-sizing: border-box;
	  box-sizing: border-box;
	  -webkit-transition: all 0.35s ease;
	  transition: all 0.35s ease;
	}

/* ------------------- COMPORTEMENT AU SURVOL DE LA FIGURE ------------------- */
.photo_grid_R1:before,
.photo_grid_R1:after {
  position: absolute;top: 0;bottom: 0;left: 0;right: 0;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
  background-color: #d6c0d0;
  
 /* border-left: 3px solid #b20382;border-right: 3px solid #b20382;*/
  content: '';
  opacity: 0.7;
  z-index: 1;
}

.photo_grid_R1:before {
  -webkit-transform: skew(45deg) translateX(-155%);
  transform: skew(45deg) translateX(-155%);
}

.photo_grid_R1:after {
  -webkit-transform: skew(45deg) translateX(155%);
  transform: skew(45deg) translateX(155%);
}

.photo_grid_R1:hover:before,
.photo_grid_R1.hover:before {
  -webkit-transform: skew(90deg) translateX(-50%);
  transform: skew(90deg) translateX(-50%);
}

.photo_grid_R1:hover:after,
.photo_grid_R1.hover:after {
  -webkit-transform: skew(90deg) translateX(50%);
  transform: skew(90deg) translateX(50%);
}

/* ---------------- COMPORTEMENT de L'IMAGE AU SURVOL DE LA FIGURE --------------- */
.photo_grid_R1:hover img {transform: scale(1.15);}

.photo_grid_R1 img {
	display: block;
	border: none;
  max-width: 100%;height: auto; width: auto\9;
  transition: transform .2s ease-in-out;
  font-size: 0;
}

/*.photo_grid_R1 img {backface-visibility: hidden;}*/

.photo_grid_R1:hover > img,
.photo_grid_R1.hover > img {
  opacity: 0.5;
}

/* ------------------- FIGCAPTION -> bouton d'accès central ------------------- */
.photo_grid_R1 figcaption {
  position: absolute;top: 50%;left: 50%;
  z-index: 2;
  -webkit-transform: translate(-50%, -50%) scale(0.5);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
/*  -webkit-box-shadow: 0 0 10px #000000;
  box-shadow: 0 0 10px #000000;*/
}

.photo_grid_R1:hover figcaption,
.photo_grid_R1.hover figcaption {
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;cursor: pointer;
}
.photo_grid_R1 figcaption {
z-index: 100000;
}
.photo_grid_R1 figcaption h3 {
/*  background-color: #eaafd5;
  border: 2px solid #fff;
  letter-spacing: 1px;font-size: 1em;font-weight: 600;  color: #fff;
  text-transform: uppercase;
*/
  margin: 0;padding: 5px 10px;
  background: transparent;
  width: 62px;height: 62px;z-index: 10000;
}

/* ------------------------------ MEDIA QUERIES ----------------------------- */
@media screen and (max-width: 1280px) { /*960*/

	.blocimage {
		width: calc(25% - 6px);
	  	margin-right: 8px;margin-bottom: 8px;
	}
	.blocimage:nth-of-type(5n) {margin-right: 8px; }
	.blocimage:nth-of-type(4n) {margin-right: 0; }
	

}

@media screen and (max-width: 960px) { /*960*/

	.blocimage {
		width: calc(33.3333% - 6px);
	  	margin-right: 8px;margin-bottom: 8px;
	}
	.blocimage:nth-of-type(4n) {margin-right: 8px; }
	.blocimage:nth-of-type(3n) {margin-right: 0;}

}

@media screen and (max-width: 768px) { /*768*/

	.blocimage {
	  width: calc(50% - 4px);
	  margin-right: 8px;margin-bottom: 8px;
	}
	.blocimage:nth-of-type(3n) {margin-right: 8px; }
	.blocimage:nth-of-type(2n) { margin-right: 0;}

	
}
