/* v339: full-screen, uncropped profile / avatar photo viewer. */
.av-lb339{position:fixed;inset:0;z-index:40000;display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;overflow:hidden;background:var(--surface,#fff);color:var(--text,#111)}
html.dark .av-lb339,html[data-theme=dark] .av-lb339{background:var(--surface,#111);color:var(--text,#f4f4f5)}
.av-lb339-bar{display:flex;align-items:center;justify-content:flex-end;min-height:48px;padding:8px 10px;gap:8px;position:relative;z-index:1}
.av-lb339-x{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line,rgba(0,0,0,.18));border-radius:50%;background:var(--card,#fff);color:inherit;cursor:pointer;padding:0}
.av-lb339-x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.av-lb339-x:focus-visible{outline:3px solid var(--accent-text,#16a34a);outline-offset:2px}
.av-lb339-stage{position:relative;min-height:0;min-width:0;width:100%;height:100%;overflow:hidden;padding:0}
.av-lb339-stage img{position:absolute;inset:0;margin:auto;display:block;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:0;background:transparent}
.fr-av:has(img[data-fr-p]),.fr-av:has(img[src]),.pf-cover:has(.pf-cover-img),.fr-them-cover:has(.pf-cover-img),.bd-sw-photo,.bd-sw-photo-fallback{cursor:zoom-in}

html.av-lb339-lock,html.av-lb339-lock body{overflow:hidden;height:100%;height:100dvh;margin:0}
