.effects-grid {
	position: relative;
	margin: 0 auto;
	text-align: center;
}

/* Common style */
.effects-grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
}

.effects-grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	o/pacity: 0.8;
}

.effects-grid figure figcaption {
	color: #fff;
}

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

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

.effects-grid figure figcaption:hover,
.effects-grid figure figcaption > a:hover {
  background: rgb(0,0,0,.6);
}

.effects-grid figure figcaption > a {
	z-index: 1000;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}
*/
.effects-grid figure figcaption
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.effects-grid figure figcaption:hover
{
  background: rgb(0,0,0,.6);
}


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

.effects-grid figure.effect-layla {
	background: transparent;
}

.effects-grid figure.effect-layla img {
	width: 100%;
}

.effects-grid figure.effect-layla figcaption {
	padding: 0em;
	padding: 2em;
	padding: 15px;
}

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

.effects-grid figure.effect-layla figcaption::before {
	top: 20px;
	right: 10px;
	bottom: 20px;
	left: 10px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
}

.effects-grid figure.effect-layla figcaption::after {
	top: 10px;
	right: 20px;
	bottom: 10px;
	left: 20px;
	border-right: 1px solid #fff;
	border-left: 1px solid #fff;
}


.effects-grid figure.effect-layla img,
figure.effect-layla figcaption::before,
figure.effect-layla figcaption::after,
figure.effect-layla p {
	-webkit-transition: opacity 0.81s, -webkit-transform 0.81s;
	transition: opacity 0.81s, transform 0.81s;
}

.effects-grid figure.effect-layla:hover img {
	opacity: 0.5; /* see no effect */
}

.effects-grid figure.effect-layla:hover figcaption::before,
.effects-grid figure.effect-layla:hover figcaption::after {
	opacity: 1;
}

.effects-grid figure h3,
.effects-grid figure p {
	margin: 0;
}

.effects-grid figure.effect-layla h3 {
	-webkit-transition: .5s;
	transition: .5s;
	padding-top: 30%;
}

.effects-grid figure.effect-layla h3 {
	font-size: 250%;
	}

@media screen and (max-width: 1000px ) {
.effects-grid figure.effect-layla h3 {
	font-size: 150%;
	}
.effects-grid figure.effect-layla:hover h3 {
		-webkit-transition: .5s;
		transition: .5s;
		padding-top: 25%;
	}
}

.effects-grid figure.effect-layla p {
	font-size: 100%;
	opacity: 0;
	padding: 0.0em 1em;
	padding-top: 10px;
}

.effects-grid figure.effect-layla:hover h3,
.effects-grid figure.effect-layla:hover p {
	opacity: 1;
}
