

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.contenedor-1:hover .image {
  opacity: 0.3;
}

.contenedor-1:hover .middle {
  opacity: 1;
}

.contenedor-2:hover .image {
  opacity: 0.3;
}

.contenedor-2:hover .middle {
  opacity: 1;
}
.contenedor-3:hover .image {
  opacity: 0.3;
}

.contenedor-3:hover .middle {
  opacity: 1;
}
.contenedor-4:hover .image {
  opacity: 0.3;
}

.contenedor-4:hover .middle {
  opacity: 1;
}

.text {

  background-color: #4CAF50;
  color: white;
  font-size: 16px;
  padding: 16px 32px;
}
