/* NearNow Web v217 — restore familiar profile story layout with a larger real profile photo.
   Desktop only. Public gallery sits immediately below the hero; restricted/secret gallery is last. */
@media (min-width:861px){
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard.profile-story-own{
    width:min(100%,1180px)!important;max-width:1180px!important;margin:0 auto!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-frame{
    position:relative!important;width:100%!important;max-width:none!important;
    height:clamp(300px,38vh,420px)!important;min-height:300px!important;aspect-ratio:auto!important;
    margin:0 0 12px!important;border:1px solid rgba(var(--profile-accent-rgb,34,167,255),.34)!important;
    border-radius:22px!important;overflow:hidden!important;background:#070b12!important;
    box-shadow:0 20px 54px rgba(0,0,0,.34)!important;line-height:normal!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-cover-art{
    position:absolute;inset:0;z-index:0;display:block;
    background-image:linear-gradient(90deg,rgba(5,8,13,.84) 0%,rgba(5,8,13,.62) 28%,rgba(5,8,13,.18) 56%,rgba(5,8,13,.15) 100%),url("nearnow_profile_setup_hero.webp");
    background-size:cover;background-position:center 62%;filter:saturate(.93) contrast(1.03);
  }
  .sensual-mode #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-cover-art{
    background-image:linear-gradient(90deg,rgba(14,4,10,.84) 0%,rgba(14,4,10,.60) 28%,rgba(20,5,13,.18) 58%,rgba(14,4,10,.14) 100%),url("nearnow_sensual_profile_setup_hero.webp");
    background-position:center 48%;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero{
    position:absolute!important;z-index:2!important;left:18px!important;bottom:0!important;
    width:clamp(220px,25vw,340px)!important;height:calc(100% - 16px)!important;max-width:36%!important;max-height:none!important;
    object-fit:contain!important;object-position:left bottom!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 15px 24px rgba(0,0,0,.36))!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-edge{
    position:absolute!important;inset:0!important;z-index:3!important;pointer-events:none!important;border-radius:inherit!important;
    background:linear-gradient(180deg,rgba(5,8,13,.02) 0%,rgba(5,8,13,0) 68%,rgba(5,8,13,.28) 100%)!important;
    box-shadow:inset 0 0 32px rgba(4,7,11,.12)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-head{
    position:absolute!important;z-index:4!important;left:clamp(270px,31vw,390px)!important;right:24px!important;bottom:24px!important;
    width:auto!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    align-items:end!important;gap:13px!important;color:#fff!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-identity{display:block!important;min-width:0!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-avatar{display:none!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileModeLabel{font-size:11px!important;letter-spacing:.11em!important;color:rgb(var(--profile-accent-rgb,34,167,255))!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileName{font-size:34px!important;line-height:1.05!important;margin:4px 0 5px!important;text-shadow:0 2px 18px rgba(0,0,0,.55)!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileMeta{font-size:12px!important;color:#e2e8f2!important;text-shadow:0 2px 12px rgba(0,0,0,.55)!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions{
    display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions .pill{
    min-height:32px!important;padding:0 10px!important;border-radius:9px!important;font-size:10px!important;font-weight:760!important;
    background:rgba(8,13,21,.66)!important;backdrop-filter:blur(10px)!important;border:1px solid rgba(255,255,255,.18)!important;color:#eef5ff!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions #profileEditBtn{
    min-height:40px!important;padding:0 18px!important;font-size:12px!important;background:linear-gradient(135deg,rgba(var(--profile-accent-rgb,34,167,255),.98),rgba(var(--profile-accent-rgb,34,167,255),.72))!important;border-color:rgba(var(--profile-accent-rgb,34,167,255),.92)!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-strip{display:none!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-overview-body{width:100%!important;margin:0!important;display:grid!important;gap:12px!important}

  /* Public gallery is deliberately the first block after the hero. */
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-public-section{order:0!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-public-gallery{
    width:100%!important;text-align:left!important;border:1px solid rgba(var(--profile-accent-rgb,34,167,255),.28)!important;
    border-radius:15px!important;padding:12px 14px!important;background:linear-gradient(180deg,rgba(15,22,33,.82),rgba(9,14,22,.88))!important;color:#fff!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-public-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:12px!important;margin-bottom:9px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-public-heading b{font-size:14px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-public-heading span{font-size:10.5px!important;color:#8f9db0!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-public-media-preview{display:flex!important;gap:8px!important;min-height:74px!important;overflow:hidden!important;margin:0!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-public-media-preview img{width:92px!important;height:74px!important;border-radius:10px!important;object-fit:cover!important;border:1px solid rgba(255,255,255,.10)!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-public-media-preview-more{width:92px!important;height:74px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:rgba(var(--profile-accent-rgb,34,167,255),.10)!important;border:1px solid rgba(var(--profile-accent-rgb,34,167,255),.20)!important;font-weight:850!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-public-media-preview-empty{min-height:62px!important;display:flex!important;align-items:center!important;color:#8190a4!important;font-size:11px!important}

  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-quick-tags{order:1!important;margin:0!important;padding:0 2px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid{order:2!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-story-grid .own-profile-section{padding:13px 14px!important;border-radius:14px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-restricted-section{order:3!important;margin-top:6px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-restricted-section>.own-profile-section{
    padding:14px!important;border:1px solid rgba(113,132,164,.20)!important;border-radius:15px!important;background:linear-gradient(180deg,rgba(14,19,29,.72),rgba(9,13,20,.84))!important;
  }
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-restricted-section h4{margin:0 0 8px!important;font-size:13px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-restricted-section .own-profile-media-row{min-height:58px!important;border-radius:12px!important;padding:10px 12px!important}
}

@media (min-width:861px) and (max-width:1080px){
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero-frame{height:300px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .own-profile-hero{width:240px!important;max-width:34%!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-head{left:280px!important;right:16px!important;bottom:18px!important}
  #screen-profile:not(.viewing-other-profile) #ownProfileName{font-size:29px!important}
  #screen-profile:not(.viewing-other-profile) #profileOverviewCard .profile-story-own-actions .pill{padding:0 8px!important;font-size:9.5px!important}
}
