.category-gallery[data-category-gallery] {
  overflow-x: auto;
  scrollbar-width: none;
}

.category-gallery[data-category-gallery]::-webkit-scrollbar {
  display: none;
}

.category-gallery[data-category-gallery]:focus-visible,
.category-gallery[data-category-gallery] > .category-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

@media (min-width: 1101px) {
  .category-gallery[data-category-gallery] {
    --category-gap: clamp(12px, 1.5vw, 32px);
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 5 * var(--category-gap)) / 5.25);
    gap: var(--category-gap);
  }
}

@media (any-pointer: fine) {
  .category-gallery[data-category-gallery].is-draggable {
    cursor: grab;
  }

  .category-gallery[data-category-gallery].is-dragging,
  .category-gallery[data-category-gallery].is-dragging * {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}
