/* Mobile and tablet Hero width only; source proportions are retained. */
/* Preserve the mobile image proportions. Only the horizontal presentation changes. */
@media (max-width:1023px) {
    body.am-page-hero main.site-main { overflow-x:clip; }
    body.am-page-hero main.site-main > .ct-container,
    body.am-page-hero main.site-main > .ct-container-full {
        padding-top:0!important;
        margin-top:0!important;
    }
    body.am-page-hero .entry-content .anderl-hero-image,
    body.am-page-hero main article > figure.ct-featured-image,
    body.am-page-hero .entry-content .am-home-page > figure.wp-block-image:first-child {
        box-sizing:border-box;
        width:var(--am-hero-viewport,100vw)!important;
        max-width:none!important;
        margin-left:calc((100% - var(--am-hero-viewport,100vw)) / 2)!important;
        margin-right:calc((100% - var(--am-hero-viewport,100vw)) / 2)!important;
        border-radius:0!important;
    }
    body.am-page-hero .entry-content .anderl-hero-image img,
    body.am-page-hero main article > figure.ct-featured-image :is(.ct-media-container,img),
    body.am-page-hero .entry-content .am-home-page > figure.wp-block-image:first-child img {
        display:block;
        width:100%!important;
        max-width:none!important;
        border-radius:0!important;
    }
    body.am-page-hero .entry-content .anderl-hero-image img,
    body.am-page-hero main article > figure.ct-featured-image img,
    body.am-page-hero .entry-content .am-home-page > figure.wp-block-image:first-child img {
        height:auto!important;
        object-fit:contain;
    }
}

/* A selected Manager photo replaces the theme opener without altering its source. */
body.am-has-managed-hero main article > figure.ct-featured-image { display:none; }
.am-managed-hero { grid-column:1 / -1; }
.am-managed-hero img { display:block; width:100%; height:auto; object-fit:contain; }
@media (max-width:1023px) {
 body.am-page-hero .am-experience-detail__image,
 body.am-page-hero main .am-managed-hero {
  width:var(--am-hero-viewport,100vw)!important;max-width:none!important;
  margin-left:calc((100% - var(--am-hero-viewport,100vw)) / 2)!important;
  margin-right:calc((100% - var(--am-hero-viewport,100vw)) / 2)!important;
  height:auto!important;border-radius:0!important;object-fit:contain;
 }
}
