Wonder what one could do with this concept applied to the template ...
Foldable setup, I would try to have roof and sides hinged to the rear door with the quarter circles angles meant to lock it in place when unfolded.
What's the target length of the setup ?
__________________
|