/* Common style */
.grid {
	margin: 0 auto 120px;
	max-width: 1200px;
	width: 100%;
}

.grid a {
	float: left;
	max-width: 250px;
	width: 25%;
	color: #333;
}

.grid a:nth-child(odd) {
	margin: 30px 40px -30px 40px;
}

.grid figure {
	position: relative;
	overflow: hidden;
	margin: 0 0 20px;
	background: #333;
	-webkit-box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
	-moz-box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
}

.grid figure img {
	position: relative;
	display: block;
	width: 100%;
	opacity: 0.7;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	padding-top:45px;
}

.grid figcaption {
	position: absolute;
	top: 0;
	z-index: 11;
	width: 100%;
	height: 100%;
	text-align: center;
}

.grid figcaption h2 {
	padding:15px 0 15px;
	color: #4D4D4D;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 300;
	font-size: 1em;
	-webkit-transition: -webkit-transform 0.3s;s
	transition: transform 0.3s;
	width:100%;
	display:block;
	text-align:center;
}

.grid figcaption p {
	color: #aaa;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	font-weight:normal;
	font-size:0.9em;
	padding:0 20px;
}

.grid figcaption h2,
.grid figcaption p {
	-webkit-transform: translateY(50px);
	transform: translateY(50px);
}

.grid figure button {
	position: absolute;
	padding: 4px 20px;
	margin-left:5px;
	border: none;
	font-weight:bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	font-family:Arial, Helvetica, sans-serif;
}

.grid figcaption,
.grid figcaption h2,
.grid figcaption p,
.grid figure button {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Style for SVG */
.grid svg {
	position: absolute;
	top: -1px; /* fixes rendering issue in FF */
	z-index: 10;
	width: 100%;
	height: 100%;
}

.grid svg path {
	fill: #fff;
}

/* Hover effects */
.grid a:hover figure img {
	opacity: 1;
}

.grid a:hover figcaption h2,
.grid a:hover figcaption p {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.grid a:hover figcaption p {
	opacity: 0;
}

/* Individual styles */

.grid figure button {
	top: 55%;
	left: 50%;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	opacity: 0;
	-webkit-transform: translateY(-50%) translateX(-50%) scale(0.25);
	transform: translateY(-50%) translateX(-50%) scale(0.25);
}

.grid a:hover figure button {
	opacity: 1;
	-webkit-transform: translateY(-50%) translateX(-50%) scale(1);
	transform: translateY(-50%) translateX(-50%) scale(1);
}

