/**
 * @file
 * Pager.
 *
 * The old pager relied on Bootstrap's .page-item/.page-link at #0071b3 — a blue
 * that is not in the Mosman palette — and the "load more" behaviour re-ran
 * Isotope on every page change, losing scroll position.
 */

.pager {
  margin-block-start: var(--space-xl);
}

.pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__item a,
.pager__item span {
  display: grid;
  place-items: center;
  min-inline-size: 2.5rem;
  min-block-size: 2.5rem;
  padding-inline: var(--space-2xs);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.pager__item a:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.pager__item.is-active a,
.pager__item.is-active span {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: var(--me-white);
}

.pager__item--ellipsis span {
  border-color: transparent;
  min-inline-size: 1.5rem;
}

.pager__item--previous a,
.pager__item--next a,
.pager__item--first a,
.pager__item--last a {
  padding-inline: var(--space-s);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: var(--step--2);
}

/* Progressive "show more" button used by js/listing.js. */
.pager__more {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-l);
}
