#gallery{
    text-align:center;
    width:100%;
}

#gallery h1{
  padding:1em 0 0.5em 0;
}

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

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

figure figcaption{
  background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.9));
  font-family: 'Aref Ruqaa', serif;
  color:white;
  font-size:1.25em;
  position:absolute;
  bottom:0px;
  left:0px;
  width:100%;
  padding: 10px 0 3px 0;
}

figure figcaption p{
  font-family: inherit;
  font-size:0;
  display:block;
  transition:font-size 0.5s;
}


figure:hover figcaption p{
  font-size:0.9em;
}
