Hide sidebar and show only image in popup

Before - default popup layout

After applying snippet - sidebar is not showing
<script type="text/javascript">
    // when gallery is ready
    document.addEventListener('galleryReady:covetPics', function(e) {
      // prepare CSS styles to inject
      // this CSS hides sidebar in Covet.pics popup
      const stylesPopup = document.createElement( 'style' )
      stylesPopup.innerHTML = `
          .popup .popup-body {
            display: none;
      // get Covet gallery elements where you want to inject (for eg. covet-pics-popup)
      const popup = document.querySelector("covet-pics-popup");
      // inject CSS styles