@import '../../styles/breakpoints/index';

:root {
  --Pagination-itemSize: 40px;

  @media (orientation: portrait) {
    --Pagination-itemSize: 32px;
  }

  @media (orientation: portrait) and ($sm) {
    --Pagination-itemSize: 40px;
  }

  @media ($lg) {
    --Pagination-itemSize: 48px;
  }

  @media ($xl) {
    --Pagination-itemSize: 56px;
  }
}

.pagination {
  margin-bottom: calc(var(--margin) * 2);
  display: grid;
}

.list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.item {
  margin: calc(var(--gutter) / 8);
}

.link {
  color: var(--color-text);
  border-radius: 50%;
  display: grid;
  align-items: center;
  justify-content: center;
  height: var(--Pagination-itemSize);
  width: var(--Pagination-itemSize);
  position: relative;
}

.text {
  position: relative;
  font-size: var(--size-3);

  @media ($md) {
    font-size: var(--size-4);
  }
}

.link:not(.active):hover {
  color: var(--color-white);
}

.link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.link:not(.active):hover::before  {
  background-color: var(--color-primary);
}

.link:not(.active):active::before {
  transform: scale(1.1);
}

.link.active {
  color: var(--color-white);
  cursor: auto;
}

.link.active::before {
  background-color: var(--color-black-light-1);
}
