Horizontal Accordion

What‘s the best way to create a horizontal accordion?

Didn’t try things out and there might be better approaches.
First thought: How about rotating the accordion 90deg and its content -90deg?

You could also (at least partially) use the writing-mode property, but that requires custom CSS.

Yeah, I’m wondering this too. I’d like to make something similar to this.