/* NearNow Web v212 — desktop-only own-profile hero enlargement.
   Mobile <= 860px remains on the approved v180/v191 visual layers. */
@media (min-width:861px){
  #screen-profile .mock-page{
    padding-bottom:40px;
  }

  #profileOverviewCard.profile-story-own{
    width:min(100%,1180px)!important;
    max-width:1180px!important;
    margin:0 auto!important;
  }

  /* The photo is the dominant desktop profile element. It stays uncropped and
     the frame follows the rendered image instead of creating empty chrome. */
  #profileOverviewCard.profile-story-own .own-profile-hero-frame{
    width:max-content!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0 auto 16px!important;
    aspect-ratio:auto!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-hero{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:min(100%,920px)!important;
    max-height:min(88vh,940px)!important;
    object-fit:contain!important;
    object-position:center center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-hero-edge{
    position:absolute!important;
    inset:0!important;
    pointer-events:none!important;
    border-radius:0!important;
    background:
      linear-gradient(90deg,#0a0c11 0%,rgba(10,12,17,.70) 2.5%,rgba(10,12,17,.22) 7%,rgba(10,12,17,0) 13%,rgba(10,12,17,0) 87%,rgba(10,12,17,.22) 93%,rgba(10,12,17,.70) 97.5%,#0a0c11 100%),
      linear-gradient(180deg,#0a0c11 0%,rgba(10,12,17,.55) 2.5%,rgba(10,12,17,.16) 7%,rgba(10,12,17,0) 13%,rgba(10,12,17,0) 87%,rgba(10,12,17,.16) 93%,rgba(10,12,17,.55) 97.5%,#0a0c11 100%)!important;
  }

  #profileOverviewCard.profile-story-own .own-profile-hero-strip{
    width:min(100%,920px)!important;
    max-width:920px!important;
    margin:0 auto 18px!important;
    gap:8px!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-hero-thumb,
  #profileOverviewCard.profile-story-own .own-profile-hero-more{
    flex-basis:76px!important;
    height:62px!important;
    border-radius:12px!important;
  }

  #profileOverviewCard.profile-story-own .profile-story-own-head,
  #profileOverviewCard.profile-story-own .profile-overview-body{
    width:min(100%,1040px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-head{
    align-items:flex-end!important;
    margin-bottom:16px!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-head h3{
    font-size:34px!important;
    letter-spacing:-.025em!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-head .sub{
    font-size:13px!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-actions{
    justify-content:flex-end!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-actions .pill{
    min-height:44px!important;
    padding-inline:14px!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-story-grid{
    gap:12px!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-story-grid .own-profile-section{
    padding:17px 18px!important;
  }
}

@media (min-width:861px) and (max-width:1120px){
  #profileOverviewCard.profile-story-own{
    width:min(100%,980px)!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-hero{
    max-width:min(100%,820px)!important;
    max-height:min(84vh,840px)!important;
  }
  #profileOverviewCard.profile-story-own .own-profile-hero-strip{
    width:min(100%,820px)!important;
  }
  #profileOverviewCard.profile-story-own .profile-story-own-head,
  #profileOverviewCard.profile-story-own .profile-overview-body{
    width:min(100%,900px)!important;
  }
}
