/* Crop pop-up (admins). Works on phones: the photo scales to the screen and the box is touch-draggable. */
.cropdlg{border:0;padding:0;width:min(940px,96vw);max-height:96vh;background:#fff;color:#111;overflow:auto;font-family:Jost,Helvetica,Arial,sans-serif}
.cropdlg::backdrop{background:rgba(0,0,0,.7)}
.cropin{padding:20px 20px 16px}
.cropin h3{margin:0 0 4px;font-size:22px}
.cropsub{margin:0 0 6px;color:#555;font-size:14px}
.cropnote{margin:0 0 6px;font-size:13px;font-weight:600;color:#8a6420}
.cropstage{position:relative;width:fit-content;max-width:100%;margin:10px auto;overflow:hidden;background:#111;line-height:0;touch-action:none;user-select:none}
.cropstage img{display:block;max-width:100%;max-height:58vh;width:auto;height:auto;user-select:none;-webkit-user-drag:none}
.cropbox{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.58);cursor:move;touch-action:none;outline:0;
  background:linear-gradient(to right,transparent calc(33.33% - .5px),rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px),transparent calc(33.33% + .5px) calc(66.66% - .5px),rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px),transparent calc(66.66% + .5px)),
             linear-gradient(to bottom,transparent calc(33.33% - .5px),rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px),transparent calc(33.33% + .5px) calc(66.66% - .5px),rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px),transparent calc(66.66% + .5px))}
.cropbox:focus-visible{outline:2px solid #b8893a}
.ch{position:absolute;width:24px;height:24px;background:#fff;border:2px solid #1d6fd8;border-radius:50%;touch-action:none}
.ch.nw{left:2px;top:2px;cursor:nwse-resize}.ch.ne{right:2px;top:2px;cursor:nesw-resize}
.ch.sw{left:2px;bottom:2px;cursor:nesw-resize}.ch.se{right:2px;bottom:2px;cursor:nwse-resize}
.cropout{margin:0 0 12px;font-size:13px;color:#555;min-height:18px}
.cropact{display:flex;gap:10px;justify-content:flex-end}
.cbtn{border:1px solid #bbb;background:#fff;color:#111;border-radius:6px;padding:11px 20px;font:inherit;font-size:15px;cursor:pointer;min-height:44px}
.cbtn.gold{background:#b8893a;border-color:#b8893a;color:#000;font-weight:600}
@media (max-width:600px){.cropin{padding:14px 12px}.cropact .cbtn{flex:1}.cropstage img{max-height:50vh}}
