/* «عکس‌های دستگاه» */
.mgph{--ph-acc:#1f6feb;--ph-soft:#e8f0fe;--ph-mut:#6b7280;--ph-line:#e5e7eb;direction:rtl;text-align:right}
.mgph-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.mgph-ic{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--ph-soft);color:var(--ph-acc)}
.mgph-title{font-weight:800;font-size:1.02rem}
.mgph-sub{color:var(--ph-mut);font-size:.88rem;margin-top:2px}
.mgph-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:11px 20px;background:var(--ph-acc);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.mgph-btn:disabled{opacity:.7;cursor:progress}
.mgph-btn.is-loading::after{content:"";width:14px;height:14px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:mgph-s .8s linear infinite}
@keyframes mgph-s{to{transform:rotate(360deg)}}
.mgph-msg{margin-top:12px;padding:10px 14px;border-radius:10px;background:#f3f4f6;color:#374151;font-size:.9rem}
.mgph-msg.is-busy{background:var(--ph-soft);color:#1e3a8a}
.mgph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:4px}
.mgph-th{position:relative;padding:0;border:1px solid var(--ph-line);border-radius:12px;overflow:hidden;background:#f3f4f6;cursor:zoom-in;aspect-ratio:1/1}
.mgph-th img{width:100%;height:100%;object-fit:cover;display:block}
.mgph-at{position:absolute;inset:auto 0 0 0;padding:3px 6px;font-size:.7rem;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.65));text-align:center}
.mgph-lb{position:fixed;inset:0;z-index:99999;background:rgba(10,12,16,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:44px 12px 16px}
.mgph-lb img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:8px}
.mgph-lb-cap{color:#e5e7eb;font-size:.9rem;margin-top:10px;direction:rtl}
.mgph-lb-x{position:absolute;top:8px;left:12px;background:none;border:0;color:#fff;font-size:34px;line-height:1;cursor:pointer}
.mgph-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.15);color:#fff;font-size:28px;cursor:pointer}
.mgph-lb-prev{right:10px}.mgph-lb-next{left:10px}
