/* Picorae v18.138 | portrait-only editorial autofit.
 * v18.137 landscape wedding photo is the benchmark and is UNCHANGED:
 * every selector requires p138-auto-portrait, added only for decoded
 * original covers with naturalHeight / naturalWidth >= 1.38.
 * Never fetch additional photos or change signed media URLs.
 */
#manageView #hostEventTab .p129-host-overview > #hostEventHero.p138-auto-portrait{
 background:#fffdf8!important;
 isolation:isolate!important;
 position:relative!important;
}
#manageView #hostEventTab .p129-host-overview > #hostEventHero.p138-auto-portrait::before{
 content:""!important;
 display:block!important;position:absolute!important;
 inset:-22px -24px auto!important;
 height:clamp(320px,92vw,435px)!important;
 width:auto!important;max-width:none!important;
 background-image:var(--p127-cover-backdrop)!important;
 background-size:cover!important;background-position:center 37%!important;
 background-repeat:no-repeat!important;
 filter:blur(24px) saturate(.85) sepia(.16) brightness(1.24)!important;
 opacity:.68!important;
 transform:scale(1.12)!important;
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 46%,rgba(0,0,0,.68) 71%,transparent 98%)!important;
 mask-image:linear-gradient(to bottom,#000 0%,#000 46%,rgba(0,0,0,.68) 71%,transparent 98%)!important;
 pointer-events:none!important;z-index:0!important;
}
/* Inline radial mask is set only for decoded portrait photos, allowing
 * hard grey side edges to dissolve softly into the already-loaded photo. */
#manageView #hostEventTab .p129-host-overview > #hostEventHero.p138-auto-portrait > #hostHeroCover:not(.hidden){
 object-fit:cover!important;
 border:0!important;
 background:transparent!important;
 filter:saturate(1.06) contrast(1.025)!important;
}
#manageView #hostEventTab .p129-host-overview > #hostEventHero.p138-auto-portrait > .host-hero-content{
 position:relative!important;z-index:3!important;
 background:linear-gradient(180deg,rgba(255,253,248,0),rgba(255,253,248,.48) 20%,rgba(255,253,248,.92) 48%,#fffdf8 76%)!important;
}
/* Same family on the genuine guest-facing QR screen, not a fake preview. */
#eventView #guestEvent .event-hero > #guestCoverWrap.p138-auto-portrait{
 position:relative!important;isolation:isolate!important;
 border:0!important;background:#fffdf8!important;
 overflow:hidden!important;
}
#eventView #guestEvent .event-hero > #guestCoverWrap.p138-auto-portrait::before{
 content:""!important;display:block!important;
 position:absolute!important;inset:-18px -20px!important;
 width:auto!important;height:auto!important;
 background-image:var(--p127-cover-backdrop)!important;
 background-size:cover!important;background-position:center 40%!important;
 filter:blur(24px) saturate(.88) sepia(.16) brightness(1.22)!important;
 opacity:.7!important;transform:scale(1.08)!important;
 pointer-events:none!important;z-index:0!important;
}
#eventView #guestEvent .event-hero > #guestCoverWrap.p138-auto-portrait > #guestCover{
 position:relative!important;z-index:1!important;
 object-fit:cover!important;
 filter:saturate(1.04)!important;
 background:transparent!important;
}
/* Saved Celebrations: same natural photograph, blurred atmosphere on
 * portrait sides rather than a cold-grey thumbnail. */
#dashboardView #dashboardSignedIn #eventList .dashboard-event-art.p138-auto-portrait{
 position:relative!important;isolation:isolate!important;
 background:linear-gradient(180deg,#f4ecdc,#fffdf8 100%)!important;
 overflow:hidden!important;
}
#dashboardView #dashboardSignedIn #eventList .dashboard-event-art.p138-auto-portrait::before{
 content:""!important;display:block!important;
 position:absolute!important;inset:-16px -20px!important;
 background-image:var(--p127-cover-backdrop)!important;
 background-size:cover!important;background-position:center 37%!important;
 filter:blur(24px) saturate(.85) sepia(.16) brightness(1.2)!important;
 opacity:.67!important;transform:scale(1.09)!important;
 pointer-events:none!important;z-index:0!important;
}
#dashboardView #dashboardSignedIn #eventList .dashboard-event-art.p138-auto-portrait > img{
 /* v18.142: this MUST be absolute. The old relative image flowed as
    intrinsic portrait height and the card showed its TOP, cutting off
    the dog's face despite an apparent object-fit:cover setting. */
 position:absolute!important;inset:0!important;z-index:1!important;
 display:block!important;width:100%!important;height:100%!important;
 min-width:100%!important;max-width:100%!important;
 min-height:100%!important;max-height:100%!important;
 margin:0!important;padding:0!important;
 object-fit:cover!important;background:transparent!important;
 filter:saturate(1.04)!important;
}
@media (prefers-reduced-motion:reduce){
 #manageView #hostEventTab #hostEventHero.p138-auto-portrait > #hostHeroCover,
 #eventView #guestEvent #guestCoverWrap.p138-auto-portrait > #guestCover{
  transition:none!important;animation:none!important;
 }
}