body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.container {
  width: 500px;
  height: 500px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.container img {
  width: 100%;
  transition: all 0.8s;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 30%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: all 0.8s;
  background-color: black;
  transform: translateY(100%);
}

.caption h1 {
  text-transform: uppercase;
  margin: 0;
}

.caption p {
  font-size: 18px;
  text-transform: uppercase;
}

.container:hover .caption {
  transform: translateY(0);
}

.container:hover img {
  transform: translateY(-30%);
}
