Two column layout using four divs

Hello,
I'm looking for suggestions on how to create the layout attached. Ordinarily this wouldn't cause too many issues. However, I am unable to change the markup and hence need to make this responsive with the following markup.
<div class="product__cols">
  <div class="product__col"></div>
  <div class="product__col"></div>
  <div class="product__col"></div>
  <div class="product__col"></div>
</div>

I've been playing and my attempt is in the codepen below

https://codepen.io/grantsmith/pen/ZEVgypM

The main issue with this version is, the right hand divs equal the height of the left column. Hence gaps. The right hand divs need to be the height of the content. Second problem is the center line, not sure this can be achieved using Grid.

Would flex be a better option? That will probably present new issues?
Screenshot_2023-10-19_at_20.41.15.png
Was this page helpful?