I need to create a layout using CSS grid like in the image below for resolutions above 900px:-
For resolutions below 900px I need the layout to look like this

So, far I have tried this :-
.container {
display: grid;
grid-template-columns: 250px auto 250px;
grid-column-gap: 1rem;
}
Above code creates image 1, but I am not able to change it to accommodate layout changes for below 900px (image2).
How to create this layout in CSS grid so that it creates layout as mentioned in image above?
you can find my code here: jsfiddle
