.custom-slider {
  width: 100%;
  height: 40rem;
  padding: var(--spacer-xs);
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
  cursor: grab;
  background: var(--white);
}

/* Force the wrapper to move at a perfectly constant speed */
.swiper-free-mode > .swiper-wrapper {
  transition-timing-function: linear !important;
}

.swiper-slide {
  width: fit-content !important;
}

.swiper-slide img,
.swiper-slide video {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Tablet */
@media (max-width: 1440px) {
  .custom-slider {
    padding: unset;
    height: 28rem !important;
  }
}

/* Mobile */
@media (max-width: 834px) {
  .custom-slider {
    padding: var(--spacer-lg) 0;
    height: 20rem !important;
  }
}

/* Artists */
.artists-slider {
  height: unset !important;
}

.artist-teaser {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-md);
  text-decoration: none;
  width: min-content;
  width: 31.25rem;
  position: relative;
}
.artist-teaser::after {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
}

.artist-teaser img {
  height: auto;
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 10 / 13;
}

.artist-info h3 {
  font-size: var(--text-xl);
  line-height: var(--text-lg);
  color: var(--black);

  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.artist-info {
  box-sizing: border-box;
  flex-grow: 1;
  padding-left: var(--spacer-xs);
  padding-right: var(--spacer-xl);
  min-width: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artist-teaser:hover .artist-info,
.artist-teaser:hover .artist-teaser::after {
  opacity: 1;
}

@media (max-width: 1440px) {
  .artist-info,
  .artist-teaser::after {
    opacity: 1;
  }

  .artist-teaser {
    width: 22rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .artist-info h3 {
    font-size: var(--text-md);
    line-height: var(--line-md);
  }

  .artist-teaser::after {
    bottom: 0.25em;
  }
}

/* Mobile */
@media (max-width: 834px) {
  .artist-teaser {
    width: 13rem;
  }
}
