.carousel {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-marker-group: after;
}

.carousel li {
  flex: 0 0 70%;
  padding: 2rem 1rem;
  border: 1px solid silver;
  background: white;
  color: black;
  text-align: center;
  scroll-snap-align: start;
}

.carousel li::scroll-marker {
  content: " ";
  inline-size: 0.65rem;
  block-size: 0.65rem;
  border: 1px solid crimson;
}

.carousel::scroll-marker-group {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-block-start: 0.5rem;
}

.carousel li::scroll-marker:target-current {
  background: crimson;
}