.grid {
	padding: 20px 0 100px 0;
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

.grid li {
	display: inline-block;
	width: 282px;
	margin: 0;
	padding: 15px;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure img {
	max-width: 100%;
	display: block;
	position: relative;
	border-radius: 5px;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	background: #425062;
	color: white;
}

.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #fff;
}

/* Caption Style */
.cs-style-7 li:first-child { z-index: 20; }
.cs-style-7 li:nth-child(2) { z-index: 19; }
.cs-style-7 li:nth-child(3) { z-index: 18; }
.cs-style-7 li:nth-child(4) { z-index: 17; }
.cs-style-7 li:nth-child(5) { z-index: 16; }
.cs-style-7 li:nth-child(6) { z-index: 15; }
.cs-style-7 li:nth-child(7) { z-index: 14; }
.cs-style-7 li:nth-child(8) { z-index: 13; }
.cs-style-7 li:nth-child(9) { z-index: 12; }
.cs-style-7 li:nth-child(10) { z-index: 11; }
.cs-style-7 li:nth-child(11) { z-index: 10; }
.cs-style-7 li:nth-child(12) { z-index: 9; }
.cs-style-7 li:nth-child(13) { z-index: 8; }
.cs-style-7 li:nth-child(14) { z-index: 7; }
.cs-style-7 li:nth-child(15) { z-index: 6; }
.cs-style-7 li:nth-child(16) { z-index: 5; }
.cs-style-7 li:nth-child(17) { z-index: 4; }
.cs-style-7 li:nth-child(18) { z-index: 3; }
.cs-style-7 li:nth-child(19) { z-index: 2; }
.cs-style-7 li:nth-child(20) { z-index: 1; }

.cs-style-7 figure img {
	z-index: 30;
}

.cs-style-7 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	-moz-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
	box-shadow: 0 0 0 0px #425062;
	border-radius: 5px;
}

.no-touch .cs-style-7 figure:hover figcaption,
.cs-style-7 figure.cs-hover figcaption {
	opacity: 1;
	height: 135%;
	box-shadow: 0 0 0 10px #425062;
}

.cs-style-7 figcaption h3 {
	margin-top: 120%;
}

.cs-style-7 figcaption h3,
.cs-style-7 figcaption span{
	opacity: 0;
	-webkit-transition: opacity 0s;
	-moz-transition: opacity 0s;
	transition: opacity 0s;
}

.no-touch .cs-style-7 figure:hover figcaption h3,
.no-touch .cs-style-7 figure:hover figcaption span,
.cs-style-7 figure.cs-hover figcaption h3,
.cs-style-7 figure.cs-hover figcaption span{
	-webkit-transition: opacity 0.3s 0.2s;
	-moz-transition: opacity 0.3s 0.2s;
	transition: opacity 0.3s 0.2s;
	opacity: 1;
}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 0 100px 0;
	}
	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
