If you are familiar with code customization please try to use @media - CSS: Cascading Style Sheets | MDN to set min-width as 768px and max-width as 974px. Then it is needed to set 50% as flex-basis - CSS: Cascading Style Sheets | MDN and max-width - CSS: Cascading Style Sheets | MDN for each of these blocks in this media rule with a range from 768px to 974px
If you are not familiar with code customization then please consider hiring someone for custom work https://fwd.cx/hLhc73mQCD9R