*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body {
	background: #333;
	color: #fff;
	font-weight: 400;
	font-size: 1em;
	font-family: 'Lato', Arial, sans-serif;
}

a, button {
	outline: none;
}

a {
	color: #f0f0f0;
	text-decoration: none;
}

a:hover, a:focus {
	color: #333;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}
 
.clearfix:after {
	clear: both;
}

/* Common style */
.grid {
	text-align:center;
	padding:2% 0 8%;
}

.grid a {
	width: 16%;
	padding:0 10px;
	color: #333;
	display:inline-block;
	vertical-align:top;
}

.grid figure {
	position: relative;
	overflow: hidden;
	margin: 5px;
	background: #333;
}

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

.grid figcaption {
	position: absolute;
	top: 0;
	z-index: 11;
	width: 100%;
	height: 100%;
	text-align: center;
}

.grid figcaption h2 {
	margin: 0 5px 5px;
	color: #987817;
	font-size:20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height:25px;
	-webkit-transition: -webkit-transform 0.3s;
	transition: 0.3s;
}

.grid figcaption p {
	padding: 0 20px;
	font-size:15px;
	color: #b6b6ae;
	font-style:italic;
	font-weight: 300;
	line-height:12px;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

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

.grid figure button {
	position: absolute;
    padding: 2px 0;
	width:80px;
    top: 45%;
    left: calc(50% - 40px);
	font-size:14px;
    background: transparent;
    border: solid 3px #fff;
    border-radius: 2px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
	opacity:0;
	transform:scale(0);
	box-shadow:none;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.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;
	left:0;
	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(7px);
	transform: translateY(7px);
}

.grid a:hover figcaption p {
	opacity: 0;
}
.grid a:hover figure button {
	opacity:1;
	transform:scale(1);
}
	@media screen and (max-width:1440px){
		.grid a {
			width:18%;
			padding:0 5px;
		}
		.grid figcaption h2 {
			font-size:18px;
		}
		.grid figcaption p {
			font-size:14px;
		}
			
	}
	@media screen and (max-width:1200px){
		.grid a {
			width: 19%;
			padding: 0 0px;
		}
		.grid figure {
			margin:3px;
		}
			
	}
	@media screen and (max-width:1050px) {
		.grid a {
			width:25%;
		}
		.grid figure {
			margin: 3px 5px 20px;
		}
	}
	@media screen and (max-width:800px) {
		.grid a {
			width:28%;
		}
	}
	@media screen and (max-width:700px) {
		.grid a {
			width:31%;
		}
	}
	@media screen and (max-width:600px) {
		.grid a {
			width:40%;
		}
		.grid figcaption h2 {
			font-size: 16px;
		}
		.grid figcaption p {
			font-size: 13px;
		}
	}
	@media screen and (max-width:500px) {
		.grid a {
			width:45%;
		}
	}
	@media screen and (max-width:400px) {
		.grid a {
			width:47%;
		}
		.grid figure {
			margin: 3px 3px 20px;
		}
		.grid figcaption h2, .grid figcaption p {
			-webkit-transform: translateY(15px);
			transform: translateY(15px);
		}
		.grid figcaption h2 {
			letter-spacing:0;
		}
	}
	














