After exploring your website, I believe I have a potential solution for your issue.
To address the problem, include the following script in your JavaScript file:
var imageElems = document.getElementsByClassName('image-box');
for (var i=0; i<imageElems.length; i++) {
imageElems[i].addEventListener('click', function() {
this.querySelector('.overlay').classList.toggle('show');
});
}
Additionally, add the following CSS code:
.overlay.show {
opacity: 1;
}
In summary, I have implemented a click event on all images with the class name "image-box," which toggles the visibility of another class called "show" upon clicking.
It may be helpful to provide more detailed code examples when framing your questions in the future. This will allow others to better understand and assist with your specific issues. I decided to offer assistance because I noticed you are a graphic designer diving into coding, and that is admirable!