Nextcloud. It's definitely overkill for photos alone, but since you are likely to want it for other stuff anyway, why not use its gallery (which is decent) as well?
I personally use it for backup and sharing, and do the bulk of my photos/collections management in digikam (reading from a fast network storage).