/* Hello Abidjan v682 — portraits non recadrés dans les fiches des sorties.
   Seulement quand la couverture est la photo de profil de l'organisateur.
   Les vraies photos de couverture conservent leur mise en page. */
#main#main .community-detail-editorial .community-detail-editorial-gallery img.community-cover.ha-portrait-cover,
#main#main .community-detail-editorial .community-detail-editorial-gallery>.community-outing-gallery>img.community-cover.ha-portrait-cover,
#main#main .community-detail-editorial.ha-owner-approved .ha-approved-photo>img.community-cover.ha-portrait-cover,
#main#main .community-detail-editorial.ha-owner-approved .ha-approved-photo>.community-outing-gallery>img.community-cover.ha-portrait-cover {
 display:block !important;
 width:100% !important;
 height:clamp(300px,88vw,380px) !important;
 max-height:380px !important;
 min-height:0 !important;
 object-fit:contain !important;
 object-position:center center !important;
 background:linear-gradient(140deg,#dce7ef 0%,#eff3f6 52%,#dce7ef 100%) !important;
 margin:0 !important;
 border:0 !important;
}
/* Éviter de couper le portrait par un parent à hauteur fixe. */
#main#main .community-detail-editorial.ha-owner-approved:has(img.ha-portrait-cover) {
 --ha-approved-photo-height:clamp(300px,88vw,380px) !important;
}
#main#main .community-detail-editorial .community-detail-editorial-gallery:has(>img.ha-portrait-cover),
#main#main .community-detail-editorial .community-detail-editorial-gallery>.community-outing-gallery:has(>img.ha-portrait-cover) {
 min-height:clamp(300px,88vw,380px) !important;
 background:#e7eef4 !important;
}
#main#main .community-detail-editorial .community-detail-editorial-gallery:has(>img.ha-portrait-cover) {
 height:clamp(300px,88vw,380px) !important;
}
#main#main .community-detail-editorial .community-detail-editorial-gallery>.community-outing-gallery:has(>img.ha-portrait-cover) {
 height:auto !important;
}
/* Story : cadrage dans le haut de la photo (visage), jamais d'étirement. */
#main .bonplan-editorial-page .community-stories .ha-story-rail .ha-story-person>.ha-story-image {
 object-fit:cover !important;
 object-position:center 16% !important;
}