I'm experiencing an issue where the image shrinks significantly when viewed on a mobile device or when zooming in the browser. Can you help me understand why this is happening and suggest a solution? Here are the HTML and CSS code snippets:
HTML
<section id = "s" class = "s-section">
<div class = "center">
<h1> Title Title Title Title Title </h1>
<img src = "img/hands01.jpeg" width = 50% max-width = 200% object-fit = cover class = "float-left" padding-right = "2">
<div class = "s-paragraph">
<p> Insert text here askdjfalksdflksa dflkasj dflkasj dlkf asdlkfj aslkdfj alskd flkas jdjflkas dlkf asdlkdf lakss dflkas sdflkas dlkf aslkdf lkask dflkas dsflk aslsdfaslkdf jaslkdfj lkasdj flkasj dflkas dlkfaslkdkf lksadj flkas dflkasj dlkf aslkdf asklsdjf lksaj jdflkas dlfkas lskdf aslkd fslkd lkasd flkasd jl</p>
</div>
<br>
</div>
CSS
.s-section {
padding-top:8rem;
padding-bottom:5rem;
background:#ef9000;
}
.float-left {
float: left;
margin: 4px;
padding-right: 2rem;
}
.s-paragraph {
padding-top: 1rem;
}
.center {
margin: auto;
width: 60%;
padding: 10px;
}