Before a packed courtroom that spilled into a second room where a crowd watched on monitors, former Luzerne County Judge Mark A. Ciavarella Jr. was sentenced to 336 months — 28 years — in federal prison.

Ciavarella, 61, who had remained relatively still throughout most of his trial, showed little emotion, only shifting in his chair as U.S. District Court for the Middle District of Pennsylvania Judge Edwin M. Kosik handed down his sentence.