I'm currently working on my first website using CSS3, HTML, and JS. Once I finish this version, I plan to switch to bootstrap after ironing out the bugs. However, I've hit a roadblock and could use some help.
Here is the js fiddle link: https://jsfiddle.net/JKenny209/f98r32ba/#&togetherjs=I31aD4vBcy
The issue I am facing is with an image that enlarges on hover and should open a modal when clicked. Despite fixing the jittery hover bug, now only a specific area of the image is clickable due to the red and blue box overlapping (visible for row 2 column 2). The blue box represents the :hover:after pseudo-element.
I attempted to select the :hover:after pseudo-element in JS to trigger the click event but ran into difficulties trying to select both :hover and :after simultaneously with
window.getComputedStyle(document.querySelector(".column2-row2"), 'hover::after')
.
If anyone has a solution, whether involving JS or not, I would greatly appreciate it. Thank you in advance.