/* Preserve the original desktop artwork; give its HTML copy room to read on phones. */
@media (max-width: 820px), (max-width: 960px) and (max-height: 500px) {
  .lh-index .source-copy:not(.source-page-title) {
    position: relative !important;
    display: block;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 680px;
    padding: 24px 20px 36px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    color: #294a38;
    background: #fff;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .lh-index .source-copy:not(.source-page-title) > h2 {
    margin: 0 0 16px;
    color: #006042;
    font-size: clamp(25px, 6.8vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
  }

  .lh-index .source-copy:not(.source-page-title) > h3 {
    margin: 24px 0 8px;
    color: #006042;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
  }

  .lh-index .source-copy:not(.source-page-title) > p { margin: 12px 0 0; }
  .lh-index .source-copy:not(.source-page-title) > h2 + p { margin-top: 0; font-size: 18px; color: #164c35; }
  .lh-index .source-copy:not(.source-page-title) > ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
  .lh-index .source-copy:not(.source-page-title) > ul > li { margin: 0; color: #006042; font-size: 15px; line-height: 1.7; }
  .lh-index .source-copy:not(.source-page-title) > ul > li::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 8px 3px 0; border-radius: 50%; background: currentColor; }

  /* Inner hero carousels become complete, naturally sized artwork and copy. */
  .lh-index > .bd > [data-hash='banner'],
  .lh-index > .bd > [data-hash='banner'] > .lh-banner,
  .lh-index > .bd > [data-hash='banner'] > .lh-banner > .bd,
  .lh-index > .bd > [data-hash='banner'] > .lh-banner > .bd > .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }

  .lh-index > .bd > [data-hash='banner'] > .lh-banner > .bd { display: flex; align-items: flex-start; }
  .lh-index > .bd > [data-hash='banner'] > .lh-banner.swiper-initialized { overflow: hidden; }
  .no-js .lh-index > .bd > [data-hash='banner'] > .lh-banner > .bd { display: block; }
  .lh-index > .bd > [data-hash='banner'] > .lh-banner > .bd > .swiper-slide { flex-shrink: 0; width: 100% !important; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner:not(.swiper-initialized) > .l-container:has(.banner-hd) { display: none !important; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized > .l-container:has(.banner-hd) { position: static; display: flex !important; justify-content: center; width: 100%; padding: 0 20px 20px; margin: 0; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized .banner-hd { display: flex !important; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized .banner-hd > li { position: relative; width: 44px; height: 44px; margin: 0; background: transparent; cursor: pointer; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized .banner-hd > li::before { display: none; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized .banner-hd > li::after { content: ''; position: absolute; inset: 20px 4px; border-radius: 2px; background: #c6dcd1; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner.swiper-initialized .banner-hd > li.on::after { background: #006042; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .bd .l-container { position: relative !important; inset: auto !important; display: block !important; width: 100%; max-width: 680px; padding: 0; margin: 0 auto; transform: none !important; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .bd .text { width: 100%; }

  /* The homepage and SaaS hero use a separate transparent title and real link. */
  .lh-index > .bd > [data-hash='banner'] .lh-banner .swiper-slide:has(img[src='/_120230925/1538098698.png']) > div { position: relative; height: auto !important; padding: 48px 20px 40px; isolation: isolate; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .swiper-slide:has(img[src='/_120230925/1538098698.png']) > div > .l-imgs { position: absolute; inset: 0; z-index: -1; height: 100%; background-size: cover; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .name > img[src='/_120230925/1538098698.png'] { display: block; width: 100%; height: auto; margin: 0 auto; }
  .lh-index > .bd > [data-hash='banner'] .source-copy[data-source-asset='/_120230925/1538098698.png'] { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .bd .btn { display: block; width: min(250px, 80%); min-height: 44px; margin: 26px auto 0 !important; }
  .lh-index > .bd > [data-hash='banner'] .lh-banner .bd .btn > img { display: block; width: 100%; height: auto; }

  /* CMS replacement banners still reserve a frame when no transcribed copy exists. */
  .lh-index > .bd > [data-hash='banner'] :where(.lh-banner:not(.lh-about-banner)) .swiper-slide > a { display: block; height: auto !important; }
  .lh-index > .bd > [data-hash='banner'] :where(.lh-banner:not(.lh-about-banner)) .swiper-slide > a > .l-imgs { display: block; width: 100%; height: auto !important; min-height: 0 !important; aspect-ratio: var(--mobile-poster-ratio, 1920 / 983); background-size: contain !important; background-position: center !important; background-repeat: no-repeat; background-color: #eff8f3; }

  /* Text baked into full-width posters stays visible in full, followed by live text. */
  .lh-index > .bd > .saas-mob > .saas-item,
  .lh-index > .bd > [data-hash='cloud8'] > .cloud-mob5,
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1751469849.jpg']),
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1752295231.jpg']) {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto;
    padding: 0 !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat;
    background-color: #fff;
  }

  .lh-index > .bd > .saas-mob > .saas-item::before,
  .lh-index > .bd > [data-hash='cloud8'] > .cloud-mob5::before,
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1751469849.jpg'])::before,
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1752295231.jpg'])::before {
    content: '';
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--mobile-poster-ratio, 1920 / 930);
  }

  .lh-index > .bd > [data-hash='saas3'] > .saas-item { --mobile-poster-ratio: 1920 / 933; }
  .lh-index > .bd > [data-hash='saas7'] > .saas-item { --mobile-poster-ratio: 1798 / 875; }
  .lh-index > .bd > [data-hash='cloud8'] > .cloud-mob5 { --mobile-poster-ratio: 1920 / 920; }
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1751469849.jpg']),
  .lh-index > .bd > [data-hash='banner'] .l-imgs:has(> .source-copy[data-source-asset='/_120230726/1752295231.jpg']) { --mobile-poster-ratio: 1920 / 983; }
  .lh-index > .bd > [data-hash='banner'] .swiper-slide > a:has(> .l-imgs > .source-copy) { display: block; height: auto !important; }
  .lh-index > .bd > [data-hash='banner'] .source-copy[data-source-asset='/_120230726/1751469849.jpg'] > p:last-child { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 22px; padding: 10px 24px; border-radius: 24px; background: #006042; color: #fff; font-size: 17px; font-weight: 700; }

  /* About us already has live text; its background is decorative rather than a poster. */
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner > .bd > .swiper-slide { position: relative; padding: 44px 20px 36px !important; }
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner > .bd > .swiper-slide > a { position: absolute; inset: 0; pointer-events: none; }
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner > .bd > .swiper-slide > a > .l-imgs { height: 100%; background-size: cover; }
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner .bd .text { position: relative; color: #164c35; }
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner .bd .name { font-size: clamp(32px, 8vw, 48px); line-height: 1.3; }
  .lh-index > .bd > [data-hash='banner'] > .lh-about-banner .bd .ccont { margin-top: 20px; font-size: 17px; line-height: 1.9; }

  .lh-index .about-mob2-cont,
  .lh-index .college-mob1-cont { display: block; height: auto; }
  .lh-index .about-mob2-cont > img,
  .lh-index .college-mob1-cont > img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
  .lh-index .about-mob2-cont > .source-copy { padding: 24px 0 0 !important; }
  .lh-index .about-mob2-cont > .source-copy > h2 { display: none; }
}
