.grid {
	padding: 20px 20px 50px 20px;
	max-width: 1300px;
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

.grid li {
	display: inline-block;
	width: 272px;
	margin: 0;
	/*padding: 2px;*/
	text-align: left;
	position: relative;
    border-bottom: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d5;
}

.grid li:last-child{
    /*border-right:none;*/
}

.grid figure {
	margin: 0;
	position: relative;
    /*border-bottom:solid 1px #d5d5d5;
    border-right:solid 1px #d5d5d5;*/
}

.grid figure img {
	max-width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding-top: 90px;
    padding-right:2px;
	background: #f9f9f9;
	color: #696969;
}

.grid figcaption h3 {
	margin: 0;
	padding: 0;
	color: #fff;
}



.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	background: #ffa700;
	color: #fff;
}
.grid figcaption a:hover {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	background: #1d689d;
	color: #fff;
}

/* Individual Caption Styles */


/* Caption Style 3 */
.cs-style-3 figure {
	overflow: hidden;
}

.cs-style-3 figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-3 figure:hover img,
.cs-style-3 figure.cs-hover img {
	-webkit-transform: translateY(-50px);
	-moz-transform: translateY(-50px);
	-ms-transform: translateY(-50px);
	transform: translateY(-50px);
}

.cs-style-3 figcaption {
	height: 270px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 0;
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-3 figure:hover figcaption,
.cs-style-3 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-3 figcaption a {
	position: absolute;
	bottom: 20px;
	right: 20px;
}

@media(max-width:1024px) {

    .grid figcaption{
        position:relative;
        padding-top:0px;
    }
    .cs-style-3 figcaption{
        height:auto;
        opacity:1;
        transform:none;
        text-align:center;
    }
    .cs-style-3 figcaption span{
        text-align:left !important;
    }
    .cs-style-3 figcaption a{
        position:relative;
        right:auto;
    }

    .cs-style-3 figure img {	
	transition: none;
}

.no-touch .cs-style-3 figure:hover img,
.cs-style-3 figure.cs-hover img {
	
	transform: none;
}

.grid li{
    width:100%;
    text-align:center;
    border-right:none;
}
.grid figure img{
    display:inline-block;
}
/*@media(max-width:600px){
    .grid li{
        border-right:none;
    }

}*/

}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}
	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
