/* Infinite Carousels Component Styles */

.infinite-carousels-section {
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.carousel-container::before,
.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;

  @media (min-width: 991px) {
    width: 500px;
  }
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, white 0%, white 30%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.3) 80%, transparent 100%);
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, white 0%, white 30%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.3) 80%, transparent 100%);
}

.hashtag-carousel-left,
.hashtag-carousel-right {
  display: flex;
  width: calc(200% + 20px);
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.hashtag-carousel-left {
  animation-name: scroll-left;
}

.hashtag-carousel-right {
  animation-name: scroll-right;
}

.infinite-carousels-section .carousel-item {
  flex: 0 0 auto;
  width: 190px;
  height: 45px;
  margin-right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.infinite-carousels-section .carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {

  .hashtag-carousel-left,
  .hashtag-carousel-right {
    animation-duration: 25s;
  }

  .carousel-container::before,
  .carousel-container::after {
    width: 80px;
  }
}

@media (max-width: 480px) {

  .hashtag-carousel-left,
  .hashtag-carousel-right {
    animation-duration: 20s;
  }

  .carousel-container::before,
  .carousel-container::after {
    width: 60px;
  }
}