When viewing the high res images on mobile they pop up using a modal on my site https://glewindesign.com/project_1.html
I realize now they are impossible to center using CSS. How to center and keep focus on Modal image using mobile
But as was suggested, using javascript to position the horizontal and vertical scrollbar positions to 50% when the modal opens would accomplish the same thing.
Can anyone suggest on how best to do this using javascript?
Thanks a lot.