/* SGTM V354 — strictly scoped to /service-areas/.
   Replaces the conflicting V352/V353 image sizing rules.
   Only sizing/layout are changed; V345 navigation and portal remain untouched. */
body.service-areas-page main > section.sa151-hero,
body.service-areas-page main > section.sa151-overview {
  box-sizing:border-box;
  min-width:0;
}
@media (min-width:1181px) {
  /* A grid track is sized by the text; photo frame stretches to the same height. */
  body.service-areas-page main > section.sa151-hero.media-pair-v229 {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:clamp(24px,3vw,42px)!important;
  }
  body.service-areas-page main > section.sa151-hero > .sa151-hero-copy {min-width:0!important;align-self:stretch!important;}
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media.media-panel-v229 {
    display:block!important;position:relative!important;align-self:stretch!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;aspect-ratio:auto!important;
    overflow:hidden!important;border-radius:5px!important;
    border:1px solid rgba(8,122,199,.28)!important;
    background:#081b2c!important;
  }
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media > .media-slot-v229 {
    position:absolute!important;inset:0!important;display:block!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
    padding:0!important;margin:0!important;aspect-ratio:auto!important;
    border:0!important;box-shadow:none!important;
  }
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media > .media-slot-v229 > img {
    position:absolute!important;inset:0!important;display:block!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
    object-fit:cover!important;object-position:center center!important;
  }
  /* Keep the van advert legible. The full artwork sits within an equal-height frame. */
  body.service-areas-page main > section.sa151-overview {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:clamp(24px,3vw,42px)!important;
    align-items:stretch!important;
  }
  body.service-areas-page main > section.sa151-overview > .sa151-overview-copy {
    min-width:0!important;align-self:stretch!important;max-width:none!important;
  }
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media {
    display:block!important;position:relative!important;align-self:stretch!important;
    margin:0!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;overflow:hidden!important;
    border:1px solid #f5f8fc!important;background:#081b2c!important;
  }
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media > img {
    position:absolute!important;inset:0 0 30px 0!important;display:block!important;
    width:100%!important;height:calc(100% - 30px)!important;
    min-height:0!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
  }
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media > figcaption {
    position:absolute!important;left:0;right:0;bottom:0;height:30px;
    display:flex;align-items:center;padding:0 12px;background:#f5f8fc;
    font-size:.76rem;line-height:1.3;color:#667d92;
  }
}
/* Only the four service cards occupy the second row, rather than compressing either photo. */
body.service-areas-page main > section.sa151-overview > .sa151-route-grid.sa352-four-cards {
  grid-column:1 / -1!important;display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;min-width:0!important;width:100%!important;
}
body.service-areas-page .sa151-route-grid.sa352-four-cards > article {min-width:0!important;overflow-wrap:break-word;}
body.service-areas-page .sa151-area-grid.sa352-areas-grid,
body.service-areas-page .sa151-related-grid {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;min-width:0!important;
}
body.service-areas-page .sa151-area-grid.sa352-areas-grid article,
body.service-areas-page .sa151-related-grid a{min-width:0!important;overflow-wrap:break-word;}
body.service-areas-page .sa151-area-grid.sa352-areas-grid p{font-size:.95rem;line-height:1.65;margin:0;}
body.service-areas-page .sa151-overview-copy p+p{margin-top:16px;}
body.service-areas-page .sa151-check p+p{margin-top:14px;}
body.service-areas-page .sa352-more-links{margin:24px 0 0;color:#465d70;line-height:1.7;}
body.service-areas-page .sa352-more-links a{color:#076aae;text-decoration:underline;text-underline-offset:3px;}
@media (max-width:1180px) {
  body.service-areas-page main > section.sa151-hero,
  body.service-areas-page main > section.sa151-overview {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;
  }
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media.media-panel-v229,
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media {
    display:block!important;position:relative!important;align-self:auto!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    width:100%!important;overflow:hidden!important;margin:0!important;
  }
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media > .media-slot-v229 {
    position:relative!important;inset:auto!important;display:block!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    aspect-ratio:16/10!important;flex:none!important;margin:0!important;
  }
  body.service-areas-page main > section.sa151-hero > figure.sa151-hero-media > .media-slot-v229 img {
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    min-height:0!important;object-fit:cover!important;
  }
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media > img {
    display:block!important;position:static!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;object-fit:contain!important;
  }
  body.service-areas-page main > section.sa151-overview > figure.sa151-overview-media.sa352-van-media > figcaption {
    position:static!important;display:block!important;margin:0!important;padding:8px 12px;
    background:#f5f8fc;color:#667d92;font-size:.76rem;
  }
  body.service-areas-page main > section.sa151-overview > .sa151-route-grid.sa352-four-cards,
  body.service-areas-page .sa151-area-grid.sa352-areas-grid,
  body.service-areas-page .sa151-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:650px) {
  body.service-areas-page main > section.sa151-overview > .sa151-route-grid.sa352-four-cards,
  body.service-areas-page .sa151-area-grid.sa352-areas-grid,
  body.service-areas-page .sa151-related-grid{grid-template-columns:minmax(0,1fr)!important;}
}
