I am facing an issue with my clinic webpage where the images appear differently on PC and mobile devices. I am new to HTML and CSS, so I tried using max-width: 100% but it didn't work. The code was originally created by someone else and I need help fixing this problem.
https://i.sstatic.net/S74Y2.png
https://i.sstatic.net/etnkG.jpg
html
<!-- STAFF SECTION BEGINS -->
<section class="staff">
<div class="container">
<h1>
Spesialister
</h1>
<div class="justinas">
<div class="justinas-picture">
</div>
<div class="justinas-background">
<h2>
Justinas Vitkus
</h2>
<div>
Tannlege
</div>
</div>
</div>
<div class="jarek">
<div class="jarek-picture">
</div>
<div class="jarek-background">
<h2>
Jarek Menczak
</h2>
<div>
Tannlege
</div>
</div>
</div>