/**
 * @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 */
figure[class*="effectck"] {
	position: relative;
	/*float: left;*/
	overflow: hidden;
	margin: 0!important;
	/*min-width: 320px;*/
	/*max-width: 480px;*/
	/*max-height: 360px;*/
	/*width: 48%;*/
	background: #f1f1f1;
	text-align: center;
	display: inline-block;
	will-change: transform;
}

figure[class*="effectck"]:not([class*="flip"]) > [class*=img] {
	position: relative;
	overflow: hidden;
	height: 100%;
}

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%;
	margin: 0;
}

figure[class*="effectck"] figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-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;
	/*width: 100%;
	height: 100%;*/
	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.5em;
	line-height: 24px;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

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

figure[class*="effectck"] figcaption [class*="title"],
figure[class*="effectck"] figcaption [class*="desc"] {
	margin: 0;
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

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

/* Individual effectcks */


/*---------------*/
/***** 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: 1;
}

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;
	-webkit-transform: scale3d(0.8,0.8,1);
	transform: scale3d(0.8,0.8,1);
}

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

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

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

figure.effectck-jazz:hover figcaption::after,
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"],
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);
}
