How to focus an image to top-center so it doesn't crop when screen size grows in responsive theme

I am using impulse theme but have had a developer create custom sections for collection pages. One of those sections is giving me some trouble. I have on image on the left and 2 images (one over another) on the left. When the screen size grows the image on the right is being cropped and I have no way to control the fact that it is cropping the heads off the models. I have other sections that have layout focus section but although I am fairly knowledgable as a non-developer, I am unsure how to get that image to have the options to hold the focus onto certain areas. I have pasted the section code below and highlighted the specific section containing the image at hand in RED text. Can anyone advise a solution? I don’t mind the crop if it will just keep focus at the top center of the image.

{% if section.settings.image_1 !=blank %} {% if section.settings.image_1_link != blank %} {% endif %}
{% if section.settings.image_1_link != blank %}
{% endif %} {%endif %} {% if section.settings.image_3 !=blank %} {% if section.settings.image_2_link != blank %} {% endif %}
{% if section.settings.image_2_link != blank %}
{% endif %} {%endif %}
{% if section.settings.image_1 !=blank %} {% if section.settings.image_3_link != blank %} {% endif %}
{% if section.settings.image_3_link != blank %}
{% endif %} {%endif %}
.section--{{section.id}}{ padding-top:50px; } .section--{{section.id}} .collection_imgs{ margin-left: auto; width: 90%; height: 820px; margin-right: auto; margin-bottom: 100px; } .section--{{section.id}} .collection_all_img-1{ width:50%; float:right; height: 810px; /* margin-right: 5px; */

}
.section–{{section.id}} .collection_all_img-2{
width: 50%;
float: left;
}
.section–{{section.id}} .collections_images_2{
height: 400px;
/* margin-bottom: 10px; */

}

@media only screen and (max-width:768px){
.section–{{section.id}} .collection_all_img-1{
width:100%;
height: 400px;
/* margin-bottom: 10px; */
margin-right: 0px;
}
.section–{{section.id}} .collection_all_img-2{
width:100%;

}
.section–{{section.id}} .collection_imgs{
padding-bottom: 50px;
}
.section–{{section.id}} .collection_imgs{
height: 1170px;
}
}
}

@media only screen and (min-width:769px){
.section–{{section.id}} .collection_all_img-1{
width:63%;

}
}

{% schema %}
{
“name”: “Tempo-images”,
“settings”: [
{
“type”: “image_picker”,
“id”: “image_1”,
“label”: “Image”
},
{
“type”:“url”,
“id”:“image_1_link”,
“label”:“Image link”
},
{
“type”: “image_picker”,
“id”: “image_2”,
“label”: “Image”
},
{
“type”:“url”,
“id”:“image_2_link”,
“label”:“Image link”
},
{
“type”: “image_picker”,
“id”: “image_3”,
“label”: “Image”
},
{
“type”:“url”,
“id”:“image_3_link”,
“label”:“Image link”
}

]
}
{% endschema %}

@SoonerMama

Unfortunately there is no way to help by just seeing the code, we’d need to check the website.

Kind regards,
Diego

Hi @SoonerMama ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Oh sorry. The url is: https://swingdish.com/collections/abstract

The URL is: https://swingdish.com/collections/abstract

@SoonerMama , do this to fix it in 20 seconds:

  1. In your Shopify Admin go to: online store > themes > actions > edit code
  2. Find **Asset >**theme.css and paste this at the bottom of the file:
[class*='collection_all_img'],
[class*='collections_images']{
    background-size: contain !important
}

Kind regards,
Diego

Hi @SoonerMama ,

Go to Assets > theme.css and paste this at the bottom of the file:

@media only screen and (min-width: 768px) {
	.section--Collection-3-image-RRL .collection_imgs {
		height: 0 !important;
	}
	.section--Collection-3-image-RRL .collections_images_2,
	.section--Collection-3-image-RRL .collection_all_img-1 {
		height: 0 !important;
		padding-bottom: 100% !important;
	}
}

It will display fine like this:

That didn’t change anything. It still cuts off the top of the left image.

@SoonerMama

The afore shared solution does work.

Hi @SoonerMama ,

Can you re-add the code, I will help you test it