Thanks Robert!
It is now working, although only for the previous button, not the next button. It also fires when you click on the numbers. I have it querying ".esri-popup__button"
I have tried quite a few combinations of classes and elements. I think.
Any idea why it wouldn't fire on the next button?