/* PITVU premium profile photography — fully scoped, no source-file mutation */
:root .historical-profile-header{
 --pitvu-photo-ink:#13251e;
 --pitvu-photo-shade:#17251e;
}
:root .historical-profile-header .historical-profile-overview.has-photograph{
 display:grid!important;
 grid-template-columns:minmax(310px,min(41%,540px)) minmax(0,1fr)!important;
 gap:clamp(16px,2vw,26px)!important;
 align-items:start;
}
:root .historical-profile-header .historical-profile-overview.has-photograph>.historical-profile-portrait{
 max-width:none!important;width:100%!important;min-width:0;justify-self:stretch!important;
 align-self:start;gap:0!important;position:relative;
}
:root .historical-profile-header .historical-profile-overview.has-photograph>.historical-profile-portrait .pitvu-profile-gallery{
 width:100%;max-width:none;min-width:0;
}
:root .historical-profile-header .pitvu-profile-gallery-stage{
 position:relative;overflow:hidden;border-radius:9px;
 background:var(--pitvu-photo-shade);border:1px solid rgba(24,44,35,.12);
 aspect-ratio:4/4.5;max-height:min(72vh,610px);min-height:0;
 isolation:isolate;
}
:root .historical-profile-header .pitvu-gallery-slide{
 position:absolute;inset:0;display:block!important;
 overflow:hidden!important;background:var(--pitvu-photo-shade);
 height:100%!important;width:100%!important;min-height:0!important;
 border-radius:0!important;
}
:root .historical-profile-header .pitvu-gallery-slide[hidden]{display:none!important}
:root .historical-profile-header .pitvu-gallery-slide>img{
 display:block!important;width:100%!important;height:100%!important;
 max-height:none!important;min-height:0!important;max-width:none!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 object-fit:cover!important;object-position:50% 42%!important;
 background:transparent!important;
 transform:scale(1);transition:transform .32s ease;filter:none;
}
:root .historical-profile-header .pitvu-gallery-slide:hover>img{transform:scale(1.025)}
:root .historical-profile-header .pitvu-gallery-overlay{
 pointer-events:none;position:absolute;inset:auto 0 0;
 padding:24px 13px 12px;display:flex;justify-content:space-between;align-items:end;gap:10px;
 background:linear-gradient(0deg,rgba(7,18,14,.68),transparent);
 color:#fff;z-index:2;
}
:root .historical-profile-header .pitvu-gallery-counter{
 font-size:.78rem;letter-spacing:.09em;font-weight:650;
 font-variant-numeric:tabular-nums;
}
:root .historical-profile-header .pitvu-gallery-expand{
 pointer-events:auto;display:inline-flex;align-items:center;gap:8px;cursor:pointer;
 border:1px solid rgba(255,255,255,.45);border-radius:5px;
 background:rgba(14,30,23,.56);color:#fff;backdrop-filter:blur(9px);
 min-height:36px;padding:6px 12px;font:600 .78rem/1 inherit;
}
:root .historical-profile-header .pitvu-gallery-expand:hover,
:root .historical-profile-header .pitvu-gallery-expand:focus-visible{
 background:rgba(255,255,255,.18);border-color:#fff;outline:none;
}
:root .historical-profile-header .pitvu-gallery-filmstrip{
 display:flex;gap:8px;padding:8px 0 0;overflow-x:auto;overscroll-behavior-x:contain;
 scrollbar-width:thin;
}
:root .historical-profile-header .pitvu-gallery-thumb{
 cursor:pointer;padding:0;flex:0 0 67px;width:67px;height:64px;
 border:2px solid transparent;border-radius:6px;overflow:hidden;
 background:var(--pitvu-photo-shade);
 opacity:.76;transition:opacity .18s,border-color .18s;
}
:root .historical-profile-header .pitvu-gallery-thumb[aria-pressed=true]{
 border-color:var(--theme-link,#315c4b);opacity:1;
}
:root .historical-profile-header .pitvu-gallery-thumb:is(:hover,:focus-visible){opacity:1}
:root .historical-profile-header .pitvu-gallery-thumb img{
 width:100%;height:100%;object-fit:cover;margin:0;border:0;border-radius:0;
}
:root .historical-profile-header .pitvu-gallery-footer{
 margin:0!important;padding:7px 1px 0!important;display:flex!important;
 align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
 color:var(--theme-muted,#647266);font-size:.73rem;line-height:1.5;
 background:transparent!important;
}
:root .historical-profile-header .pitvu-gallery-footer-id{
 font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
:root .historical-profile-header .historical-profile-title{
 margin-bottom:clamp(12px,1.6vw,19px)!important;
}
:root .historical-profile-header .historical-profile-information{gap:12px!important}
:root .historical-profile-header .historical-profile-parents{gap:10px!important}
:root .historical-profile-header .historical-parent-card{
 min-height:75px!important;padding:14px 16px!important;
 border-radius:8px!important;
}
:root .historical-profile-header .historical-parent-card>a{
 font-size:clamp(.98rem,1.4vw,1.1rem)!important;line-height:1.35!important;
}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts{
 gap:9px!important;
}
:root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
 min-height:68px!important;padding:12px 14px!important;border-radius:8px!important;
}
:root .historical-profile-header .historical-profile-actions{gap:8px!important}
:root .historical-profile-header .historical-profile-actions .button{min-height:39px}
:root .historical-profile-header .transferred-member-photo .member-photo-figure{
 width:100%;margin:0;background:transparent;
}
:root .historical-profile-header .transferred-member-photo .member-photo-image{
 display:block;width:100%;height:min(72vh,610px);min-height:0;max-height:none;
 aspect-ratio:4/4.5;object-fit:cover;object-position:50% 42%;
 background:var(--pitvu-photo-shade);border-radius:9px;
}
:root .historical-profile-header .transferred-member-photo figcaption{
 margin:0;padding:8px 2px;color:var(--theme-muted,#647266);
 font-size:.78rem;line-height:1.55;
}
:root .historical-profile-header .transferred-member-photo .member-photo-credit{
 display:block;font-size:.73rem;line-height:1.45;
}
@media(min-width:801px){
 :root .historical-profile-header .historical-profile-overview.has-photograph:has(>.transferred-member-photo + .historical-profile-portrait){
  grid-template-columns:repeat(2,minmax(0,min(25%,350px))) minmax(0,1fr)!important;
 }
 :root .historical-profile-header .historical-profile-overview.has-photograph:has(>.transferred-member-photo + .historical-profile-portrait) .pitvu-profile-gallery-stage{
  aspect-ratio:3/4;max-height:475px;
 }
}
@media(max-width:800px){
 :root .historical-profile-header .historical-profile-overview.has-photograph{
  grid-template-columns:minmax(0,1fr)!important;gap:14px!important;
 }
 :root .historical-profile-header .historical-profile-portrait{max-width:none!important;width:100%!important}
 :root .historical-profile-header .pitvu-profile-gallery-stage{
  aspect-ratio:4/4;max-height:min(70vh,560px);
 }
 :root .historical-profile-header .historical-parent-card{min-height:68px!important;padding:12px 13px!important}
 :root .historical-profile-header .historical-profile-visible-facts .historical-profile-facts>div{
  padding:11px 12px!important;min-height:62px!important;
 }
}
@media(max-width:500px){
 :root .historical-profile-header .historical-profile-overview.has-photograph{gap:12px!important}
 :root .historical-profile-header .pitvu-profile-gallery-stage{
  aspect-ratio:4/4.25;max-height:500px;border-radius:7px;
 }
 :root .historical-profile-header .pitvu-gallery-thumb{flex-basis:59px;width:59px;height:57px}
 :root .historical-profile-header .historical-profile-parents{gap:8px!important}
 :root .historical-profile-header .historical-profile-title{margin-bottom:12px!important}
}
@media(prefers-reduced-motion:reduce){
 :root .historical-profile-header .pitvu-gallery-slide>img{transition:none!important}
}
@media print{
 :root .historical-profile-header .pitvu-gallery-expand,
 :root .historical-profile-header .pitvu-gallery-filmstrip{display:none!important}
 :root .historical-profile-header .pitvu-gallery-slide>img{object-fit:contain!important}
}
