.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
  margin-top: 30px;
}

.pager-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  gap: 10px;
}

.pager-pages {
  
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.pager-pages li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pager-border);
  border-radius: 8px;
  background: var(--pager-bg);
  color: var(--pager-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.pager-pages a:hover {
  background: var(--pager-hover-bg);
  border-color: #b5b5b5;
}

.pager-pages a:active {
  transform: translateY(1px);
}

.pager-pages a:focus-visible {
  outline: 2px solid var(--pager-focus);
  outline-offset: 2px;
}

/* current page */
.pager-pages a[aria-current="page"] {
  background: var(--pager-active-bg);
  border-color: var(--pager-active-bg);
  color: var(--pager-active-color);
  cursor: default;
  pointer-events: none;
}

/* the "…" between numbers */
.pager-pages li[aria-hidden="true"] {
  min-width: 24px;
  text-align: center;
  color: #888888;
  font-weight: 600;
  user-select: none;
}

/* small screens */
@media (max-width: 480px) {
  .pager-pages {
    gap: 4px;
  }
  .pager-pages a {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 14px;
  }
}