.site-map {
  display: grid;
  gap: 1.5rem;
  --column-number: 3;
  grid-template-columns: repeat(var(--column-number), minmax(0px, 1fr));
}

@media screen and (max-width: 960px) {
  .site-map {
    --column-number: 2;
  }
}

@media screen and (max-width: 640px) {
  .site-map {
    --column-number: 1;
  }
}

.site-map > div {
  background-color: var(--light-gray);
  color: var(--black);

  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: 0.2s;
}

.site-map > div:hover {
  outline: solid 0.25rem var(--yellow);
  background-color: var(--blue);
  color: white;
}

.site-map img {
  aspect-ratio: 2 / 1;
  width: 100%;
  border-radius: 0.25rem;
  box-shadow: 0 4rem 0 -3.5rem var(--yellow);
  margin-bottom: 1.5rem;
}

.site-map h2 {
  max-width: none;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: inherit;
  text-align: center;
  color: var(--blue);
}

.site-map > div:hover h2 {
  color: inherit;
}

.site-map ul {
  color: inherit;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: 0;
  text-align: center;
}

.site-map a {
  color: inherit;
  text-decoration: none;
}

.site-map a:hover {
  color: var(--yellow);
}
