
figure{margin:0;}

*, *:after, *:before { 
	-webkit-box-sizing: border-box; box-sizing: border-box;
}

.clear{
	clear:both;
}

.ModHover{	
	margin:0 auto;
	width:98%;
}

.grid {/*para centrar*/
	position: relative;
	margin: 0 auto;
	/*padding: 1em 0 4em;
	max-width: 1000px;*/
	list-style: none;
	text-align:left;
}

/* Common style */
.grid figure {/*para ocultar el texto*/
	position: relative;
	float: left;
	overflow: hidden;
	/*margin: 10px 1%;*/
	
	max-width: 365px;
	max-height: 282px;
	
	/*max-width: 354px;
	max-height: 438px;*/
	
	background: #05223F;/*color de fondo*/
	text-align:left;
	cursor: pointer;
}

.grid figure img {/*la opacidad de la foto*/
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	/*opacity: 0.8;*/
}

.grid figure figcaption {/*no se*/
	padding: 2em;
	color: #fff;
	/*text-transform: uppercase;*/
	font-size: 1em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {/*no se*/
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {/*aparece todo el texto*/
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {/*desaparece el viwe all*/
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h3 {/*acomoda el titulo*/
	/*word-spacing: -0.15em;*/
	font-family: 'Open Sans', Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 100;
	font-size:1em;
}


/*.grid figure h2 span {hace que el titulo sea bold
	font-weight: 800;
}*/

.grid figure h3,
.grid figure p {/*le quita el margen a las letras*/
	margin: 0;
}

.grid figure p {/*hace que el texto sea más pequeño*/
	letter-spacing: 1px;
	font-size: 0.75em;
	font-weight:normal;
}

/* Individual effects */

/*---------------*/
/***** Lily *****/
/*---------------*/

figure.effect-lily img {/*acomoda la imagen*/
	width: none;
	/*width: -webkit-calc(100% + 50px);
	width: calc(100% + 50px);
	opacity: 0.7;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-40px,0, 0);
	transform: translate3d(-40px,0,0);*/
}

figure.effect-lily figcaption {/* texto a la izquierda*/
	text-align: left;
}

figure.effect-lily figcaption > div {/*margen del texto*/
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 2em;
	width: 100%;
	height: 100%;
}

figure.effect-lily h3,
figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
	transform: translate3d(0,190px,0);/*aqui decia 100px*/
}

figure.effect-lily h3 {/*no se*/
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	/*margin-bottom:0.5em;*/
}

figure.effect-lily p {/*desaparece el texto*/
	opacity: 0;
	/*color: rgba(255,255,255,0.8);	
	-webkit-transition: opacity 0.2s, -webkit-transform 0.35s;
	transition: opacity 0.2s, transform 0.35s;*/
}

figure.effect-lily:hover p {/*aparece el texto*/
	opacity: 1;
}

figure.effect-lily:hover img{/*aparece el texto*/
	opacity: 0.2;
}

figure.effect-lily:hover h3 img {/*aparece el texto*/
	opacity: 1;
}

/*figure.effect-lily:hover img,
figure.effect-lily:hover p {aparece el texto
	opacity: 0.7;
}*/

figure.effect-lily:hover img,
figure.effect-lily:hover h3,
figure.effect-lily:hover p {/*hace que el texto suba*/
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-lily:hover p {/*hace que el texto suba con un retyraso*/
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
	-webkit-transition-duration: 0.35s;
	transition-duration: 0.35s;
}





/*------- MQ HOVER ----------*/

@media(max-width:1080px) {
	.grid figure {
		display: inline-block;
		float: none;
		margin: 0 auto;
		width: 100%;
	}
	
	.grid figure p {/*hace que el texto sea más pequeño*/
		font-size: 0.8em;
		line-height:1.2em;
	}
	
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,180px,0);/*aqui decia 100px*/
	}
	
	figure.effect-lily figcaption > div {/*margen del texto*/
		padding: 2em;
	}
}

@media(max-width:990px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,160px,0);/*aqui decia 100px*/
	}
	
	.grid figure p {/*hace que el texto sea más pequeño*/
		font-size: 0.7em;
	}

}

@media(max-width:910px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,200px,0);/*aqui decia 100px*/
	}
	
	.grid figure p {/*hace que el texto sea más pequeño*/
		font-size: 0.9em;
	}

}



@media(max-width:750px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,180px,0);/*aqui decia 100px*/
	}

}

@media(max-width:690px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,160px,0);/*aqui decia 100px*/
	}
	
	.grid figure p {/*hace que el texto sea más pequeño*/
		font-size: 0.7em;
	}

}

@media(max-width:590px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,190px,0);/*aqui decia 100px*/
	}

}

@media(max-width:390px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,170px,0);/*aqui decia 100px*/
	}

}

@media(max-width:350px) {
	figure.effect-lily h3,
	figure.effect-lily p {/*baja mucho el texto*/
	/*-webkit-transform: translate3d(0,40px,0);*/
		transform: translate3d(0,140px,0);/*aqui decia 100px*/
	}
	
	figure.effect-lily p span {/*margen del texto*/
		display:none;
	}
	
	figure.effect-lily figcaption > div {/*margen del texto*/
		padding: 2em 1em;
	}

}



