Check out the grid of squares I've coded below:
<div class='square-container'>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
<div class='square'></div>
.....
</div>
If a user clicks on any square, I'd like a modal popup to appear. The styling should be similar to this https://codepen.io/khaag/pen/sbcou
How can I implement this feature with my current code? Also, how can I make this grid more dynamic than it is now?