.mpl-cat-carousel {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

/* The UL becomes the scroll container */
.mpl-cat-carousel--content {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  padding: 1rem 0;
  margin: 0 !important;
  list-style: none !important;

  /* hide scrollbar */
  scrollbar-width: none;
}
.mpl-cat-carousel--content::-webkit-scrollbar {
  display: none;
}

/* LI items */
.mpl-cat-carousel--item {
  flex: 0 0 auto;
  width: 160px; /* adjust as needed */
  scroll-snap-align: start;
  text-align: center;
}

a.mpl-cat-carousel--link {
    display: flex;
    flex-direction: column;
    align-items: center
}

/* Image */
.mpl-cat-carousel--thumb {
  width: auto;
  height: auto;
  display: block;
  flex: 0 1 auto
  width: 70px;
}

/* Title & date (unchanged, just optional styling) */
.mpl-cat-carousel--title {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.mpl-cat-carousel--date {
  font-size: 0.8rem;
  color: #666;
}

/* Nav buttons */
.mpl-cat-carousel--nav {
  background: #364d9d;
  /*border: 1px solid #ccc;*/
  color: #fff;
  cursor: pointer;
  padding: 1.75rem;
  aspect-ratio: 1 / 1;
  font-family: monospace;
  font-size: 4rem;
  font-weight: 900;
  /*line-height: 1;*/
  border-radius: 50%;
  transition: background 0.2s ease;

  /*position: absolute;
  z-index: 2;*/
}

.mpl-cat-carousel--nav:hover {
  background: #199b4d;
}

.mpl-cat-carousel--nav.prev {
  /*left: -1.75rem;*/
}

.mpl-cat-carousel--nav.next {
  /*right: -1.75rem;*/
}

/* Hide or disable arrows if scrolling isn't needed */
.mpl-cat-carousel--nav[hidden] {
  /*display: none;*/
  background: #c3c3c3;
  pointer-events: none;
}