Please tell my why one of these approaches wouldn’t work…
Please take note of the difference in the URL between the two approaches when clicking a thumbnail.
(Using a plug-in offers certain benefits, but it’s certainly not necessary for what you want to achieve.)