.grid {
	margin: auto;
	width: 95%;
	list-style: none;
	text-align: center;
	padding: 0px;
}

.grid li {
	display: inline-block;
	width: 350px;
	margin: 20px;
	text-align: left;
	position: relative;
}

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

.grid figure div {
	max-width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-block;
	padding: 10px;
	background: #000;
}

.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 16px;
}

.grid figcaption a {
	text-align: center;
	padding: 8px;
	border-radius: 2px;
	display: inline-block;
	background-color: #3498DB;
	color: #fff;
}

.grid figcaption {
	color: #3498DB;
}

/* Individual Caption Styles */

/* Caption Style 2 */
.cs-style-2 figure div {
	height: 250px;
	z-index: 10;
	-webkit-transition: all 0.4s;
	-moz-transition: all 0.4s;
	transition: all 0.4s;
	-webkit-filter: grayscale(80%) contrast(110%) brightness(110%);
	filter: grayscale(100%);
}

.no-touch .cs-style-2 figure:hover div,
.cs-style-2 figure.cs-hover div {
	-webkit-transform: translateY(-60px);
	-moz-transform: translateY(-60px);
	-ms-transform: translateY(-60px);
	transform: translateY(-60px);
	-webkit-filter: grayscale(0%);
	filter: grayscale(0%);
	cursor: pointer;
}

.cs-style-2 figcaption {
	height: 60px;
	width: 100%;
	top: auto;
	bottom: 0;
}

.cs-style-2 figcaption a {
	position: absolute;
	right: 10px;
	top: 15px;
}

@media screen and (max-width: 31.5em) {
	.grid {
		width: 100%;
		margin: 0px 0px 20px 0px;
		padding: 5px;
	}

	.grid li {
		width: 300px;
		margin: 10px;
	}

	.cs-style-2 figure div {
		z-index: 0;
		-webkit-filter: none;
		filter: none;
	}

	.no-touch .cs-style-2 figure:hover div,
	.cs-style-2 figure.cs-hover div {
		-webkit-transform: none;
		-moz-transform: none;
		-ms-transform: none;
		transform: none;
	}
}

.btn-back {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.btn-back:active {
	background: rgba(255, 255, 255, 0.2);
}