/* Final mobile image visibility pass — prevent sideways page drift and protect portraits. */
html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}

.home-photo-journal,
.home-photo-journal__head,
.home-photo-journal__grid,
.home-photo-journal__item {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

/* The supplied My Story portrait is a single editorial moment, not a duplicate pair. */
body.page-about-refined .my-story-editorial-strip .founder-photo-insert__frame {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(100%, 820px) !important;
  margin-inline: auto !important;
}

body.page-about-refined .content-page .my-story-editorial-strip .founder-photo-insert__frame img.my-story-editorial-strip__secondary,
body.page-about-refined .my-story-editorial-strip .my-story-editorial-strip__secondary {
  display: none !important;
}

body.page-about-refined .my-story-editorial-strip .founder-photo-insert__frame > img:first-child {
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: brightness(.92) saturate(.97) !important;
}

@media (max-width: 760px) {
  .imp16-shell .home-photo-journal {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .imp16-shell .home-photo-journal__head,
  .imp16-shell .home-photo-journal__grid {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  /* Keep the new portrait tall enough for Shivi to remain clearly visible. */
  .home-photo-journal__item:nth-child(2),
  .home-photo-journal__item:nth-child(2) img {
    aspect-ratio: 3 / 4 !important;
  }

  .home-photo-journal__item:nth-child(2) img {
    object-fit: cover !important;
    object-position: 50% 16% !important;
  }

  .home-photo-journal__item:nth-child(2) span {
    max-width: calc(100% - 58px) !important;
    font-size: clamp(.78rem, 3.6vw, .95rem) !important;
    line-height: 1.2 !important;
  }

  body.page-about-refined .my-story-editorial-strip {
    padding-inline: 14px !important;
  }

  body.page-about-refined .my-story-editorial-strip .founder-photo-insert__frame {
    width: 100% !important;
    padding: 6px !important;
  }

  body.page-about-refined .my-story-editorial-strip .founder-photo-insert__frame > img:first-child {
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
