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

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

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

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

.grid figcaption{
  position:absolute;
  top:0;
  left:0;
  padding:20px;
  background:#2c3f52;
  color:#ed4e6e;
  font-size:1em;
  border-radius:8px;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
}

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

.grid figcaption span:before{
}

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

.cs-style-6 figure img{
  z-index:10;
  transition:transform 0.4s;
}

.no-touch .cs-style-6 figure:hover img, .cs-style-6 figure.cs-hover img{
  transform:translateY(-50px) scale(0.5);
}

.cs-style-6 figcaption{
  height:100%;
  width:100%;
}

.cs-style-6 figcaption h4{
  margin-top:60%;
}

.cs-style-6 figcaption a{
  position:absolute;
  bottom:20px;
  right:20px;
}

@media screen and (max-width: 31.5em) {
  .grid{
    padding:10px 10px 100px 10px;
  }
}

@media screen and (max-width: 31.5em) {
  .grid li{
    width:100%;
    min-width:300px;
  }
}

