{#
  Theme override for Views Infinite Scroll pager.
  - Preserves module-provided attributes, behavior, and button text.
  - Adds toc_wmr button classes and centers the pager.
#}

{% if items.next %}
  <div class="text-center">
    <ul{{ attributes.addClass('d-inline-block list-unstyled') }}>
      <li class="pager__item">
        <a class="btn btn-outline-dark px-4" href="{{ items.next.href }}" title="{{ 'Load more items'|t }}" rel="next">{{ options.button_text }}</a>
      </li>
    </ul>
  </div>
{% endif %}

