@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic);

*, *:after, *:before { border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

.grid {
	overflow: hidden;
	margin: 0;
	width: 100%;
	list-style: none;
	text-align: center;
	font-family:Open Sans, Arial, Helvetica, sans-serif;
}

/* Common style */
.grid figure {
	position: relative;
	z-index: 1;
	display: inline-block;
	overflow: hidden;
	margin:10px;
	width: 350px;
	height: 243px;
	text-align: center;
	cursor: pointer;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(153,153,153,1);
	-moz-box-shadow: 0px 0px 5px 0px rgba(153,153,153,1);
	box-shadow: 0px 0px 5px 0px rgba(153,153,153,1);
}

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

.grid figure figcaption {/*
	padding: 2em;*/
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

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

.grid figure figcaption,
.grid figure a {
	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 a {
	z-index: 1000;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
	color:#fff;
}

.grid figure h2 {
	font-size:22px;
	font-weight:bold;
	color:#000;
	text-shadow: 0px 0px 2px rgba(255,255,255, 1);
	background:rgba(255,255,255,0.3);
}

/*.grid figure h2 span {
	font-weight: 800;
}*/

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	font-size: 13px;
	color:#fff;
	text-shadow: 0px 0px 2px rgba(255,255,255,0.5);
}

/* Individual effects */


figure.effect-marley figcaption {
	text-align: right;
}

figure.effect-marley figcaption:hover {
	background:rgba(0,0,0, 0.5);
}


	

figure.effect-marley h2,
figure.effect-marley p {
	position: absolute;
	right: 20px;
	left: 20px;
}


figure.effect-marley p {
	bottom: 10px;
	line-height: 17px;
	-webkit-transform: translate3d(0,100%,0);
	transform: translate3d(0,100%,0);
}

figure.effect-marley h2 {
	top: 20px;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,20px,0);
	transform: translate3d(0,20px,0);
}

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

figure.effect-marley h2::after {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 4px;
	background: #fff;
	content: '';
	-webkit-transform: translate3d(0,40px,0);
	transform: translate3d(0,40px,0);
}

figure.effect-marley h2::after,
figure.effect-marley p {
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-marley:hover h2::after,
figure.effect-marley:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
/*@media screen and (max-width: 69.5em) {
	.grid figure {
		width: 50%;
	}	

	.grid figure figcaption {
		font-size: 90%;
	}
}


@media screen and (max-width: 41.5em) {

	.grid figure {
		width: 100%;
	}
}*/

