Tasked with converting various layouts, some of which utilize a specific layout pattern (refer to the image below.) I'm seeking advice on the most efficient way to use CSS to display a list of images in this manner without dividing items into separate row containers. There must be a method to achieve this as a list.
The main challenge lies in properly spacing the images and aligning the far right image with the edge of the layout container (indicated by orange lines).
https://i.sstatic.net/wp2PS.gif
Ideally, I would prefer to keep the HTML structure like so:
<ul class="gallery-list">
<li class="gallery-list-item">
<img src="..." alt="..." />
</li>
<li class="gallery-list-item">
<img src="..." alt="..." />
</li>
</ul>
Thank you for your assistance, and if there is a superior solution available, I am open to closing this query and referring to that solution instead.