I’m assuming that you’ve already assigned the custom taxonomies to the attachment post type. What you need to do is attach the fields to the media, not to the gallery, in other words add a field group with the location rule Attachemntis equal toAll. Unfortunately, there isn’t any way to limit the fields to just images when using the WP popup media library view.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users