Transitions in CSS don’t make height: auto work.
CSS Grid comes to the rescue!
https://dev.to/francescovetere/css-trick-transition-from-height-0-to-auto-21de