How to remove hover over glow from an image once the link has been visited

Twine Version: 2.5.1
Story Format: Harlowe

Hi. I’m making a game where there are three image options, let’s say: a red dot, a blue dot, and a yellow dot. Each of these images is kept in its its own passage because it’s a base64 image. Then in the ThreeDotPassage it’s displayed with (display:“RedDot”). Each image glows on mouse-over, because in that base64 passage, I’ve defined Then in the ThreeDotPassage, I have

    color: #111; 
    background: greenyellow; 
    box-shadow: 0 0 100px greenyellow; 

Each image is a link to a different passage with a (goto:XX) Eventually, each of these story threads will bring you back to this first page with the three dots. At that point, I’d like the dot that you’ve already visited to no longer be a link. (You’ve already done it, don’t do it again.)

How do I make it so that the pictures that have already been clicked no longer glow? Is there a way to set class=“glow” in the ThreeDotsPassage instead of in the base64 passages?