Upfront issue with link type of images in Gallery element

If we add a Gallery element with Links instead of Lightboxes


and we add an image with a lightbox link, then we lose the Link options in this image and we’re getting the Lightbox settings instead.

For example, the first row has Links (anchors) while the second row has lightbox links that now are being displayed like Lightbox options instead: