#cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.44rem;
    padding: 1.44rem 0.833rem;
    font-family: "Baskervville SC", serif;
    font-weight: 400;
    font-style: normal;
}

#cards figure {
    position: relative;
}

#cards a{
  border-radius: 0.5rem;
  box-shadow: 2px 4px 10px rgba(168, 182, 245, 0.541)  ;
  background-color: white;
  overflow: hidden;
  text-decoration: none;
}

#cards img {
  width: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
}

#cards section{
  padding: 0.833rem;
}

#cards h2 {
  font-size: clamp(0.833rem, 1.6vw + 0.579rem, 1.728rem);
  opacity: 0.5;
  transition: opacity 1.5s;
}

#cards p{
    opacity: 0;
    transition: 1.0s;
    color: black;
}

#cards .over{
  position: relative;
  transform: translateY(1.728rem);
  opacity: 0;
  transition: all 0.30s;
}

#cards a:hover {
  transition: color 1s;
  
}



#cards a:hover h2, #cards a:hover p{
  opacity: 1;
  
}

#cards section{
  transform: translateY(2.074rem);
  transition: transform 0.25s;
}

#cards a:hover section{
  transform: translateY(0);
 
}

#cards a:hover .over{
  transform: translateY(0);
  opacity: 1;
 
}

@media screen and (min-width:525px) {
  #cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width:925px) {
  #cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}



  