Hi Evan,
The container within a list view only resembles a single item in that list. So whenever you put a button in a list view, only a single item is available as parameter.
You should create a parent entity with an association to the gallery items. You can use that wrapper entity to store search-related content such as search term, pagination, etc. Then associate the results to the parent entity in the list view.
Hope that helps.
It works!! Thank you a lot