/* @keyframes slideFromTop {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
} */

nav {
  display: flex;
  gap: 12pt;
  /* justify-content: space-between; */
  margin-bottom: 12pt;
}

figure {
  box-sizing: content-box;
  position: relative;
}

figcaption {
  /* position: absolute; */
  bottom: 0;
  margin-top: 6pt;
  width: 100%;
  opacity: 1;
  color: var(--color-bright);
  margin-bottom: 6pt;
  padding-bottom: 3pt;
  backdrop-filter: blur(2px);
}

figcaption h1 {
  font-size: 12pt;
  background-color: transparent;
}

figcaption h1:nth-of-type(odd) {
  background-color: var(--color-bright);
  color: var(--color-dark);
}

figcaption h1:nth-of-type(even) {
  color: var(--color-bright);
  background-color: var(--color-dark);
}

figcaption p {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  grid-gap: 12pt;
}

.image-wrapper {
  position: relative;
  /* Make sure the parent li is positioned */
  /* border-bottom: 1rem darkgray solid; */
  /* border-top: 1rem darkgray solid; */
}

.image-wrapper:hover::before {
  content: '';
  opacity: 0;
  /* display: none; */
}

.image-wrapper img {
  max-width: 100%;
}

/* li,
h1 {
  animation: slideFromTop 0.5s ease-in-out;
} */

@media only screen and (max-width: 779px) {
  .products {
    display: block;
  }

}