@charset "utf-8";
/* CSS Document */
.grid {
    padding: 20px 20px 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;
    text-align: center;
}
.grid li {
    display: inline-block;
    width: 400px;
    margin: 0;
    padding: 20px;
    text-align: center;
    position: relative;
}

@media only screen and (max-width: 33.15rem) {
.grid {
    padding: 3% 3% 5% 3%;
}
.grid li {
    display: block;
    width: 90%;
    padding: 3%;
    max-width: 90%;
}
}
.grid figure {
    margin: 0;
    position: relative;
}
.grid figure img {
    max-width: 100%;
    display: block;
    position: relative;
    top: 1.5rem;
}
/*@media only screen and (max-width: 50rem){
	.grid figure {
	max-width: 80%;
}
@media only screen and (max-width: 50rem){
	grid li{
	max-width: 80%;
	}
}*/
.grid figure img {
    top: .5rem;
}
.grid figcaption {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0px;
    text-align: center;
    background: rgba(255,255,255,.8);
    color: #000;
}
.grid figcaption h2 {
    margin: 0;
    padding-top: .6rem;
    color: #35C813;
    width: 100%;
}
.grid figcaption a {
    text-align: center;
    padding: 5px 10px;
    display: block;
    background: #35C813;
    color: #fff;
}
.grid span {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 2%;
    color: #333;
}
/* Caption Style 5 */
.cs-style-5 figure img {
    z-index: 10;
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
    -webkit-transition: -webkit-transform 0.4s;
    -moz-transition: -moz-transform 0.4s;
    transition: transform 0.4s;
}
.no-touch .cs-style-5 figure:hover img, .cs-style-5 figure.cs-hover img {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1) rotate(-2deg);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5)
}
.cs-style-5 figcaption {
    height: 100%;
    max-height: 300px;
    width: 100%;
    max-width: 400px;
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    -webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
    -moz-transition: -moz-transform 0.4s, opacity 0.4s;
    transition: transform 0.4s, opacity 0.4s;
}
.no-touch .cs-style-5 figure:hover figcaption, .cs-style-5 figure.cs-hover figcaption {
    -webkit-transform: scale(.7);
    -moz-transform: scale(.7);
    -ms-transform: scale(.7);
    transform: scale(.7);
    opacity: 0;
}

@media only screen and (max-width: 33.15rem) {
.no-touch .cs-style-5 figure:hover figcaption, .cs-style-5 figure.cs-hover figcaption {
    -webkit-transform: scale(.5);
    -moz-transform: scale(.5);
    -ms-transform: scale(.5);
    transform: scale(.5);
}
}
.cs-style-5 figure a {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 20px;
}

/*@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}
	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
*/
