nav.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #1a1a1a;
  font-family: Monospace, monospace;
  font-size: 15px;
  text-align: center;
}

nav.gallery-pagination.is-top {
  margin: 0 0 12px;
  padding: 0;
  border-top: 0;
}

.gallery-pagination .pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

nav.gallery-pagination .pagination-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: #181818;
  color: #ccc;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

nav.gallery-pagination a.pagination-link:hover,
nav.gallery-pagination a.pagination-link:focus-visible {
  border-color: rgba(96,165,250,.75);
  background: #1c426f;
  color: #fff;
}

nav.gallery-pagination .pagination-link.current {
  border-color: #f4a261;
  background: #f4a261;
  color: #111;
  cursor: default;
}

nav.gallery-pagination .pagination-link.disabled {
  opacity: .38;
  pointer-events: none;
}

nav.gallery-pagination > .pagination-direction {
  align-self: center;
  gap: 4px;
  width: 78px;
  min-width: 78px;
  height: 28px;
  flex: 0 0 78px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
}

.gallery-pagination .pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 34px;
  color: #777;
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 560px) {
  nav.gallery-pagination {
    gap: 6px;
  }

  nav.gallery-pagination > .pagination-direction {
    width: 32px;
    min-width: 32px;
    flex-basis: 32px;
    padding: 0;
  }

  .gallery-pagination .direction-label {
    display: none;
  }
}
