.provin-image-viewer{position:fixed;inset:0;margin:auto;padding:16px;background:#fff;border:0;border-radius:4px;max-width:calc(100vw - 40px);max-height:calc(100vh - 40px);box-sizing:border-box;color:#222;box-shadow:0 8px 48px #0008}
.provin-image-viewer::backdrop{background:#000c}
.provin-image-viewer>img{display:block;margin:auto;max-width:100%;max-height:calc(100vh - 150px);width:auto;height:auto}
.provin-image-viewer>p{margin:8px 0 0;text-align:center;font:14px/1.5 Arial,sans-serif}
.provin-image-controls{display:flex;justify-content:flex-end;gap:12px;margin-bottom:8px}
.provin-image-controls button{cursor:pointer;padding:4px 12px;min-width:40px;font:24px/1 Arial,sans-serif;border:1px solid #aaa;background:#fff;color:#222}
.provin-image-controls button[hidden]{display:none}
.provin-attachments{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.provin-attachments img,.gallery img{max-width:100%;height:auto}
