Gill signalled their positive intent when the elegant right-hander clobbered off-spinner Mehidy Hasan Miraz for two sixes in an over to reach his fifty.
Pant took a more conventional approach, a single off the spinner, to bring up his half-century in his first test since a horrific car accident in late 2022.
Bangladesh squandered a chance to break the stand when Shanto dropped Pant on 72.
Rubbing salt into the wound, Pant hit Shakib for back-to-back fours in the left-arm spinner's next over and beat Gill to the 100 mark.
Pant smashed 13 fours and four sixes in his sixth test hundred before giving a return catch to Mehidy.
Gill, whose fifth test hundred included 10 fours and four sixes, could not be dislodged though.
Faced with an onerous task in their second innings, Bangladesh openers Zakir Hasan (33) and Shadman Islam (35) decided to counter-attack in their 62-run stand.
Yashasvi Jaiswal took a stunning left-handed catch in the slips to remove Zakir before Ashwin, who smashed a match-defining century in the first innings, produced a three-wicket burst.
Gill and KL Rahul took diving catches to dismiss Shadman and Mushfiqur Rahim respectively, while Mominul Haque lost his middle stump to the wily off-spinner.
While wickets tumbled around him, Shanto played his natural aggressive game bringing up his fifty with his third six.
Published 21 September 2024, 11:37 IST