This is working somewhat.
I think I can work with this code but the only issue I have is the buttons position.
When I use this new code the buttons are all the way to the top left and right corner of the page.
On mobile the top right button end up being underneath the menu button so it is impossible to tap.
Ideally these buttons should be at the bottom, aligned with the images like those that are there now.
is that possible?
Thank you again for all the help.