I am currently working on customizing an image gallery in Drupal 7 that I have built. Users can upload multiple images, which are then displayed as a list on the page.
To ensure responsiveness, I am using the Responsive Images and Styles module so that the images do not have a fixed size. My goal is to have these images align in a row with equal spacing between them, always centered regardless of browser resizing. By implementing media queries, I aim for a one-column layout on mobile devices and a multi-column layout on larger screens.
The challenge lies in the complex structure of nested divs within Drupal. I am unsure if I am taking the right approach to achieve the desired effect. The abundance of divs has made what should be a simple task more difficult.
If anyone can provide guidance on navigating through these divs and help me achieve the alignment I am seeking, I would greatly appreciate it. All suggestions and solutions are welcome and valuable to me.
Thank you in advance for any assistance!