twenty 17 theme – decrease the height of the featured image on a regular page, not the home page
You can use the aspect-ratio property. You can freely set the width, then the height will automatically adjust itself according to the aspect ratio you’ve added. Another thing is using the object-fit: cover; it also keeps the right aspect ratio of the image to fit the given dimension.