﻿.grid {
	padding: 20px 20px 20px 20px;
	max-width: 1300px;
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

ul.grid li { width: 20%; height: 20%;}

.grid li {
	display: inline-block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 20px;
	text-align: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
	height: 100%;
}

.grid figure img {
	width: 100%;
	height: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 5% 0;
	background: #D6D6D6;
	color: #000;
    text-align:center;
}

.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #565559;
	text-align: center;
}



.grid figcaption a, .grid figcaption a:hover, .grid figcaption a:active, .grid figcaption a:visited {
    font-size: 18px;
    color: #565569;
    font-weight: bold;
}


/* Caption Style 6 */
.cs-style-6 figure img {
	z-index: 10;
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-6 figure:hover img,
.cs-style-6 figure.cs-hover img {
	-webkit-transform: translateY(-50px) scale(0.5);
	-moz-transform: translateY(-50px) scale(0.5);
	-ms-transform: translateY(-50px) scale(0.5);
	transform: translateY(-50px) scale(0.5);
}

.cs-style-6 figcaption {
	height: 100%;
	width: 100%;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
}

.cs-style-6 figcaption h3 {
	margin-top: 60%;
}

/*.cs-style-6 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}*/

@media screen and (min-width:600px) and (max-width: 1100px) {
ul.grid li {
		width: 40%;
	}
}

@media screen and (max-width: 599px) {
	.grid {
		padding: 10px 10px 10px 10px;
	}
	ul.grid li {
		width: 50%;
	}
}
