
.container1 {
  position: relative;
  width: 50%;
  max-width: 350px;
  margin-top: 50px;
  margin-left: 40px;
}
.container2 {
    position: relative;
    width: 50%;
    max-width: 350px;
    margin-top: -300px;
    margin-left: 450px;
}

.container3 {
    position: relative;
    width: 50%;
    max-width: 350px;
    margin-top: -300px;
    margin-left: 880px;
}
  
/* Make the image to responsive */
.image {
  display: block;
  width: 100%;
  height: 300 px;
}

/* The overlay effect - lays on top of the container and over the image */
.overlay1,.overlay2,.overlay3{
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

/* When you mouse over the container, fade in the overlay title */
.container1:hover .overlay1 {
  opacity: 1;
}
.container2:hover .overlay2 {
    opacity: 1;
}
.container3:hover .overlay3 {
    opacity: 1;
}
