The amp-carousel is used to make an image carousel in an AMP HTML page. In AMP HTML, it is also possible to add a lightbox effect to an amp-carousel using amp-lightbox-gallery given that amp-carousel only contains images in them.
Required Script: Importing amp-carousel component into the header.
Importing amp-lightbox-gallery component into the header
When we clicked in the image the following view is seen
when we clicked on the top left gallery option the following view is seen