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

.grid li {
	display: inline-flex;
	width: auto;
	padding: 0px;
	margin: 0px;
	list-style: none;
	text-align: center;
	
}

.grid figure {
	margin: 0;
	border: 5px solid #fff;
	position: relative;
}

.grid figure:hover {
	
	border: 5px solid #fff;
	position: relative;
	-webkit-box-shadow: 0px 10px 19px -1px rgba(0,0,0,0.63);
    -moz-box-shadow: 0px 10px 19px -1px rgba(0,0,0,0.63);
	box-shadow: 0px 10px 19px -1px rgba(0,0,0,0.63);
}

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

.grid figcaption {
	position: absolute;
	left: 0;
	padding: 20px;
	background: #000;
	color: #999999;
	
	
}

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

.grid figcaption span:before {
	width: 200px;
	margin: 0;
	padding: 0;
	
}

.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	background: #f58220;
	color: #fff;
	opacity:0;
}
.grid figcaption p {
	text-align: center;
	padding: 15px 25px;	
	opacity: 0;
}


/* Caption Style 3 */
.cs-style-3 figure {
	overflow: hidden;
}

.cs-style-3 figure img {
	
}

.no-touch .cs-style-3 figure:hover img,
.cs-style-3 figure.cs-hover img{
	height: auto;
	width: 100%;	
	bottom: 0%;
	opacity: 1;
	
}

.cs-style-3 figure:hover figcaption p {
	text-align: center;
	padding: 15px 25px;	
	opacity: 1;
	color: #fff;
}

.cs-style-3 figcaption {	
	height: 80px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 1;
	transition: height .15s; */
	
}

.no-touch .cs-style-3 figure:hover figcaption,
.cs-style-3 figure.cs-hover figcaption{	
	height: 100%;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 1;	
	transition: height .25s; */
	
}

.cs-style-3 figure:hover figcaption a {
	position: absolute;
	bottom: 15px;
	left: 30%;
	right: 30%;
	opacity: 1;

}


@media screen and (max-width: 31.5em) {
	.grid {
		paddfff: 10px 10px 100px 10px;
	}
	.grid li {
		width: auto;
		min-width: 270px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 991px){

.cs-style-3 figcaption {	
	height: 60px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 1;
	transition: height .15s; */
	
}
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
	
	.cs-style-3 figcaption {	
	height: 60px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 1;
	transition: height .15s; */
	
}
}