/* Keep search first, then offer an easy-to-swipe single row of categories. */
@media (max-width: 700px) {
  body[data-page="gallery"] .gallery-filter-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  body[data-page="gallery"] .gallery-filter-row .catalog-controls {
    order: 0;
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  body[data-page="gallery"] .gallery-filter-row .gallery-toolbar {
    order: 1;
    flex: none;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  body[data-page="gallery"] .gallery-filter-row .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(241,230,217,.35) transparent;
    gap: 8px;
    padding: 2px 0 8px;
    max-width: 100%;
  }
  body[data-page="gallery"] .gallery-filter-row .filter {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }
}
