Masonry gallery last image stretching

When assigning the ACF Gallery field to your View, the last image usually displays on its own row or stretched horizontally.

How to fix it using CSS overrides

Copy the following CSS snippet into your ACF View -> Advanced Tab -> CSS Code field.
// masonry images last image fix stretching
#view .acf-view__image-outer {
width: fit-content !important;