.photo-account-folder { display:inline-grid; place-items:center; margin-left:6px; padding:3px 6px; background:transparent; border:1px solid transparent; border-radius:8px; cursor:pointer; font-size:17px; vertical-align:middle; }
.photo-account-folder:hover { border-color:#38a3f1; background:#38a3f122; }
.photo-archive-unlock { margin:6px; padding:8px 12px; border:1px solid #64748b; border-radius:10px; cursor:pointer; }
.photo-gallery-dialog { width:min(1040px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); box-sizing:border-box; padding:24px; border:1px solid #46516a; border-radius:20px; color:#f1f5f9; background:#111827; box-shadow:0 24px 100px #0009; overflow:auto; }
.photo-gallery-dialog::backdrop { background:#000b; backdrop-filter:blur(5px); }
.photo-gallery-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.photo-gallery-heading h2 { margin:4px 0; overflow-wrap:anywhere; }
.photo-gallery-note,.photo-gallery-status { color:#bac6d6; }
.photo-gallery-close { flex-shrink:0; border:1px solid #536179; background:#263348; color:white; border-radius:50%; width:40px; height:40px; cursor:pointer; }
.photo-gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px; }
.photo-gallery-card { border:1px solid #37465e; background:#1b2638; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; padding:10px; gap:10px; }
.photo-gallery-thumbnail { display:block; width:100%; padding:0; border:0; background:#070d17; border-radius:8px; cursor:zoom-in; }
.photo-gallery-thumbnail img { display:block; width:100%; height:190px; object-fit:contain; border-radius:8px; }
.photo-gallery-card time { color:#d0d9e6; font-size:13px; }
.photo-gallery-delete { padding:9px 12px; color:#fecaca; border:1px solid #a53a47; background:#6f182433; border-radius:8px; cursor:pointer; }
.photo-gallery-delete:disabled { opacity:.5; cursor:wait; }
.photo-gallery-back,.photo-gallery-login button { padding:10px 16px; border-radius:9px; background:#38a3f1; color:#07111e; border:0; cursor:pointer; }
.photo-gallery-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-bottom:16px; }
.photo-gallery-large { display:block; width:100%; max-height:70dvh; object-fit:contain; background:#050a12; }
.photo-gallery-login { display:flex; flex-wrap:wrap; gap:12px; }
.photo-gallery-login input { flex:1; min-width:180px; padding:12px; border-radius:8px; border:1px solid #64748b; background:#1b2638; color:white; }
@media(max-width:560px) { .photo-gallery-dialog { padding:16px; width:calc(100vw - 16px); max-height:calc(100dvh - 16px); } .photo-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .photo-gallery-thumbnail img { height:140px; } .photo-gallery-delete { font-size:12px; } }

.photo-gallery-viewport { height:min(62dvh,650px); overflow:hidden; background:#050a12; border-radius:10px; touch-action:none; cursor:zoom-in; position:relative; }
.photo-gallery-viewport.is-zoomed { cursor:grab; }
.photo-gallery-viewport.is-zoomed:active { cursor:grabbing; }
.photo-gallery-viewport .photo-gallery-large { width:100%; height:100%; max-height:none; object-fit:contain; transform-origin:center; user-select:none; }
.photo-gallery-tools { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:12px 0; }
.photo-gallery-tools button { min-width:42px; min-height:42px; padding:6px 12px; border:1px solid #536179; background:#263348; color:white; border-radius:8px; cursor:pointer; font-size:22px; }
.photo-gallery-tools button:disabled { opacity:.35; cursor:default; }
.photo-gallery-zoom-label { min-width:55px; text-align:center; font-variant-numeric:tabular-nums; }
