IANAL, but a couple months ago I was a juror on a case that got a short paragraph or two in the local newspaper. Ugly case: I’m sort of glad that I had an excuse for not talking about it more.
For the sake of sheer civility, I suspect that it’s probably okay to briefly mention that it’s a criminal or civil trial, and probably okay to mention vague details about the charges that won’t actually identify which local case it is.
If from that you get the response, “All them druggies ought to be shot!” – well, that won’t influence your future decision one way or another, will it?
Otherwise, just say: “I’ll tell you all about it when it’s over, but for now the judge said we can’t talk about it.”
My 2 cents. I will gladly accept correction from any actual lawyers / judges.