/* Supplied 767px mobile breakpoint, mapped to the saved Homepage B hero.
 * Keep its approved photo and separate text/photo grid cells.
 * All overrides are screen-only and scoped to the homepage hero.
 */
@media screen and (max-width: 767px) {
  #main > #bs-free-quotes-hero .bs-home-hero-content {
    padding: 3rem 1rem 4rem !important;
    display: flex !important;
    align-items: flex-end !important;
    min-height: 75vh !important;
    min-height: 75svh !important;
    min-width: 0;
  }

  #main > #bs-free-quotes-hero #bs-hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

  #main > #bs-free-quotes-hero .bs-home-hero-pitch {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #cbd5e1 !important;
    margin-bottom: 2rem !important;
  }

  /* The existing image remains in the second grid row, behind this shade. */
  #main > #bs-free-quotes-hero .bs-home-hero-photo {
    object-position: center 30% !important;
  }

  #main > #bs-free-quotes-hero .bs-home-hero-shade {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: auto !important;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 90%) !important;
  }

  #main > #bs-free-quotes-hero .bs-home-hero-cta {
    width: auto !important;
    min-height: 40px;
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
  }

  #main > #bs-free-quotes-hero .bs-home-hero-actions {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
}
