/*
 * Muppet Madness Playhouse v1.16.0
 * Fix ONLY the Gutenberg homepage "Latest Stories" block on mobile.
 * The normal story/related cards, article pages and desktop layout are unchanged.
 */
@media (max-width: 760px) {
  body.mm-playhouse .mm-home-block-layout .mm-latest-section,
  body.mm-playhouse .mm-home-block-layout .mm-latest-section .mm-latest-grid,
  body.mm-playhouse .mm-home-block-layout .mm-latest-section .mm-latest-card,
  body.mm-playhouse .mm-home-block-layout .mm-latest-section .mm-latest-thumb,
  body.mm-playhouse .mm-home-block-layout .mm-latest-section .mm-latest-copy {
    min-width: 0;
    max-width: 100%;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-section {
    width: 100%;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-grid {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  /* Replaces the old 40% image / 60% text row, which cropped graphics
     and squeezed headlines into a very narrow column. */
  body.mm-playhouse .mm-home-block-layout .mm-latest-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-thumb {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    flex: none;
    overflow: hidden;
  }
  /* Use the image's intrinsic aspect ratio: don't crop titles or faces. */
  body.mm-playhouse .mm-home-block-layout .mm-latest-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain !important;
    object-position: center;
    vertical-align: middle;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 15px 16px 17px;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-copy strong {
    font-size: 17px;
    line-height: 1.36;
    overflow-wrap: break-word;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-copy small {
    font-size: 10px;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-copy time {
    font-size: 11px;
  }
  /* CTA and headings stay within the Customizer's narrow preview frame. */
  body.mm-playhouse .mm-home-block-layout .mm-latest-heading {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-heading > div {
    min-width: 0;
    max-width: 100%;
  }
  body.mm-playhouse .mm-home-block-layout .mm-latest-heading h2 {
    overflow-wrap: break-word;
  }
}
