:root {
  --pageBlack: #262626;
  --pageYellow: #ffd83e;
  --pagePurple: #552b55;
  --pageRed: #E1332d;
  --pageGreen: #2ce771;
  --lightGreen: #006266;
  --pageGrey: #212121;
  --lightBlue: #42a8de;

}
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pageGrey);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.fig {
  width: 500px;
  color: white;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.fig img {
  width: 100%;
}
.fig:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--lightGreen);
  opacity: 0.5;
  transform: translateY(100%);
  transition: all 0.2s;
  transition-delay: 0.25s;
}
.fig:hover:before {
  transform: translateY(0);
  transition-delay: 0s;
}
.fig .caption {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
  opacity: 0;
  transition: all .25s;
}
.fig:hover .caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.fig h3, .fig h5 {
  margin: 0;
  letter-spacing: 1px;
}
.fig h3 {
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 5px;
}
.fig h5 {
  padding: 3px 5px;
}