/* Full-width photo banners retain the source aspect ratio. */
.portal-profile .portal-hero,.contact-page .contact-hero{
 margin-inline:calc(-1 * var(--portal-gutter,clamp(16px,3.5vw,52px)));border-radius:0
}
.portal-profile .portal-hero-slide:not([hidden]),.contact-hero .portal-hero-slide{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;min-height:0;
 background:var(--photo-tone,#fff);color:var(--photo-ink,#242426)
}
.portal-hero-right{--photo-tone:#e6edf4}
.portal-hero-left{--photo-tone:#e5edda}
.portal-hero-cat,.portal-hero-dark{--photo-tone:#000;--photo-ink:#fff}
.portal-profile .portal-hero-image,.contact-hero .portal-hero-image{
 position:relative;inset:auto;width:auto;height:auto;grid-area:1/2
}
.portal-profile .portal-hero-left .portal-hero-image,.portal-profile .portal-hero-dark .portal-hero-image{grid-area:1/1}
.portal-profile .portal-hero-image img,.contact-hero .portal-hero-image img{display:block;width:100%;height:auto;object-fit:contain}
.portal-profile .portal-hero-image::after,.contact-hero .portal-hero-image::after{
 display:block;background:linear-gradient(to right,var(--photo-tone,#fff),transparent 30%)
}
.portal-profile .portal-hero-left .portal-hero-image::after,.portal-profile .portal-hero-dark .portal-hero-image::after{
 background:linear-gradient(to left,var(--photo-tone,#fff),transparent 18%)
}
.portal-profile .portal-hero-copy,.contact-hero .portal-hero-copy{grid-area:1/1;width:auto;margin:0;color:inherit}
.portal-profile .portal-hero-left .portal-hero-copy,.portal-profile .portal-hero-dark .portal-hero-copy{grid-area:1/2;width:auto}
@media(max-width:760px){
 .portal-profile .portal-hero-slide:not([hidden]),.contact-hero .portal-hero-slide{grid-template-columns:minmax(0,1fr)}
 .portal-profile .portal-hero-slide .portal-hero-image,.contact-hero .portal-hero-image{grid-area:1/1}
 .portal-profile .portal-hero-slide .portal-hero-copy,.contact-hero .portal-hero-copy{grid-area:2/1}
 .portal-profile .portal-hero-slide .portal-hero-image::after,.contact-hero .portal-hero-image::after{
  background:linear-gradient(to top,var(--photo-tone,#fff),transparent 22%)
 }
}

.portal-profile .portal-hero-slide:not([hidden]),.contact-hero .portal-hero-slide{min-height:clamp(390px,34vw,570px)}
.portal-profile .portal-hero-image,.contact-hero .portal-hero-image{align-self:stretch;min-height:0}
.portal-profile .portal-hero-image img,.contact-hero .portal-hero-image img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center
}
.portal-profile .portal-hero-right .portal-hero-image img{object-position:right center}
.portal-profile .portal-hero-cat .portal-hero-image img{object-position:72% center}
@media(max-width:760px){
 .portal-profile .portal-hero-slide:not([hidden]),.contact-hero .portal-hero-slide{min-height:0}
 .portal-profile .portal-hero-slide .portal-hero-image,.contact-hero .portal-hero-image{aspect-ratio:1}
}
