/* Hover Image Thing */
.grid2 {
	margin: 10px 130px;
	max-width: 1000px;
}

.grid2 a {
	float: left;
	max-width: 500px;
	color: #333;
}

.grid2 a:nth-child(odd) {
	margin:0;
}

.grid2 figure {
	position: relative;
	overflow: hidden;
	margin: 30px;
	background: #333;
}

.grid2 figure img {
	position: relative;
	display: block;
	width: 100%;
	opacity: 0.7;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.grid2 figcaption {
	position: absolute;
	top: 0;
	z-index: 11;
	padding: 10px;
	width: 100%;
	height: 100%;
	text-align: center;
	line-height:32px;
}

.grid2 figcaption h2 {
	font-style:italic;
	letter-spacing:2px;
	font-family:'Raleway','Helvetica', 'Arial', sans serif;
	color:#ffd923;
	text-align:center;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
	margin-top:-0.5px;
	font-size: 130%;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}

.grid2 figcaption p {
	padding: 0 20px;
	color: #aaa;
	font-weight: 300;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.grid2 figcaption h2,
.grid2 figcaption p {
	-webkit-transform: translateY(50px);
	transform: translateY(50px);
}

.grid2 figure button {
	position: absolute;
	padding: 4px 20px;
	border: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: bold;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.grid2 figcaption,
.grid2 figcaption h2,
.grid2 figcaption p,
.grid2 figure button {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Style for SVG */
.grid2 svg {
	position: absolute;
	top: -1px; /* fixes rendering issue in FF */
	z-index: 10;
	width: 100%;
	height: 100%;
}

.grid2 svg path {
	fill: #fff;
}

/* Hover effects */
.grid2 a:hover figure img {
	opacity: 1;
}

.grid2 a:hover figcaption h2,
.grid2 a:hover figcaption p {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.grid2 a:hover figcaption p {
	opacity: 0;
}

.grid2 figure button {
	top: 50%;
	left: 50%;
	border: 3px 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);
}

.grid2 a:hover figure button{
	opacity: 1;
	-webkit-transform: translateY(-50%) translateX(-50%) scale(1);
	transform: translateY(-50%) translateX(-50%) scale(1);
}

/* Media Queries */
/* Let's redefine the width of each anchor and the margins */

@media screen and (max-width: 58em) {
	.grid2 a {
		width: 33.333%;
	}

	.grid2 a:nth-child(odd) {
		margin: 0;
	}

	.grid2 a:nth-child(3n-1) {
		margin: 30px 0 -30px 0;
	}
}

@media screen and (max-width: 45em) {
	.grid2 {
		max-width: 500px;
	}

	.grid2 a {
		width: 50%;
	}

	.grid2 a:nth-child(3n-1) {
		margin: 0;
	}

	.grid2 a:nth-child(even) {
		margin: 30px 0 -30px 0;
	}


	.grid2 figcaption h2 {
		margin-bottom: 0px;
		-webkit-transform: translateY(30px);
		transform: translateY(30px);
	}

	.grid2 figcaption p {
		margin: 0;
		padding: 0 10px;
	}
}

@media screen and (max-width: 27em) {
	.grid2 {
		max-width: 250px;
	}

	.grid2 a {
		width: 100%;
	}

	.grid2 a:nth-child(even) {
		margin: 0;
	}
}

/* Hover Image Thing */