/* Carousel wrapper */
.carousel {
  width: min(80vw, 1000px);
  margin: 0 auto; /* center horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation above the slides */
.carousel-nav {
  display: flex;
  justify-content: space-between; /* push arrows to opposite edges */
  align-items: center;
  margin-top: 0.75rem;
  width: 100%;
  margin-inline: auto;
}

.carousel-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-button {
  background-image: linear-gradient(#4a4a4a, #4a4a4a),
    linear-gradient(#c00093, #8918e4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #fff;
  border: 2px solid transparent;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.27rem 0.54rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.carousel-button:hover {
  background-image: linear-gradient(#5b5b5b, #5b5b5b),
    linear-gradient(#c00093, #8918e4);
}

.carousel-button img {
  height: 16px;
  display: block;
}

/* Slide wrapper */
.carousel-slides {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-position {
  color: white;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 1rem;
  white-space: nowrap;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .carousel {
    width: 100%; /* let it expand on mobile */
  }

  .carousel-button {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
}
