/* Editorial photographs accompany the existing headings on the public mobile site. */
@media screen and (max-width: 767px) {
  .search-landing,
  .ci-page,
  .marketplace-public,
  .marketplace-guide,
  main.public-page:has(> .match-explorer),
  .cmi-page,
  .rtx-page,
  .mtm-home #match-explorer-title {
    --mtm-lifestyle-photo: url("/experience/editorial/project-walk-dubai.webp");
  }

  main.free-tools,
  .resource-article,
  .resource-hub,
  .knowledge-page,
  .ci-archive,
  .career-tools-hub,
  .assessment-catalog-page,
  .rct-page,
  .rir-page,
  .resume-review-page,
  main.public-page:has(> .passport-layers),
  main:has(> [data-seo-guidance="career-pathways-direct-links"]),
  .mtm-home #home-process {
    --mtm-lifestyle-photo: url("/experience/editorial/studio-review-paris.webp");
  }

  .interview-lab-page,
  .search-landing:has([data-seo-guidance="interview-preparation-next-step"]),
  .pricing-page,
  .public-page:has(.oa-hero),
  .mtm-home #personal-support-title {
    --mtm-lifestyle-photo: url("/experience/editorial/interview-conversation.webp");
  }

  .alumni-public-page,
  .mtm-pi,
  .mtm-home #home-next-move-title {
    --mtm-lifestyle-photo: url("/experience/editorial/team-review-new-york.webp");
  }

  :is(
    .mtm-home .mtm-hero-copy > h1,
    .mtm-home #match-explorer-title,
    .mtm-home #home-process,
    .mtm-home #personal-support-title,
    .mtm-home #home-next-move-title,
    main.public-page:not(.legal-page) > .public-hero h1,
    main.search-landing > .search-hero h1,
    main > header.cp > h1,
    main.ci-page .ci-hero-copy > h1,
    .pricing-page > .pricing-hero > h1,
    .alumni-public-hero h1,
    .mtm-pi-hero h1,
    .mtm-pi-product-hero h1,
    .mp-public-hero h1,
    .marketplace-guide .guide-hero h1,
    .il-public-hero h1,
    .ct-hero-copy h1,
    .rr-hero-copy h1,
    .resource-hub-hero h1,
    .resource-article-hero h1,
    .knowledge-page > .knowledge-hero h1,
    .ci-archive > .ci-archive-hero h1,
    .rct-public-hero h1,
    .cmi-hero h1,
    .rir-hero h1,
    .rtx-hero h1,
    .oa-hero h1,
    main.free-tools:has(> .tool-grid) > h1,
    main.free-tools:has(> .download-panel) > h1
  )::after {
    content: "";
    display: block;
    inline-size: 100%;
    aspect-ratio: 1.95;
    max-block-size: 17rem;
    margin-block: 1rem .4rem;
    border-radius: .55rem;
    background: #e7eeeb var(--mtm-lifestyle-photo, url("/experience/editorial/harbour-meeting-sydney.webp")) center / cover no-repeat;
  }
}
