.pagination {
  margin: 1em 0;
  overflow: auto;
}

.pagination--right {
  text-align: right;
}

.pagination--center {
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  line-height: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

/**
 * Safari + VO won't respect link semantics if
 */
.pagination li:before {
  content: "\200B";
  position: absolute;
}

.pagination__skip-after {
  display: flex;
}

.pagination__skip-after:after {
  color: #aaa;
  content: "\2026";
}

.pagination__skip-after:after,
.pagination ul a {
  background: #fff;
  border: 1px solid #999;
  border-left: 0;
  color: #0071C4;
  display: block;
  min-width: 2em;
  padding: .5em;
  text-align: center;
  text-decoration: none;
}

.pagination__first-page:not(:first-of-type) a,
.pagination li:first-of-type a {
  border-left: 1px solid #999;
  border-radius: 3px 0 0 3px;
  overflow: hidden;
}

.pagination__next a,
.pagination li:last-of-type a {
  border-radius: 0 3px 3px 0;
}

.pagination ul a[aria-current] {
  background: #003C66;
  color: #fff;
}

.pagination ul a:hover,
.pagination ul a:focus {
  background: #0071C4;
  color: #fff;
}

.pagination__first-page:not(:first-of-type) {
  margin-left: 1em;
}
