.pagination {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #6C6A7A;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  gap: 1.25rem;
  line-height: 1.5rem;

  @media screen and (max-width: 1279px){
    width: 43rem;
  }

  @media screen and (max-width: 767px){
    width: 100%;
  }

  a, a:visited {
    text-decoration: none;
    color: #6C6A7A;
  }

  .current {
    align-items: center;
    background-color: #000091;
    border-radius: 2.5rem;
    color: #FFFFFF !important;
    display: flex;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
  }

  ul {
    list-style-type: none;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 0;

    li {
      display: inline;
    }
  }
}

@media screen and (max-width: 767px) {
  .pagination {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .pagination ul {
    flex-wrap: wrap;
    gap: .75rem;
    row-gap: .5rem;
  }

  .pagination .current,
  .pagination .goto {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    line-height: 1;
  }

  .prev-page a,
  .next-page a {
    font-size: 0;         
    width: 2rem;
    height: 2rem;    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .prev-page a::before,
  .next-page a::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/arrow--point--black--right.svg") no-repeat center / 1rem 1rem;
  }

  .prev-page a::before { transform: rotate(180deg); }

  .prev-page,
  .next-page { cursor: pointer; }
}

.prev-page {
  @media screen and (max-width: 767px) {
    color: #6C6A7A;
    transform: none;
    cursor: pointer;
  }
}

.next-page {
  @media screen and (max-width: 767px) {
    color: #6C6A7A;
    cursor: pointer;
  }
}
