I use Piwigo. My gallery: https://photos.desmondrivet.com/

I'm interested in the idea of statically generated galleries but it's unclear to me how this would work if you have GBs of photos.  Where would you store the images?