/* ==========================================================================
   games-slider.css
   ========================================================================== */

.games-slider {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-h2-text);
  cursor: grab;
}

h2 + .games-slider {
  margin-top: var(--space-h2-text);
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-card);
  padding: 0.75rem;
  height: 100%;
}

.game-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-card);
  margin: 0;
  padding: 0;
}

.game-card__name {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  margin-bottom: 0;
  flex-grow: 1;
}

.game-card__btn {
  font-size: 0.875rem;
  padding-block: 0.625rem;
}

.games-slider .swiper-slide {
  height: auto;
  width: 160px;
}

@media (min-width: 480px) {
  .games-slider .swiper-slide {
    width: 190px;
  }
}

@media (min-width: 1024px) {
  .games-slider .swiper-slide {
    width: 210px;
  }
}

.games-slider__nav {
  color: var(--color-heading-gold);
}

.games-slider__nav::after {
  font-size: 1.25rem;
}

@media (max-width: 767px) {
  .games-slider__nav {
    display: none;
  }
}
