@charset "UTF-8";
/* CSS Document */
/*color
red : #ef7070
dark gray : #5d6165 
yellow : #
*/


.grid {
	position: relative;
	margin:auto;
/*	padding: 1em 0 4em;*/
	padding-bottom: 80px;
	max-width: 880px;
	list-style: none;
	margin-bottom: 10px;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 5px;
	min-width: 200px;
	max-width: 283px;
	max-height: 218px;
	width: 100%;
	background:#069FF4;
	cursor: pointer;
}

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

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

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

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: -40px;
	width: 130%;
	height: 110%;
	
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 100%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	font-weight: 900;
/*	font-family: 'Exo 2', sans-serif;*/
	font-size: 1.2em;
	color:#fff;
	padding: 6px 0px 2px 0px;
	margin: 0 auto;
	background: #5d6165;
	opacity: 0.7;
}




/* Individual effects */


figure.effect-lily img {
	max-width: none;
	width: -webkit-calc(100% + 50px);
	width: calc(100% + 50px);
	opacity: 0.5;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-20px,0, 0);
	transform: translate3d(-20px,0,0);
}

figure.effect-lily figcaption {
/*	text-align: left;*/
}

figure.effect-lily figcaption > div {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 2em;
	width: 100%;
	height: 50%;
}

figure.effect-lily h2,
figure.effect-lily p {
	-webkit-transform: translate3d(0,40px,0);
	transform: translate3d(0,40px,0);
}



figure.effect-lily h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	display: none;
}

/*
figure.effect p {
	color: rgba(255,255,255,0.8);
	opacity: 0;
	-webkit-transition: opacity 0.2s, -webkit-transform 0.35s;
	transition: opacity 0.2s, transform 0.35s;
}
*/

figure.effect-lily:hover img {
	opacity: 1;
}

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


figure.effect-lily:hover h2 {
	-webkit-transform: translate3d(0,80,0);
	transform: translate3d(0,80,0);
	display:block;
}


figure.effecty-lily:hover h2 {
/*	display:none;*/
}

/*
figure.effect:hover p {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
	-webkit-transition-duration: 0.35s;
	transition-duration: 0.35s;
}
*/


/*media queries------------*/

@media only screen and (max-width: 980px){
	
	.grid {
		
	max-width: 590px;
		
	}
}


@media only screen and (max-width: 620px){
	
	.grid {
		
	max-width: 300px;
	}
}
