.photo-zoom{min-width:0;max-width:100%;display:grid;gap:7px}
.photo-zoom-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;overflow:hidden;min-width:0;background:#e6e9e0;border-radius:8px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.photo-zoom-layer{position:relative;display:grid;width:fit-content;max-width:100%;line-height:0;transform-origin:50% 50%}
.photo-zoom-layer img{display:block;max-width:100%;height:auto;pointer-events:none}
.photo-zoom-layer .crop-outline{stroke-width:var(--photo-line,2.5px)}
.photo-zoom-layer .source-ellipse{border-width:var(--photo-line,2px)}
.photo-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.photo-tools button,.photo-tools output{font:inherit;font-size:.86rem;line-height:1.2;color:var(--ink)}
.photo-tools button{min-height:44px;min-width:44px;padding:5px 9px;background:#f7f7ef;border:1px solid #c8d1c1;border-radius:8px}
.photo-tools button:disabled{opacity:.45;cursor:default}
.photo-tools output{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}
.photo-tools [aria-pressed="true"]{background:var(--pine);color:#fff}
.photo-zoom[data-panning="true"] .photo-zoom-stage,.photo-zoom[data-panning="true"] #crop-overlay{cursor:grab}
.photo-zoom[data-panning="true"] .photo-zoom-stage:active{cursor:grabbing}
#viewer .photo-zoom-stage{height:min(60vh,650px);height:min(60dvh,650px)}
#viewer .photo-zoom-layer img{max-height:min(60vh,650px);max-height:min(60dvh,650px);width:auto}
