/* Homepage and game library grids */
.main-home > .module-new-games,
.main-home > .module-use-urls,
.main-game-library > .module-new-games,
.main-game-library > .main-pagination {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.main-home .module-new-games .games,
.main-game-library .module-new-games .games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.main-home .module-new-games .games .li,
.main-game-library .module-new-games .games .li {
  margin: 0;
  min-width: 0;
}

.main-home .module-new-games .games .li .cover,
.main-game-library .module-new-games .games .li .cover {
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
  border-radius: 6px;
}

.main-home .module-new-games .games .li .cover img,
.main-game-library .module-new-games .games .li .cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.main-home .module-new-games .games .li .name,
.main-game-library .module-new-games .games .li .name {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 761px) {
  .game-library-page .page {
    min-height: calc(100vh - 150px);
  }
}

@media (max-width: 1120px) {
  .main-home .module-new-games .games,
  .main-game-library .module-new-games .games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .main-home .module-new-games .games,
  .main-game-library .module-new-games .games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main-home .module-new-games .games,
  .main-game-library .module-new-games .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-home .module-new-games .games,
  .main-game-library .module-new-games .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}
