Password Protect Specific Dynamic Pages

Is it possible to use logic to password protect specific dynamic pages?

I am working on a site that uses one content database for events. Once an event has passed, there is a check-box to indicate it is a ‘past event’, and that variable is used to filter event listings into two pages – one for future events and one for past events.

Currently the ‘past event’ page is limited to site members (as a benefit of their membership). I’d like for that page to be public, but the individual event detail pages restricted. But I can’t figure out how to make this work.

Here is the upcoming event page. The past event page is identical, but it’s protected (as discussed).

https://www.nyaapor. org/upcoming-events

Many thanks for any insight you can provide.