/* ===== SECTION ===== */
.sq-carousel-section {
  padding: 140px 0;
  padding-bottom: 150px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===== CONTAINER ===== */
.sq-carousel-container {
  overflow: hidden;
}

/* ===== TRACK ===== */
.sq-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Arah */
.scroll-left {
  animation-name: scroll-left;
}

.scroll-right {
  animation-name: scroll-right;
}

/* Pause saat hover */
.sq-carousel-container:hover .sq-carousel-track {
  animation-play-state: paused;
}

/* ===== ITEM ===== */
.sq-carousel-item {
  width: 300px;
  height: 225px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.12);
}

.sq-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
}

/* Zoom 10% */
.sq-carousel-item:hover img {
  transform: scale(1.1);
}

/* ===== ANIMATION ===== */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--track-width))); }
}

@keyframes scroll-right {
  from { transform: translateX(calc(-1 * var(--track-width))); }
  to { transform: translateX(0); }
}
