.profile-gallery{margin:24px 0;padding:22px;border:1px solid var(--line,#dbe3ef);border-radius:20px;background:var(--surface,#fff);color:var(--ink,#142c40)}.profile-gallery h2{margin:0 0 8px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gallery-grid figure{margin:0;min-width:0}.gallery-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#e8eef6}.gallery-grid figcaption{font-size:14px;padding:8px 0;overflow-wrap:anywhere}.gallery-grid button{min-height:44px;cursor:pointer}.gallery-editor{display:grid;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#dbe3ef)}.gallery-editor label{display:grid;gap:6px}.gallery-editor .gallery-consent{display:flex;align-items:flex-start;gap:10px}.gallery-editor input,.gallery-editor select{font:inherit;max-width:100%;min-height:44px}.gallery-preview{max-width:420px;max-height:260px;border-radius:14px}.gallery-state{font-size:12px;font-weight:700;color:var(--muted,#52657a)}.gallery-lightbox{padding:16px;border:0;border-radius:18px;max-width:94vw;max-height:94dvh;background:var(--surface,#fff);color:var(--ink,#142c40)}.gallery-lightbox::backdrop{background:#0e1b2ed9}.gallery-lightbox img{display:block;max-width:85vw;max-height:70dvh;object-fit:contain}.gallery-lightbox button{min-height:44px;font:inherit;cursor:pointer}.gallery-lightbox p{max-width:70ch}.gallery-lightbox nav{display:flex;justify-content:space-between;gap:16px}.gallery-open{padding:0!important;border:0!important;width:100%;background:transparent!important}.gallery-open:focus-visible{outline:3px solid #2563eb;outline-offset:4px}@media(max-width:600px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-gallery{padding:16px}.gallery-lightbox{width:100%;max-width:100%;margin:auto 0}.gallery-lightbox img{max-width:100%;width:100%}}

.profile-gallery button:not(.gallery-open),.gallery-lightbox button{border:1px solid var(--line,#cbd5e1);border-radius:10px;padding:10px 14px;background:var(--surface,#fff);color:var(--ink,#142c40);font:600 14px system-ui}.profile-gallery button[type=submit]{background:#2453d8;color:white;border-color:#2453d8}.gallery-lightbox button:disabled{opacity:.45;cursor:default}.gallery-editor input[type=checkbox]{min-height:20px;width:20px;flex:none}.gallery-editor input:not([type=checkbox]),.gallery-editor select{padding:10px;border:1px solid var(--line,#cbd5e1);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#142c40)}
