dialog.bb-photo-viewer{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#f8fafc;color:#172b47;font:500 14px/1.4 Anuphan,system-ui,sans-serif;box-shadow:none;overflow:hidden;z-index:2147483647}
dialog.bb-photo-viewer[open]{display:flex;flex-direction:column;animation:bb-photo-appear .14s ease-out}
dialog.bb-photo-viewer::backdrop{background:#101722}
.bb-photo-viewer *{box-sizing:border-box}
.bb-photo-viewer .bb-photo-toolbar{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center;padding:12px max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));border-bottom:1px solid #d9e2ee;flex:none;background:#fff;position:relative}
.bb-photo-viewer .bb-photo-heading{display:flex;align-items:center;gap:14px;min-width:0}
.bb-photo-viewer .bb-photo-heading strong{font-size:16px;white-space:nowrap}
.bb-photo-viewer output{font-size:13px;color:#536984;font-variant-numeric:tabular-nums}
.bb-photo-viewer .bb-photo-controls{display:flex;gap:8px;grid-column:2;grid-row:1;align-items:center}
.bb-photo-viewer button{appearance:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e1ee;border-radius:10px;background:#f4f7fc;color:inherit;font:inherit;padding:0 14px;min-width:44px;height:44px;cursor:pointer;box-shadow:none;white-space:nowrap;transition:background .12s}
.bb-photo-viewer button:hover{background:#e6eefb}
.bb-photo-viewer button:focus-visible,.bb-photo-viewer .bb-photo-stage:focus-visible{outline:3px solid #4b98ff;outline-offset:-3px}
.bb-photo-viewer button[aria-pressed=true]{background:#e4efff;border-color:#418bfa;color:#1552a9}
.bb-photo-viewer button:disabled{opacity:.4;cursor:default}
.bb-photo-viewer button[data-photo=in],.bb-photo-viewer button[data-photo=out]{font-size:25px;padding:0}
.bb-photo-viewer .bb-photo-close{grid-column:3;grid-row:1;font-size:27px;padding:0}
.bb-photo-viewer .bb-photo-stage{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;background:#e8edf4;touch-action:none;overscroll-behavior:contain;user-select:none}
.bb-photo-viewer .bb-photo-image{position:absolute;left:50%;top:50%;display:block;max-width:none!important;max-height:none!important;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;object-fit:contain;box-shadow:0 3px 24px #081b3324;pointer-events:none;user-select:none}
.bb-photo-viewer .bb-photo-pannable{cursor:grab}
.bb-photo-viewer .bb-photo-dragging{cursor:grabbing}
.bb-photo-viewer .bb-photo-loading{position:absolute;inset:45% 20px auto;text-align:center;color:inherit}
.bb-photo-viewer .bb-photo-loading[hidden]{display:none}
.bb-photo-viewer .bb-photo-hint{background:#fff;padding:10px 16px max(10px,env(safe-area-inset-bottom));text-align:center;color:#536984;font-size:12px;flex:none;border-top:1px solid #d9e2ee}
.bb-photo-viewer[data-photo-theme=dark]{color:#eef4ff;background:#101b29}
.bb-photo-viewer[data-photo-theme=dark] .bb-photo-toolbar,.bb-photo-viewer[data-photo-theme=dark] .bb-photo-hint{background:#172536;border-color:#354557}
.bb-photo-viewer[data-photo-theme=dark] .bb-photo-stage{background:#0a111c}
.bb-photo-viewer[data-photo-theme=dark] button{background:#233448;border-color:#43576e}
.bb-photo-viewer[data-photo-theme=dark] button:hover{background:#314963}
.bb-photo-viewer[data-photo-theme=dark] button[aria-pressed=true]{background:#224c7b;border-color:#79b7ff;color:#fff}
.bb-photo-viewer[data-photo-theme=dark] output,.bb-photo-viewer[data-photo-theme=dark] .bb-photo-hint{color:#b9cbe0}
@media(max-width:650px){.bb-photo-viewer .bb-photo-toolbar{grid-template-columns:1fr auto;gap:10px;padding:8px max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top))}.bb-photo-viewer .bb-photo-controls{grid-column:1/-1;grid-row:2;justify-content:center;gap:5px}.bb-photo-viewer .bb-photo-close{grid-column:2}.bb-photo-viewer button{padding:0 9px;font-size:12px}.bb-photo-viewer .bb-photo-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){dialog.bb-photo-viewer[open]{animation:none}.bb-photo-viewer button{transition:none}}
@keyframes bb-photo-appear{from{opacity:0}to{opacity:1}}
