/* Enlarge the existing photo leftwards and fill the full height of the hero. */
@media(min-width:901px){
  body.by5-unified-homepage #main > #bs-free-quotes-hero.bs-field-management-hero{
    grid-template-columns:minmax(0,32fr) minmax(0,68fr);
    min-height:700px;
  }
  body.by5-unified-homepage #main > #bs-free-quotes-hero .bs-home-hero-photo{
    position:absolute;
    inset:0 0 0 32%;
    grid-column:auto;
    grid-row:auto;
    width:68%;
    height:100%;
    aspect-ratio:auto;
    object-fit:cover;
    object-position:70% center;
  }
  body.by5-unified-homepage #main > #bs-free-quotes-hero .bs-home-hero-content{
    padding:48px 24px;
  }
  body.by5-unified-homepage #main > #bs-free-quotes-hero #bs-hero-title{
    font-size:clamp(32px,3vw,48px);
    line-height:1.12;
  }
  body.by5-unified-homepage #main > #bs-free-quotes-hero .bs-home-hero-actions{
    padding-top:20px;
  }
}
@media(max-width:900px){
  body.by5-unified-homepage #main > #bs-free-quotes-hero .bs-home-hero-photo{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    min-height:300px;
    aspect-ratio:4/3;
    object-fit:cover;
  }
  body.by5-unified-homepage #main > #bs-free-quotes-hero .bs-home-hero-content{
    min-height:0!important;
  }
}

/* The two benefit actions retain their spacing after the journey links move. */
#main #by5-benefits-overview .benefit-actions{
  align-items:flex-start;
  width:100%;
  min-width:0;
  gap:28px;
  margin-top:28px;
}
/* Align the journey links with the strip directly beneath the desktop photo. */
#main #by5-journey-overview .journey > .wrap{
  display:grid;
  grid-template-columns:minmax(0,32fr) minmax(0,68fr);
  align-items:center;
  gap:12px 0;
  padding:12px 0 24px;
}
#main #by5-journey-overview .journey .section-intro{display:contents}
#main #by5-journey-overview .journey .section-intro > .eyebrow{
  grid-column:1;
  grid-row:1;
  min-width:0;
  padding-inline:clamp(16px,3.2vw,48px);
}
#main #by5-journey-overview .journey .section-intro > h2{
  grid-column:1/-1;
  grid-row:2;
  margin:0;
  padding-inline:clamp(16px,3.2vw,48px);
}
#main #by5-journey-overview .journey > .wrap > .journey-rail{
  grid-column:2;
  grid-row:1;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:start;
  gap:12px;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:72px;
  scroll-margin-top:var(--vfb-header-offset,122px);
  margin:0;
  padding:0 clamp(16px,2vw,32px);
}
#main #by5-journey-overview .journey-rail .rail-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:0;
  color:var(--by5-text-dark);
  font:400 12px/1.4 Inter,Arial,sans-serif;
  text-align:center;
  text-decoration:none;
  overflow-wrap:break-word;
}
#main #by5-journey-overview .journey-rail .round{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
}
#main #by5-journey-overview .journey-rail .icon{
  display:block;
  width:32px;
  height:32px;
  flex-shrink:0;
}
#main #by5-journey-overview .journey-rail .rail-link:is(:hover,:focus-visible){color:var(--by5-teal)}
#main #by5-journey-overview .journey-rail .rail-link:focus-visible{outline:3px solid var(--by5-teal);outline-offset:4px}
@media(max-width:900px){
  #main #by5-journey-overview .journey > .wrap{grid-template-columns:minmax(0,1fr)}
  #main #by5-journey-overview .journey > .wrap > .journey-rail{grid-column:1;grid-row:1}
  #main #by5-journey-overview .journey .section-intro > .eyebrow{grid-row:2}
  #main #by5-journey-overview .journey .section-intro > h2{grid-row:3}
}
@media(max-width:600px){
  #main #by5-journey-overview .journey > .wrap > .journey-rail{
    grid-template-columns:repeat(3,minmax(0,1fr));
    row-gap:20px;
  }
}

/* Supplied How By5 Works image replaces the three workflow cards. */
#main #bs-office-workflow .bs-workflow-image{
  grid-column:1/-1;
  grid-row:2;
  display:block;
  width:100%;
  max-width:540px;
  min-width:0;
  justify-self:start;
  margin:24px 0 0;
  padding:0;
}
#main #bs-office-workflow .bs-workflow-image img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0;
  border:0;
}

/* The supplied advantages artwork replaces the four cards beneath the feature headline. */
#main #metrics-section.by5-visual .hero-copy > .by5-advantages-image{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:42px 0 0;
  padding:0;
}
#main #metrics-section.by5-visual .by5-advantages-image > img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0;
  border:0;
}

/* Centre the supplied workspace artwork over the existing gold circle. */
#main #metrics-section.by5-visual .hero-picture:has(> .by5-workspace-image){
  display:grid;
  align-items:center;
  justify-items:center;
}
#main #metrics-section.by5-visual .hero-picture > .by5-workspace-image{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0;
  border:0;
}

/* Supplied story artwork replaces each panel and retains its feature-library action. */
#main #metrics-section.by5-visual .by5-story-image-panel{
  display:block;
  min-width:0;
  margin:0;
  padding:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
}
#main #metrics-section.by5-visual .by5-story-image-panel > img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0;
  border:0;
}
#main #metrics-section.by5-visual .by5-story-image-jump{
  position:absolute;
  left:56%;
  top:76%;
  width:33%;
  height:11%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
#main #metrics-section.by5-visual .by5-story-image-jump:focus-visible{
  outline:3px solid #000000;
  outline-offset:3px;
}
#main #metrics-section.by5-visual #story-02 .by5-story-image-jump{
  left:54%;
  top:76%;
  width:26%;
  height:9%;
}

/* Full-width story artwork contains both the headline and the illustration. */
#main #metrics-section.by5-visual .by5-full-image-story{
  display:block;
}
#main #metrics-section.by5-visual .by5-full-story-image{
  position:relative;
  width:100%;
  max-width:100%;
}
#main #metrics-section.by5-visual #story-03 .by5-story-image-jump{
  left:76%;
  top:87%;
  width:22%;
  height:8%;
}
#main #metrics-section.by5-visual #story-04 .by5-story-image-jump{
  left:78%;
  top:83%;
  width:20%;
  height:8%;
}
#main #metrics-section.by5-visual #story-05 .by5-story-image-jump{
  left:7.5%;
  top:70%;
  width:23%;
  height:10%;
}
#main #metrics-section.by5-visual #story-06 .by5-story-image-jump{
  left:7%;
  top:66%;
  width:22%;
  height:11%;
}
