.grix .pagination {
  align-self: start;
}

.pagination {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 1rem 0;
  flex-wrap: wrap;

  li {
    padding: 0;
    margin: 0 0.25rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.1s ease;
    transition-property: background-color, color;
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      padding: 0.75rem 1rem;
      color: inherit;
    }

    &:hover {
      background-color: var(getCssVar(hover-background));
    }

    &.active {
      background-color: getColor('primary');
      color: textColor(getColor('primary'));
    }

    &.disabled {
      background-color: rgba(0, 0, 0, 0.2);
      opacity: 0.6;
      cursor: not-allowed;
    }

    i {
      opacity: 0.6;
    }
  }

  &.pagination-small li {
    a {
      padding: 0.5rem 0.75rem;
    }
    font-size: 0.825rem;
  }

  &.pagination-large li {
    a {
      padding: 1rem 1.25rem;
    }
    font-size: 1.25rem;
  }
}
