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

.grid li {
	margin: 0;
	padding: 20px;
	float: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
	box-shadow: 1px 18px 10px -10px #575454;
}

.grid figure .photo-item {
	height: 200px;
}

.grid figure img {
	width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	background: #D28EFF;
	color: #7700BB;
}

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

.grid figcaption span:before {
	content: 'by ';
}

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

.grid li h3 {
	margin: 15px 0;
	text-align: center;
}
.grid li >h3 {
	border: 1px solid #7e7e7e;
	background:rgba(204,58,213,0.2);
}

/* Individual Caption Styles */

/* Caption Style 1 */
.cs-style-1 figcaption {
	height: 100%;
	width: 100%;
	opacity: 0;
	text-align: center;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	-moz-transition: -moz-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
}

.no-touch .cs-style-1 figure:hover figcaption,
.cs-style-1 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translate(15px, 15px);
	-moz-transform: translate(15px, 15px);
	-ms-transform: translate(15px, 15px);
	transform: translate(15px, 15px);
}

.cs-style-1 figcaption h3 {
	margin-top: 20px;
}

.cs-style-1 figcaption span {
	display: block;
}

.cs-style-1 figcaption a {
	margin-top: 30px;
}

@media only screen and (min-width : 320px) {
	.grid li {
		width: 100%;
	}
	.grid figure a img {
	}
}

@media only screen and (min-width : 640px) {
	.grid li {
		width: 50%;
	}
	.grid figure a img {
		height: 265px;
	}
}

@media only screen and (min-width : 768px) {
	.grid figure a img {
		height: 295px;
	}
}

@media only screen and (min-width : 960px) {
	.grid li {
		width: 25%;
	}
	.grid figure a img {
		height: 365px;
	}
}

@media only screen and (min-width : 1024px) {
	.grid figure a img {
		height: 240px;
	}
}

@media only screen and (min-width : 1280px) {
	.grid figure a img {
		height: 100%;
	}
}