/**
 * @copyright	Copyright (C) 2015 CÃƒÂ¯Ã‚Â¿Ã‚Â½dric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * http://www.template-creator.com
 * @license		GNU/GPL
 * Plugin Image Effect CK
 * */

.gridck {
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	/*max-width: 1000px;*/
	list-style: none;
	text-align: center;
}

/* Common style */

.wf-zoom-image {      /* JCE Mediabox compatibility - picture enlargement over original size issue */
	display: block;
}

figure[class*="effectck"] {
	position: relative;
	overflow: hidden;
	margin: 0px;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
	/* display: inline-block; */   /* sinon pb affichage sur les tres grandes pages */
	font-size: initial;
	line-height: initial;
	will-change: transform;
/*	margin-block-start: 0em;  suppression des marges rajoutÃƒÂ©es par stylesheet  
	margin-block-end: 0em; */
}

/* #wrapper3 p {       suppression marges rajoutÃƒÂ©es par bootstrap 
	margin:0;	
}
*/

figure[class*="effectck"] > [class*=img] {
	position: relative;
	overflow: hidden;
}

figure[class*="effectck"] > [class*=img]:after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 0;
}

figure[class*="effectck"] img {
	position: relative;
	display: block;
	/*min-height: 100%;*/ /* do not use because it distord the images in Safari and mobiles */
	max-width: 100%;
	width: 100%;
	opacity: 0.8;
	margin: 0;
}

figure[class*="effectck"] figcaption {
	color: #fff;
	/*font-size: 1.5em;                   Supprimer, seulement Title utilisé.*/
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure[class*="effectck"] figcaption::before,
figure[class*="effectck"] figcaption::after {
	pointer-events: none;
}

figure[class*="effectck"] figcaption,
figure[class*="effectck"] figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

/* Anchor will cover the whole item by default */
/* For some effectcks it will show as a button */

figure[class*="effectck"] figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

figure[class*="effectck"] figcaption [class*="title"] {
	word-spacing: -0.15em;
	font-weight: 300;
	font-size: 1.8em;
	line-height: 1.3em;   /* au lieu de 24px pour etre responsive */
	font-family: Myfrida;
}

figure[class*="effectck"] figcaption [class*="title"] span {
	font-weight: 800;
}

figure[class*="effectck"] figcaption [class*="title"],
figure[class*="effectck"] figcaption [class*="desc"] {
	margin: 0;
	position: absolute;
	top: 50%;							/* pour centrer titre et descriotion */
	left: 50%;
	transform: translate(-50%, -50%);
}

figure[class*="effectck"] figcaption [class*="desc"] {
	letter-spacing: 1px;
	font-size: 68.5%;
}

/* Individual effectcks */

/*---------------*/
/***** Layla *****/
/*---------------*/

figure.effectck-layla {
	background: #F16522;
}

figure.effectck-layla figcaption::before,
figure.effectck-layla figcaption::after {
	position: absolute;
	content: '';
	opacity: 0;
}

figure.effectck-layla figcaption::before {
	top: 10%;
	right: 7%;
	bottom: 10%;
	left: 7%;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: scale(0,1);
	transform: scale(0,1);
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
}

figure.effectck-layla figcaption::after {
	top: 7%;
	right: 10%;
	bottom: 7%;
	left: 10%;
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
	-webkit-transform: scale(1,0);
	transform: scale(1,0);
	-webkit-transform-origin: 100% 0;
	transform-origin: 100% 0;
}

figure.effectck-layla figcaption [class*="title"] {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effectck-layla figcaption [class*="desc"] {
	text-transform: none;
	opacity: 0;
	-webkit-transform: translate3d(0,-10px,0);
	transform: translate3d(0,-10px,0);
}

figure.effectck-layla img,
figure.effectck-layla figcaption::before,
figure.effectck-layla figcaption::after,
figure.effectck-layla figcaption [class*="desc"] {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effectck-layla:hover img {
	opacity: 0.7;
	-webkit-transform: translate3d(0,0,0) scale(1.2);
	transform: translate3d(0,0,0) scale(1.2);
}

figure.effectck-layla:hover figcaption::before,
figure.effectck-layla:hover figcaption::after {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

figure.effectck-layla:hover figcaption [class*="title"],
figure.effectck-layla:hover figcaption [class*="desc"] {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

figure.effectck-layla:hover figcaption::after,
figure.effectck-layla:hover figcaption [class*="title"],
figure.effectck-layla:hover figcaption [class*="desc"],
figure.effectck-layla:hover img {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
}


/*---------------*/
/***** Chico *****/
/*---------------*/

figure.effectck-chico {
	background: #1BA6D4;
}

figure.effectck-chico img {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.12);
	transform: scale(1.12);
}

figure.effectck-chico:hover img {
	opacity: 0.5;
	-webkit-transform: scale(1);
	transform: scale(1);
	transform: scale3d(1,1,1);
}

figure.effectck-chico figcaption::before {
	position: absolute;
	top: 7%;
	right: 10%;
	bottom: 7%;
	left: 10%;
	border-left: 1px solid #fff;
	border-right: 1px solid white;
	content: '';
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

figure.effectck-chico figcaption::after {
	position: absolute;
	top: 10%;
	right: 7%;
	bottom: 10%;
	left: 7%;
	border-top: 1px solid #fff;
	border-bottom: 1px solid white;
	content: '';
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}



figure.effectck-chico figcaption::after,
figure.effectck-chico figcaption::before,
figure.effectck-chico figcaption [class*="desc"] {
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effectck-chico figcaption [class*="desc"] {
	margin: 0 auto;
	max-width: 200px;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}
figure.effectck-chico:hover figcaption::after,
figure.effectck-chico:hover figcaption::before,
figure.effectck-chico:hover figcaption [class*="desc"] {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}



/*---------------*/
/***** Jazz *****/
/*---------------*/

figure.effectck-jazz {
	background: -webkit-linear-gradient(-45deg, #f3cf3f 0%,#f33f58 100%);
	background: linear-gradient(-45deg, #f3cf3f 0%,#f33f58 100%);
}

figure.effectck-jazz img {
	opacity: 0.9;
}

figure.effectck-jazz figcaption::after,
figure.effectck-jazz img,
figure.effectck-jazz figcaption [class*="desc"] {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effectck-jazz figcaption::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	content: '';
	opacity: 0;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

figure.effectck-jazz figcaption [class*="title"],
figure.effectck-jazz figcaption [class*="desc"] {
	opacity: 1;
}

figure.effectck-jazz figcaption [class*="title"] {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effectck-jazz figcaption [class*="desc"] {
	text-transform: none;
	font-size: 0.85em;
	opacity: 0;
}

figure.effectck-jazz:hover img {
	opacity: 0.7;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

figure.effectck-jazz:hover figcaption::after {
	opacity: 1;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
}

figure.effectck-jazz:hover figcaption [class*="title"],
figure.effectck-jazz:hover figcaption [class*="desc"] {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
	  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*-----------------*/
/***** Apollo *****/
/*-----------------*/

figure.effectck-apollo {
	background: #3498db;
}

figure.effectck-apollo img {
	opacity: 0.95;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

figure.effectck-apollo figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.5);
	content: '';
	-webkit-transition: -webkit-transform 0.6s;
	transition: transform 0.6s;
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
}

figure.effectck-apollo figcaption [class*="desc"] {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 3em;
	max-width: 150px;
	border-right: 1px solid #fff;
	text-align: right;
	opacity: 0;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effectck-apollo:hover img {
	opacity: 0.6;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effectck-apollo:hover figcaption::before {
	-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
	transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}

figure.effectck-apollo:hover figcaption [class*="desc"] {
	opacity: 1;
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}


