Problem/Motivation
There is currently no way to define a responsive image style for images displayed in the Photoswipe modal window when using the Photoswipe Responsive formatter.
In the Photoswipe Responsive formatter, it is currently possible to select a responsive image style for the Thumbnail image style field.
It would be logical and consistent to allow specifying a responsive image style for modal images in the same way, especially since responsive image handling is essential for modern web projects.
Steps to reproduce
Add a field with the Photoswipe Responsive formatter.
Try to set a responsive image style for images displayed in the modal window.
There is no option available to configure it β only the thumbnail image style is configurable.
Proposed resolution
Add a new setting to the Photoswipe Responsive field formatter that allows selecting a responsive image style for the modal image, similar to how it is already done for the thumbnail image.
Remaining tasks
Add a formatter setting for the modal responsive image style.
Update the formatter plugin to render images in the modal using the selected responsive style.
Adjust validation and fallback behavior.
Write/update tests if applicable.
User interface changes
A new dropdown/select field in the field formatter settings form to allow selecting a responsive image style for the modal image.