/* Append after GalleryHome. Only the added category-rail controls are styled. */
.gallery-home #worlds .whatsapp-category-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  margin: 2px 0 0;
}

.gallery-home #worlds .whatsapp-category-rail[hidden] { display: none; }

.gallery-home #worlds .whatsapp-category-rail__dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #696b61);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(41 44 38 / 12%);
}

.gallery-home #worlds .whatsapp-category-rail__dot::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.gallery-home #worlds .whatsapp-category-rail__dot[aria-current='true'] { color: var(--ink, #292c26); }
.gallery-home #worlds .whatsapp-category-rail__dot[aria-current='true']::before { width: 20px; }
.gallery-home #worlds .whatsapp-category-rail__dot:focus-visible { outline: 3px solid #86661a; outline-offset: -4px; }

@media (hover: hover) {
  .gallery-home #worlds .whatsapp-category-rail__dot:hover { color: var(--ink, #292c26); background: rgb(41 44 38 / 5%); }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-home #worlds .whatsapp-category-rail__dot::before { transition: width 120ms ease-out; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-home #worlds .whatsapp-category-rail__dot::before { transition: none; }
}

@media (forced-colors: active) {
  .gallery-home #worlds .whatsapp-category-rail__dot { color: ButtonText; }
  .gallery-home #worlds .whatsapp-category-rail__dot[aria-current='true'] { color: Highlight; }
  .gallery-home #worlds .whatsapp-category-rail__dot::before { forced-color-adjust: none; background: currentColor; }
  .gallery-home #worlds .whatsapp-category-rail__dot:focus-visible { outline-color: Highlight; }
}
