How to scale grid-child while collapsing accordion?

Hey All!
I am currently designing a restaurant menu for mobile device with this layout


On clicking a grid child, only that clicked grid child it has to take the full width of the view port as seen on the image below.

But i am getting all of the grid children are expanding to full viewport width and some of the grid children are missing.
Any idea on how to get it working or feedback on where where i’m struck will be great :slight_smile:


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

UPDATE:
Added autofit. Now it works partially, but square grids doesn’t display, all of them streches to the viewport.