/* Membertou Development: contextual photography, orientation-aware pass 2026-10-09.
   Only the four pages enqueued by membertou-contextual-photography.php.
   Editorial imagery retains its native proportion; brand marks alone use contain. */
.mdc-contextual-photo-widget{width:100%;max-width:100%;min-width:0}
.mdc-contextual-photo-widget .elementor-widget-container{min-width:0;max-width:100%}
.mdc-contextual-photo-widget .mdc-context-photo{
  display:block;width:100%;max-width:100%;min-width:0;margin:0;
  font-family:Archivo,Arial,sans-serif;color:inherit;
}
.mdc-contextual-photo-widget .mdc-context-photo__frame{
  display:block!important;width:100%;max-width:100%;
  height:auto!important;max-height:none!important;min-height:0!important;
  aspect-ratio:auto!important;background:transparent!important;
  border:0!important;border-radius:12px;overflow:hidden;
}
.mdc-contextual-photo-widget .mdc-context-photo__image{
  display:block!important;width:100%!important;height:auto!important;
  max-width:100%!important;max-height:none!important;
  aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;
  margin:0!important;padding:0!important;filter:none!important;
  border-radius:12px;
  contain:none!important;contain-intrinsic-size:none!important;content-visibility:visible!important;
}
.mdc-contextual-photo-widget .mdc-context-photo__caption{
  display:block;margin:11px 0 0!important;padding:0!important;
  font-family:Archivo,Arial,sans-serif!important;font-size:1.125rem!important;
  font-weight:400!important;line-height:1.5!important;color:inherit!important;
  overflow-wrap:anywhere;
}
.mdc-contextual-photo-widget .mdc-context-photo__credit{
  display:block;margin-top:4px!important;font-size:1.0625rem!important;
  font-weight:400!important;line-height:1.5!important;color:inherit!important;
  opacity:1;
}
.mdc-contextual-photo-widget--category{margin:0 0 16px!important}
.mdc-contextual-photo-widget--story{margin:24px 0 0!important}
.mdc-contextual-photo-widget--service{margin:0 0 24px!important}
.mdc-contextual-photo-widget--partnership{margin:0 0 24px!important}
.mdc-contextual-photo-widget .mdc-context-photo.is-portrait{
  width:100%!important;max-width:390px!important;
  margin-inline:0!important;
}
.mdc-contextual-photo-widget--partnership .mdc-context-photo.is-portrait{
  max-width:360px!important;
}
/* Preserve logo artwork with deliberate breathing room rather than photographic cropping. */
.mdc-contextual-photo-widget--brand{margin:0 0 16px!important}
.mdc-contextual-photo-widget--brand .mdc-context-photo__frame{
  display:flex!important;align-items:center;justify-content:center;
  aspect-ratio:3/2!important;min-height:180px!important;
  background:#f3eee7!important;
}
.mdc-contextual-photo-widget--brand .mdc-context-photo__image{
  width:min(65%,230px)!important;height:auto!important;
  max-width:78%!important;max-height:78%!important;
  object-fit:contain!important;border-radius:0!important;
}
/* The Chief Terry portrait is an editorial image, not a full-width photo banner. */
body.page-id-2101 .mdc-contextual-photo-widget--quote{
  width:100%!important;max-width:390px!important;margin:0!important;min-width:0!important;
}
body.page-id-2101 .mdc-contextual-photo-widget--quote .mdc-context-photo{
  max-width:390px!important;margin:0!important;
}
body.page-id-2101 .mdc-contextual-photo-widget--quote .mdc-context-photo__caption{
  color:#fff!important;
}
body.page-id-2101 .mdc-contextual-photo-widget--quote .mdc-context-photo__credit{
  color:#eae1d8!important;
}
@media(min-width:1000px){
  body.page-id-2101 .mt-story-quote-shell{
    display:grid!important;
    grid-template-columns:minmax(260px, min(30vw,390px)) minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:clamp(32px,4.5vw,72px)!important;
    row-gap:clamp(10px,1.5vw,20px)!important;
    align-items:center!important;
  }
  body.page-id-2101 .mt-story-quote-shell > .mdc-contextual-photo-widget--quote{
    grid-column:1!important;grid-row:1 / 4!important;
    align-self:center!important;justify-self:start!important;
  }
  body.page-id-2101 .mt-story-quote-shell > .mt-story-kicker{
    grid-column:2!important;grid-row:1!important;align-self:end!important;
  }
  body.page-id-2101 .mt-story-quote-shell > .mt-story-quote-text{
    grid-column:2!important;grid-row:2!important;align-self:center!important;
  }
  body.page-id-2101 .mt-story-quote-shell > .mt-story-quote-credit{
    grid-column:2!important;grid-row:3!important;align-self:start!important;
  }
  body.page-id-2101 .mt-story-quote-shell .mt-story-quote-text .elementor-heading-title{
    width:100%!important;max-width:100%!important;
    margin:0!important;font-size:clamp(2.5rem,3.75vw,3.7rem)!important;
    line-height:1.12!important;text-wrap:balance!important;
  }
}
@media(max-width:999px){
  body.page-id-2101 .mt-story-quote-shell{
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;
  }
  body.page-id-2101 .mdc-contextual-photo-widget--quote{
    max-width:min(100%,365px)!important;margin:0 0 28px!important;
  }
  body.page-id-2101 .mt-story-quote-text .elementor-heading-title{
    font-size:clamp(2rem,5vw,3.5rem)!important;
  }
}
@media(max-width:479px){
  body.page-id-2101 .mdc-contextual-photo-widget--quote{max-width:min(100%,315px)!important}
}
