What you have there is a trap arm connecting to a horizontal wet vent. The rules regarding horizontal wet vents vary by code/district and are dependent on how much is draining into that wet vent and the size of the wet vent etc. Maybe an actual plumber in here can comment. However, as far as I'm aware (I'm not a plumber), a tee is never allowed to connect horizontal to horizontal like that. I think you would need a WYE fitting there at a minimum to join the two horizontal runs. What I'm thinking is you would cut out that entire 4" tee fitting there and replace it with a 4 x 4 x 2 WYE on it's side to handle your shower trap arm (on the other side of the 4" pipe that is covered by mud so it doesn't interfere with your 90 turn in that 4" pipe. Make sure the WYE is positioned in the direction of drain flow in that 4" drain. Does the direction of flow go towards the vertical pipe rather than towards the 90 bend?
One like this
You would then put the trap wherever you want your new shower drain to sit and connect the trap arm from the trap into the 2" side of the WYE. Remember the vertical tailpiece of the shower drain connecting to your trap shouldn't exceed 24" in length under code and a maximum of 1/4" per foot of pitch for your trap arm (and 60" in length for a 2" trap arm but you don't have to worry about that).
It doesn't look like you're going to have the wiggle room to cut out that whole 4" section and connect all that in there like that though. So I'm truly at a loss here, a licensed plumber may be on order.