.pagenav-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.pagenav-container .pagination {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link {
    color: var(--ink);
}

.pagenav-container .pagenav-page .page-link {
    font-size: 24px;
    line-height: 1;
    padding: 0.375rem 0.375rem;
}

.pagenav-container .pagenav-ellipsis .page-link {
    font-size: 24px;
    line-height: 1;
    color: var(--ink);
    background: none;
    border: none;
    cursor: default;
    padding: 0.5rem 0.25rem;
}

.pagenav-container .pagenav-ellipsis .page-link:hover {
    color: var(--ink);
    background: none;
}

.pagination .page-item.active .page-link {
    color: var(--blue);
    font-weight: bolder;
    background-color: transparent;
}

.page-all .page-link {
    font-size: 16px;
    font-weight: bolder;
    height: 24px;
}

.pagenav-arrow button.page-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.pagenav-arrow button.page-link:hover {
    color: var(--blue);
}

.pagenav-arrow button.page-link svg {
    width: 20px;
    height: 13px;
}

.page-begin button.page-link,
.page-end button.page-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    font-size: 16px;
}

.page-begin button.page-link:hover,
.page-end button.page-link:hover {
    color: var(--blue);
}

.pagenav-hidden {
    display: none !important;
}

@media (max-width: 575px) {
    .pagenav-container {
        align-items: stretch;
    }

    .pagenav-container .pagination {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .pagenav-container .pagenav-page .page-link {
        font-size: 16px;
        padding: 2px 1px;
        min-width: unset;
        min-height: unset;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagenav-container .pagenav-ellipsis .page-link {
        font-size: 16px;
        padding: 2px 1px;
        min-height: unset;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagenav-arrow button.page-link {
        padding: 2px 1px;
        font-size: 16px;
        min-width: unset;
        min-height: unset;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagenav-arrow button.page-link svg {
        width: 12px;
        height: 8px;
    }

    .page-begin button.page-link,
    .page-end button.page-link {
        font-size: 12px;
        padding: 2px 2px;
        white-space: nowrap;
    }

    .page-begin {
        margin-right: 4px;
    }

    .page-end {
        margin-left: 4px;
    }
}
