.hvrbox * {
  box-sizing: border-box;
}

.hvrbox {
  position: relative;
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  height: auto;
  box-shadow: #777 2px 4px 10px;
  border-bottom: 10px;
  border-right: 10px;
}

.hvrbox img {
  max-width: 100%;
}

.hvrbox .hvrbox-layer_bottom {
  display: block;
}

.hvrbox .hvrbox-layer_top {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 94, 156, 0.7);
  padding: 0;
  -moz-transition: all 0.3s ease-in-out 0s;
  -webkit-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}



.hvrbox:hover .hvrbox-layer_top, .hvrbox:focus-within .hvrbox-layer_top {
  opacity: 1;
  padding: 6px;
}

.hvrbox:hover .hvrbox-caption, .hvrbox:focus-within .hvrbox-caption {
  opacity: 0;
}

.hvrbox .hvrbox-caption {
  position: absolute;
  display: inline-block;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  line-height: 30px;
  text-shadow: rgba(0, 0, 0, 0.8) 0 0 24px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.45) 20%, rgba(0, 0, 0, 0.45) 80%, rgba(0, 0, 0, 0));
  width: 88%;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.hvrbox .hvrbox-description {
  position: absolute;
  display: inline-block;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  padding: 6%;
  width: 100%;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.hvrbox-touch_screen {
  visibility: visible;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hvrbox-border {
  border: 1px solid white;
  width: 100%;
  height: 100%;
}