In this courtroom shocker, Amber loses all custody rights and they go straight to Gary!

Gary Shirley has been deemed the more suitable parent over Amber Portwood by an Indiana judge, who has taken primary custody of Leah away from her and given it to Gary!

Previously, Amber, 20, had custody, but it was yanked away after the recent bout of vandalism against her house and car. These incidents made Child Protective Services uneasy about Amber’s living conditions and it was agreed to have Leah stay with Gary, 24, temporarily, TMZ reports.

Amber has been granted visitation, but no schedule has been set at this point, although we’re sure Gary is so smitten with her once more he will not restrict her interaction with Leah.

HollyBaby.com has reached out to representatives for all of the parties involved and has not yet received a response.

We’re sure this isn’t the last update we’ll hear from the legal camps of this on-again off-again couple!