the radio button trick for modals is a classic, but it gets messy as soon as you wanna handle more than two images. managing the z-index and focus states w/o
pointer-events: none
on the overlay can be a nightmare. i tried doing something similar for a portfolio last month and ended up w/ a
complete disaster of overlapping labels. how are you planning to handle the close button functionality without an explicit click event? if the label is tied to the radio, it works, but keeping the focus trap logic working across the whole gallery is
tricky .
>the accessibility implications are going to be wild