Product Image API + Image Position + (Dawn) Theme problem

I’m using the Product Image API

https://shopify.dev/api/admin-rest/2022-07/resources/product-image#post-products-product-id-images

to create a new product image. I can create images at given positions (eg. 1 and 2) with no problem.

Check #1

In the Store’s dashboard > Products > Media pane, the images are at their designated positions 1 and positions 2. No surprises there.

Check #2

Viewing the online store (default Dawn theme, no modifications), on the Catalog page, that product has the correct (position 1) image showing. Again, as expected.

Check #3

Here is where it gets wierd - on that product page, the position 2 image is the 1st image showing! And the position 1 image is the secondary image.

Repeating the above but now with 3 images in position 1, position 2 and posiiton 3, Check #1 is ok, Check #2 is ok, but Check #3 shows the position 3 image as the 1st image, and the position 1 & position 2 images as smaller secondary images. What is going on?

Now for more madness - Instead of using the API, but doing it manually, ie. dragging the images in the correct order to the Products > Media pane, Checks #1, #2, #3 pass and the images are in their intended positions.

BTW I’m creating new product images in the intended order, ie. first making the API call for the position 1 image, and then the API call position 2 image, etc.

So is the fault with the API? Dawn theme? How I’m calling the API? (I’m open to suggestions as to how else to call the API) There are too many images to deal with, so no suggestions to do this manually please.

Is this a theme problem? I’ve tried this with the other (Shopify) free themes - Refresh, Ride, Colorblock, Taste, Studio, Craft, Crave, Sense and they all show the same issues. From the Shopify Theme Store, I’ve tried Colorblock, same issue.