.categories-wrapper {
  display: grid;
  gap: 10px 2px;
  grid-template-columns: 1fr 1fr;
}

.categories-wrapper img {
  width: 100%;
  aspect-ratio: 3/4;
}
.categories-wrapper span {
  margin-top: 15px;
  margin-bottom: 0 !important;
  padding-left: 5px;
}
.categories-page h1 {
  margin-bottom: 7rem;
}
.categories-wrapper > a {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .categories-wrapper {
    gap: 20px 30px;

    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 992px) {
  .categories-wrapper {
    gap: 40px 30px;
  }
  .categories-page {
    padding: 0 25px;
  }
  .categories-page h1 {
    margin-bottom: 15rem;
  }
  .categories-wrapper span {
    padding-left: 0;
    min-height: unset;
  }
}

@media screen and (min-width: 1150px) {
  .categories-wrapper img {
    flex: 1;
  }
}
