Your CSS specifies that the image should be 2000px wide and 1000px high.
If you don't want it to overflow, you have several options. The simplest is:
head-image img{
max-width: 100%;
height: auto;
}
If you know the aspect ratio of the image, you may also want to specify
the new aspect-ratio
property[
^] so that your content doesn't shift after the image has downloaded.
There's also the
object-fit
property, which works everywhere except Internet Explorer:
object-fit - CSS: Cascading Style Sheets | MDN[
^]