.container {
  padding: 1% 1% 0% 1%;
}
.container:after {
  content: "";
  display: inline-block;
  width: 100%;
}

.box {
  width: 96%;
  margin: 2%;
  padding-bottom: 96%;
  height: 0;
  position: relative;
  float: left;
  cursor: pointer;
  overflow: hidden;
}

.box:after {
  content: "";
  position: absolute;
  background-color: #000;
  opacity: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  -ms-transition: all 0.15s ease-out;
  -o-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

.box:hover::after {
  background-color: #000;
  opacity: 0.7;
}

.container .box .caption {
  position: absolute;
  z-index: 6;
  width: 90%;
  margin-left: 5%;
  top: 50%;
  -webkit-transform: scale(3);
  -moz-transform: scale(3);
  -ms-transform: scale(3);
  -o-transform: scale(3);
  transform: scale(3);
  text-align: center;
  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  -ms-transition: all 0.15s ease-out;
  -o-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
  font: 1.4em normal Arial, sans-serif;
  color: #fff;
  opacity: 0;
}

.box:hover .caption {
  -webkit-transform: scale(1) translate(0%, -50%);
  -moz-transform: scale(1) translate(0%, -50%);
  -ms-transform: scale(1) translate(0%, -50%);
  -o-transform: scale(1) translate(0%, -50%);
  transform: scale(1) translate(0%, -50%);
  opacity: 1;
}

.box img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 4;
  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  -ms-transition: all 0.15s ease-out;
  -o-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

.box:hover img {
  height: 150%;
}
@media all and (min-width: 350px) {
  .container .box {
    width: 48%;
    margin: 1%;
    padding-bottom: 48%;
  }
}
@media all and (min-width: 800px) {
  .container .box {
    width: 31.3333%;
    padding-bottom: 30%;
  }
}
@media all and (min-width: 1200px) {
  .container .box {
    width: 23%;
    padding-bottom: 23%;
  }
}
