:root {
    --arrow-squarred-button-padding: 0.5rem 1rem;
    --pagination-gap: 0.5rem;
    --pagination-svg-size: 1.5rem;
}

section.pagination {
    margin-top: 3rem;
}

.pagination-list {
    list-style-type: none;
    display: flex;
    gap: var(--pagination-gap);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}

.pagination-item {
    display: flex;
}

.pagination span,
.pagination a {
    font-size: var(--display-small-font-size);
    line-height: var(--display-small-line-height);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

span.pagination-current {
    color: var(--secondary);
}

.pagination-first,
.pagination-prev,
.pagination-next,
.pagination-last {
    border: none;
    border-radius: var(--corner-radius);
    background-color: var(--secondary);
    padding: var(--arrow-squarred-button-padding);
}

.pagination-first:hover,
.pagination-prev:hover,
.pagination-next:hover,
.pagination-last:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.pagination-list li:nth-child(-n+2) svg {
    transform: rotateZ(180deg);
}

section.pagination svg {
    fill: var(--on-secondary);
    stroke : unset;
    width: var(--pagination-svg-size);
    height: var(--pagination-svg-size);
    display: block;
}

section.pagination path {
    stroke: var(--on-secondary);
}

.pagination-ellipsis {
    padding: 0 0.25rem;
}

@media screen and (min-width: 768px) {
    :root {
        --arrow-squarred-button-padding: 0.6rem 1.2rem;
        --pagination-gap: 0.75rem;
        --pagination-svg-size: 1.75rem;
    }
}

@media screen and (min-width: 1024px) {
    :root {
        --arrow-squarred-button-padding: 0.75rem 1.5rem;
        --pagination-gap: 1rem;
        --pagination-svg-size: 20px;
    }

    section.pagination {
        padding: 3vh 10vw;
    }
    
    .pagination-list {
        flex-wrap: nowrap;
    }
}
