/* Extracted from website/index.html */
/* =========================================================
   MOBILE — REMOVE EMPTY SLIDESHOW SPACE
   ========================================================= */

@media (max-width: 800px){

  /*
   * Desktop screenshots are roughly 16:9.
   * Keep the hero preview wide instead of forcing it into
   * the old 4:3 mobile box.
   */
  .sm-showcase-stage{
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .sm-showcase-slide{
    inset: 0 !important;
  }

  /*
   * Dashboard pages fill the available frame.
   * No stretching and no giant vertical letterboxing.
   */
  .sm-showcase-slide:not(.sm-showcase-slide-modal) img{
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center !important;
  }

  /*
   * Modal screenshots still need breathing room,
   * but much less than desktop.
   */
  .sm-showcase-slide-modal{
    padding: 10px !important;
  }

  .sm-showcase-slide-modal img{
    width: auto !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
  }

}


/* Phones */

@media (max-width: 520px){

  .sm-real-product-preview{
    width: calc(100% - 24px) !important;
    margin-top: 34px !important;
  }

  .sm-dashboard-showcase{
    border-radius: 11px !important;
  }

  /*
   * IMPORTANT:
   * Override the old 4 / 3 rule responsible for the
   * large black area visible on iPhone.
   */
  .sm-showcase-stage{
    aspect-ratio: 16 / 9 !important;
  }

  .sm-showcase-slide-modal{
    padding: 8px !important;
  }

}


/* Very small phones */

@media (max-width: 390px){

  .sm-real-product-preview{
    width: calc(100% - 18px) !important;
  }

  .sm-showcase-stage{
    aspect-ratio: 16 / 9 !important;
  }

}
