johnny depp amber heard

Getty

[1]

Johnny Depp[2] and Amber Heard[3] won't be bumping into each other on their way in and out of court ... measures are in place to keep the exes separated as the defamation trial unfolds.

Sources familiar with the situation tell TMZ ... Johnny and Amber's entrances and exits are arranged by court deputies, who work with their security teams to stagger timing to make sure they don't see each other.

image5/5/22
TMZ.com

When court breaks for lunch, we're told Johnny and Amber are taken to opposite ends of the courthouse ... with deputies escorting them to their own secure areas away from the public.

The separation is taken super seriously ... in this clip from Amber's testimony Thursday, you see deputies stand between Johnny and Amber to make sure they don't get close to one another as they are shuffled off for a lunch break.

While there's been rampant speculation Johnny and Amber made eye contact in that moment, sources close to Amber tell us they didn't lock eyes.

As you know ... the trial is now on a break until May 16, when Amber will be back on the stand for more questioning from her attorney, Elaine Bredehoft, and then cross-examination.

During the weeklong break, Amber is not allowed to consult with any of her attorneys -- per the judge -- because she's still in the middle of her testimony ... we're told she'll use the break to get some rest, while also spending time with her family, including her sister, who's been staying with Amber during the trial.

The reason for the break ... the judge is going to a legal conference. Johnny and Amber knew about it going in and the trial

Read more from our friends at TMZ