.gallery-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-block: 1rem;
  scroll-margin-block-start: .75rem;
}
.gallery-pages button, .gallery-pages select {
  min-height: 44px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: .7rem;
  cursor: pointer;
}
.gallery-pages button {min-width: 44px; font: 600 1.25rem/1 system-ui}
.gallery-pages select {
  appearance: auto;
  width: auto;
  min-width: 0;
  max-width: calc(100% - 108px);
  padding: .45rem .65rem;
  font-size: 1rem;
}
.gallery-pages button:disabled {opacity: .4; cursor: default}
.gallery-pages button:focus-visible {outline: 3px solid var(--blue); outline-offset: 3px}
[dir=rtl] .gallery-pages button span {display: inline-block; transform: scaleX(-1)}
.font-grid > .font-card[hidden] {display: none}
