.photo-dialog{position:fixed;inset:0;margin:auto;padding:0;width:96vw;max-width:1500px;height:94dvh;max-height:94dvh;border:1px solid #71817b;border-radius:12px;background:#101c21;color:#fff;direction:rtl;overflow:hidden}.photo-dialog::backdrop{background:rgba(5,14,17,.85)}.photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;min-height:64px;border-bottom:1px solid #39494d;flex-wrap:wrap}.photo-toolbar button,.photo-stage>button{font:inherit;color:white;background:#344d44;border:1px solid #71817b;border-radius:6px;padding:9px 16px;cursor:pointer}.photo-toolbar a{font-size:13px;color:#e6ede9;text-decoration:underline}.photo-toolbar button:focus-visible,.photo-stage>button:focus-visible{outline:3px solid #e3bc83;outline-offset:3px}.photo-counter{font-size:13px}.photo-stage{display:flex;align-items:center;justify-content:center;gap:10px;height:calc(100% - 78px);padding:12px}.photo-stage figure{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-width:0;height:100%;margin:0}.photo-stage figure img{display:block;max-width:100%;max-height:calc(100% - 50px);width:auto;height:auto;object-fit:contain}.photo-stage figcaption{font-size:13px;line-height:1.8;text-align:center;max-width:800px;overflow:auto;max-height:48px}.photo-stage>button[hidden]{display:none}.photo-error{color:#ffc9c9}@media(max-width:600px){.photo-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.photo-toolbar{padding:10px;gap:8px}.photo-toolbar button{font-size:13px}.photo-stage{gap:4px;padding:6px}.photo-stage>button{padding:10px 8px}.photo-stage figure img{max-height:calc(100% - 70px)}}
