To get mine to work I took the my-lightbox.close function and attached it to a button instead of the lightbox. It kept registering the close click instead of the link click.
Changed the code to:
`public function add_mobile_menu( $content ) {
$show_main_amp_menu = get_option(‘show_main_amp_menu’);
$htmls = ”;
$htmls .= ‘<button class=”amp-button” on=”tap:my-lightbox” tabindex=”0″>☰</button><amp-lightbox id=”my-lightbox” layout=”nodisplay”><div class=”lightbox” role=”button” tabindex=”0″>’;
$htmls .= $this->clean_custom_menu($show_main_amp_menu);
$htmls .= ‘<div class=”close-btn” role=”button” on=”tap:my-lightbox.close”></div>’
$htmls .='</div></amp-lightbox>’;
//$htmls .= get_option(‘custom_content_width’);
$content .= $htmls;
return $content;
}`
And then added styling for class close-btn as well as an image and positioned it in the top right corner (position absolute)