Hey there! I've been working with bootstrap CSS library version 5.1.3 and I'm trying to create a simple card layout where there's an image on the left side and text on the right side. Everything looks great on a large screen, but I'm struggling with aligning the image first and then the text below it on a smaller screen. Can anyone assist me in fixing this issue? If it's not possible with the current code, I'm open to suggestions on how to achieve this card design in a different way.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="54363b3b2021202635241451736c73786815">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div class="container py-4">
<div class="bg-light d-flex">
<div class="flex-shrink-0">
<img src="https://i.ibb.co/kDv9tyc/img.jpg" height="350">
</div>
<div class="flex-grow-1 px-3">
<h1>Title</h1>
<h2>SubText</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate in fugit aspernatur perferendis repudiandae accusantium illum autem hic numquam, non optio tempore, omnis, exercitationem quidem atque iusto mollitia deleniti. Eos minima numquam rem quis ullam quam repudiandae, voluptatibus temporibus dolorem quidem? In cumque exercitationem dicta fugit ipsum facilis quaerat consequuntur eligendi a culpa cum sed ab, magni earum voluptatem? Id et velit enim reiciendis doloribus veniam distinctio alias mollitia, repellendus quisquam ab eos incidunt corrupti earum quidem laudantium quae suscipit.</p>
</div>
</div>
</body>
</html>
Output on large size screen:
https://i.sstatic.net/kX40B.png
Current output on small size screen:
https://i.sstatic.net/TTsdH.png
Expected output: