I converted my webcam to gopro style mount years ago. This will let you use any series of gopro mounting options to attach your camera to the X axis crossbar.
I have included horizontal and vertical mounts, as well as a base only option you can pull into tinker and add your own stuff to it.
It's not perfect, but it works. Mounted to factory slots with M4x10 screws and nuts.
This may also work with the Pro and Max, but I don't have machines to test on.
I did adjust manual focus on my logitech webcam because of the close proximity to the bed.
The author marked this model as their own original creation.