Show multiple cameras in same card based on motion

Good evening/morning to all.
I wonder if anyone has a good idea on how to implement the following:

Lovelace card that will show one camera live stream out of 3 available depending on where motion has happened.

I’ve used a conditional card but it moves card layout when active.
Vertical stack with conditional card inside will leave empty space until live feed will show up.

Something tells me to use a conditional card inside conditional card but I can’t get my head around on how it would work.

If anyone has any ideas please let me know.

Thank you all in advance!

This custom card will do it:

This looks interesting and might fit the bill. I haven’t tried it out myself yet though.

Thank you Tom

It does look like one I’m after. Unfortunately, my YAML knowledge is a bit too low for this and there is no GUI config available.

I will tinker around and see what will come up.

Once again thank you.