.carousel-wrapper {
  position: relative;
  width: 100%;
  /* max-width: 900px; */
  margin: 0.2rem auto;
  display: flex;
  align-items: center;
}

.carousel {
  overflow: hidden;
  display: flex;
  /* align-items: center; */
  gap: 16px;
  scroll-behavior: smooth;
  width: 100%;
}

.item {
  position: relative;
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Hover zoom */
.item:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Tooltip */
.item::after {
  content: attr(data-title);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.item:hover::after {
  opacity: 1;
}

/* Navigation buttons */
.navBtn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: slateblue;
  /* padding: 0 12px; */
  user-select: none;
}

.navBtn:hover {
  color: #000;
}
