Scroll Snap Container

A snap scroll container for any type of items.

.scroll-container {
    --_gap: 1rem;
  display: flex;
    gap: var(--_gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding: 0 50%;
    scroll-snap-type: x mandatory;

    > * {
        scroll-snap-align: start;
  }
}