Both the Mac mini & Studio would be fine machines for photography & video. Regarding RAM & SSD and assuming you want to maximize future usability esp. with photography & video apps, I think you are on the right track with 32GB RAM. I would also recommend the 1TB internal SSD. You won't regret it in the long run, considering that these machines cannot be upgraded after purchase. Also recommend a couple of good external SSDs - 1 notably fast SSD for storage (esp. video files) & 1 good SSD for backup (TM or otherwise).
For comparison, I currently use a 2019 iMac i9 (Intel) with 32GB RAM & 1TB internal SSD and have no problems with Photoshop, CaptureOne or Davinci Resolve. I'm still using a Nikon D700, so my individual RAW files usually don't exceed 12MB but my RAW HDR merges do, typically 75MB+. And I do restorations of scans that that occasionally reach 150MB+ and the system hardly notices it. A new M2 or M3 will run circles around my i9.
Some people will argue that with Apple Silicon you don't need as much RAM but I'm not convinced that is the case, especially when considering long term use. The system requirements of macOS & many applications will continue to increase in future releases.