>>4374855>>4374856>>4375305Look into a tilt-shift lens, or even better, a technical camera (you can mount a DSLR or Mirrorless camera to them using an adapter, you don't have to use film)
They're the only way to correct perspective in-camera, it's one of the most important photographic techniques in architecture, and it's a ton of fun
Do be aware it will also shift the focal plane though, so higher apertures may be necessary, but you're on tripod already