main{
  text-align: center
}

h1{
  margin-top:1em;
}

figure img{
  width:100%;
  height:100%;
  object-fit:cover;
}

figure{
  display:inline-block;
  height:40vh;
  margin:1%;
  border:6px solid rgb(54, 54, 54);
  padding:0px;
  position:relative;
}

figure figcaption{
  background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.9));
  color:white;
  font-size:1.25em;
  position:absolute;
  bottom:0px;
  left:0px;
  width:100%;
  padding-top:10px;
  padding-bottom:3px;
  transition:padding-top 0.5s;
  text-align:center;
}

figure:hover figcaption{
  padding-top: 20px;
}
