body {
  /* background-color: red; */
}

ul,
li {
  list-style-type: none;
}

/* li {
  outline: 1px solid fuchsia;
} */

.index-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--padding);
}

header {
  position: sticky;
  top: 2lh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 1lh;

  padding-top: 30vh;
  padding-bottom: 30svh;

  line-height: 1;
  opacity: 1;

  transition: opacity 0.1s linear;
}

@media (max-width: 768px) {
  .index-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  header {
    padding-top: 15svh;
  }

}

.index-gallery li {
  aspect-ratio: 1/1;
  /* Makes LI elements square */
  position: relative;
  list-style: none;
}

.index-gallery li a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.index-gallery li figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-gallery li img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Respects image proportions */
  display: block;
}

footer {
  padding-top: 4cqh;
}