.gallery-empty{padding:22px 16px;border:1px dashed #ded2ef;border-radius:12px;background:#faf7ff;color:#94849e;font-size:13px;line-height:1.6;text-align:center}.gallery-editor-card{min-width:0}.gallery-editor-actions{display:flex;gap:10px;align-items:center}.gallery-editor-actions button:disabled{opacity:.3;cursor:default}.gallery-editor-image{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:10px;background:#f3eff7;margin:10px 0}.gallery-editor-image[hidden],.gallery-empty[hidden]{display:none}.gallery-image-upload{margin-bottom:14px}.gallery-editor-card textarea{resize:vertical}.profile-gallery{margin:24px 0}.profile-gallery>h2{font-size:19px;margin:0 0 14px}.profile-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-gallery figure{min-width:0;margin:0;border:1px solid var(--theme-border,#e3ddeb);border-radius:14px;overflow:hidden;background:var(--theme-card,#fff);color:var(--theme-ink,#292331)}.profile-gallery .gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.profile-gallery .gallery-open img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}.profile-gallery figcaption{padding:12px}.profile-gallery h3{font-size:14px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}.profile-gallery p{font-size:12px;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.template-midnight .profile-gallery figure{background:#2c2735;color:#fff;border-color:#453b50}.gallery-lightbox{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:44px 16px 18px;overflow:auto;border:1px solid #ded5e8;border-radius:18px;background:#fff;color:#292331}.gallery-lightbox::backdrop{background:#090512c9}.gallery-lightbox>img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain}.gallery-lightbox h2{font-size:20px;line-height:1.4;margin:16px 0 8px;overflow-wrap:anywhere}.gallery-lightbox p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.gallery-lightbox-close{position:absolute;right:12px;top:10px;width:30px;height:30px;border:0;border-radius:50%;background:#f3eef8;color:#67527c;font-size:24px;cursor:pointer}@media(max-width:360px){.profile-gallery-grid{grid-template-columns:1fr}.gallery-editor-actions{gap:7px}}
