.grid {
	position: relative;
	clear: both;
	max-width: 1000px;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	width: 100%;
	height: auto;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	opacity: 1; /* custom */
}

.grid figure figcaption {
	padding: 2em;
	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: 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 {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	word-spacinfg: -0.15em;
	font-weight: 300;
}

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

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

.grid figure p {
	/*letter-spacing: 1px;*/
	font-size: 68.5%;
}

/* Individual effects */

/*-----------------*/
/***** Goliath *****/
/*-----------------*/

figure.effect-goliath {
	background: rgb(76,175,80); /* custom */
}

figure.effect-goliath img,
figure.effect-goliath h2 {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effect-goliath img {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-goliath h2,
figure.effect-goliath p {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 20px 15px;
	font-size: 16pt; /* custom */
	line-height: 20pt; /* custom */
	opacity: 0; /* custom */
	text-align: left;
}

figure.effect-goliath p {
	text-transform: uppercase;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,50px,0);
	transform: translate3d(0,50px,0);
	font-size: 10pt; /* custom */
}

figure.effect-goliath p > a {
	color: rgb(255,255,255); /* custom */
}

figure.effect-goliath:hover img {
	-webkit-transform: translate3d(0,-80px,0);
	transform: translate3d(0,-80px,0);
	opacity: 0.7; /* custom */
}

figure.effect-goliath:hover h2 {
	-webkit-transform: translate3d(0,-80px,0);
	transform: translate3d(0,-80px,0);
	opacity: 1; /* custom */
}

figure.effect-goliath:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}


/*---------------*/
/***** Zoe *****/
/*---------------*/

figure.effect-zoe figcaption {
	top: auto;
	bottom: 0;
	padding: 1em;
	/*height: 5em;*/
	background: rgba(32,32,32,0.8);
	color: rgb(255,255,255);
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,100%,0);
	transform: translate3d(0,100%,0);
	text-align: left;
}

figure.effect-zoe h2 {
	float: left;
	font-size: 16pt;
	line-height: 20pt;
}

figure.effect-zoe p.icon-links a {
	float: right;
	color: #3c4a50;
	font-size: 1.4em;
}

figure.effect-zoe:hover p.icon-links a:hover,
figure.effect-zoe:hover p.icon-links a:focus {
	color: #252d31;
}

figure.effect-zoe p.description {
	position: absolute;
	bottom: 8em;
	padding: 2em;
	color: #fff;
	text-transform: none;
	font-size: 90%;
	opacity: 0;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
	-webkit-backface-visibility: hidden; /* Fix for Chrome 37.0.2062.120 (Mac) */
}

figure.effect-zoe h2,
figure.effect-zoe p.icon-links a {
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,200%,0);
	transform: translate3d(0,200%,0);
}

figure.effect-zoe p.icon-links a span::before {
	display: inline-block;
	padding: 8px 10px;
	font-family: 'feathericons';
	speak: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-eye::before {
	content: '\e000';
}

.icon-paper-clip::before {
	content: '\e001';
}

.icon-heart::before {
	content: '\e024';
}

figure.effect-zoe h2 {
	display: inline-block;
}

figure.effect-zoe:hover p.description {
	opacity: 1;
}

figure.effect-zoe:hover figcaption,
figure.effect-zoe:hover h2,
figure.effect-zoe:hover p.icon-links a {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

figure.effect-zoe:hover h2 {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
}

figure.effect-zoe:hover p.icon-links a:nth-child(3) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

figure.effect-zoe:hover p.icon-links a:nth-child(2) {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
}

figure.effect-zoe:hover p.icon-links a:first-child {
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
}




/* Media queries */
@media screen and (max-width: 50em) {
	.content {
		padding: 0 10px;
		text-align: center;
	}
	.grid figure {
		display: inline-block;
		float: none;
		width: 100%;
	}
}





/* ---------- custom ---------- */
@media (max-width: 799px) {
	.grid {
	  position: relative;
	  clear: both;
	  max-width: 1000px;
	  list-style: none;
	  text-align: center;
	  margin-bottom: -7px;
	}
}

/* Goliath */
@media screen and (max-width: 549px) {
	figure.effect-goliath h2 {
		font-size: 24pt;
		line-height: 28pt;
	}
	figure.effect-goliath p {
		font-size: 11pt;
		line-height: 15pt;
	}
}

@media screen and (min-width: 550px) and (max-width: 699px) {
	figure.effect-goliath h2 {
		font-size: 20pt;
		line-height: 24pt;
	}
	figure.effect-goliath p {
		font-size: 10pt;
		line-height: 14pt;
	}
}

@media (min-width: 700px) and (max-width: 991px) {
	figure.effect-goliath h2 {
		font-size: 18pt;
		line-height: 22pt;
	}
	figure.effect-goliath p {
		font-size: 10pt;
		line-height: 14pt;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	figure.effect-goliath h2 {
		font-size: 13pt;
		line-height: 17pt;
	}
	figure.effect-goliath p {
		font-size: 9pt;
		line-height: 13pt;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
  	figure.effect-goliath h2 {
		font-size: 12pt;
		line-height: 16pt;
	}
	figure.effect-goliath p {
		font-size: 8pt;
		line-height: 12pt;
	}
}

@media (min-width: 1400px) {
  	figure.effect-goliath h2 {
		font-size: 12pt;
		line-height: 16pt;
	}
	figure.effect-goliath p {
		font-size: 8pt;
		line-height: 12pt;
	}
}


/* Zoe */
@media screen and (max-width: 549px) {
	figure.effect-zoe h4 {
		font-size: 24pt;
		line-height: 28pt;
	}
	figure.effect-zoe p {
		font-size: 11pt;
		line-height: 15pt;
	}
}

@media screen and (min-width: 550px) and (max-width: 699px) {
	figure.effect-zoe h4 {
		font-size: 20pt;
		line-height: 24pt;
	}
	figure.effect-zoe p {
		font-size: 10pt;
		line-height: 14pt;
	}
	figure.effect-zoe figcaption i {
	    font-size: 30pt;
	}
}

@media (min-width: 700px) and (max-width: 991px) {
	figure.effect-zoe h4 {
		font-size: 18pt;
		line-height: 22pt;
	}
	figure.effect-zoe p {
		font-size: 10pt;
		line-height: 14pt;
	}
	figure.effect-zoe figcaption i {
	    font-size: 30pt;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	figure.effect-zoe h4 {
		font-size: 13pt;
		line-height: 17pt;
	}
	figure.effect-zoe p {
		font-size: 9pt;
		line-height: 13pt;
	}
	figure.effect-zoe figcaption i {
	    font-size: 24pt;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
  	figure.effect-zoe h4 {
		font-size: 12pt;
		line-height: 16pt;
	}
	figure.effect-zoe p {
		font-size: 8pt;
		line-height: 12pt;
	}
	figure.effect-zoe figcaption i {
	    font-size: 24pt;
	}
}

@media (min-width: 1400px) {
  	figure.effect-zoe h4 {
		font-size: 12pt;
		line-height: 16pt;
	}
	figure.effect-zoe p {
		font-size: 8pt;
		line-height: 12pt;
	}
	figure.effect-zoe figcaption i {
	    font-size: 24pt;
	}
}