*, *:after, *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.box {
  background: #030c17;
}

.grid {
  position: relative;
  clear: both;
  margin: 0 auto;
  max-width: 1000px;
  list-style: none;
  text-align: center;
  float: left;
  overflow: hidden;
  height: auto;
  text-align: center;
}

.grid img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 1;
}

.grid .caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 17%;
  color: #fff;
}

.box h2 {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 5px;
  background-color: rgba(62,62,62,0.65);
  margin-bottom: 0;
  -webkit-transition: all 0.5s, -webkit-transform 0.5s;
  transition: all 0.5s, transform 0.5s;
  text-shadow: 1px 1px 1px black;
}

.box:hover h2 {
  background-color: rgb(119,77,0);
  -webkit-transition: all 0.5s, -webkit-transform 0.5s;
  transition: all 0.5s, transform 0.5s;
}

@media (min-width: 576px) {
  .box h2 {
    font-size: 20px;
    padding: 12px;
  }
}

.box img {
  -webkit-transition: scale 0.5s, -webkit-transform 0.5s;
  transition: scale 0.5s, transform 0.5s;
}

.box:hover img {
  -webkit-transition: scale 0.5s, -webkit-transform 0.5s;
  transition: scale 0.5s, transform 0.5s;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

