/* Nondestructive position/zoom. Source assets remain complete. */
.avatar{overflow:hidden}
.photo-avatar-frame{display:inline-block;flex:none;overflow:hidden;border-radius:50%;vertical-align:middle}
.photo-adjustment{margin:12px 0;display:grid;gap:12px;min-width:0}
.photo-adjustment-stage{position:relative;max-width:374px;width:100%;margin:auto;touch-action:none;cursor:grab;user-select:none;outline-offset:4px}
.photo-adjustment-stage:active{cursor:grabbing}
.photo-adjustment-stage :is(img,button){-webkit-user-drag:none}
.photo-adjustment-stage>:not(.photo-preview-switch){pointer-events:none}
.photo-adjustment:has(.story-hero-v13) .photo-adjustment-stage{max-width:100%}
.photo-adjustment-stage .story-hero-v13{margin:0}
.photo-preview-switch{display:flex;gap:8px;justify-content:center;margin-bottom:8px}
.photo-adjustment-controls{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.photo-adjustment-controls label{display:grid;gap:5px;font-size:11px;color:var(--ink700)}
.photo-adjustment-controls label b{font-weight:600}
.photo-adjustment-controls input{width:100%;accent-color:var(--navy700)}
.photo-adjustment-controls button{justify-self:start;grid-column:1/-1}
.photo-avatar-preview{width:160px;height:160px;border-radius:50%;overflow:hidden;margin:auto;background:repeating-conic-gradient(#e9edf3 0% 25%,#fff 0% 50%) 50%/16px 16px}
.photo-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover;transform-origin:center}
.team-photo-open{display:block;width:100%;border:0;padding:0;background:none;text-align:inherit;cursor:zoom-in;border-radius:24px}
.photo-viewer{position:fixed;inset:0;z-index:10050;background:rgba(10,20,35,.97);color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:18px;overscroll-behavior:contain}
.photo-viewer header,.photo-viewer footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:8px}
.photo-viewer footer{font-size:12px;justify-content:center}
.photo-viewer footer label{display:flex;gap:12px;align-items:center}
.photo-viewer-stage{position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab}
.photo-viewer-stage:active{cursor:grabbing}
.photo-viewer-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none;pointer-events:none;transform-origin:center}
@media(max-width:520px){.photo-adjustment-controls{grid-template-columns:1fr}.photo-viewer{padding:8px}.photo-adjustment-stage{max-width:100%}}
