.profile-gallery-editor{margin:26px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scroll-margin-top:90px}
.profile-gallery-editor h3,.vendor-gallery h4{font-family:Georgia,serif;font-weight:500;margin:0 0 12px}
.profile-gallery-editor p{font-size:13px;line-height:1.6}.profile-gallery-editor small{display:block;color:var(--muted);margin-top:7px;line-height:1.5}
.gallery-editor-list{list-style:none;padding:0;margin:18px 0}.gallery-edit-item{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;margin:12px 0;padding:12px;background:var(--sage);border-radius:12px}.gallery-edit-item>img{width:90px;height:90px;object-fit:cover;border-radius:8px}.gallery-edit-item label{display:block;font-size:12px;margin-bottom:6px;font-weight:700}.gallery-edit-item input{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--paper)}.gallery-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.gallery-tools button{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--paper);color:var(--pine);font-size:12px}.gallery-tools .cta{background:var(--pine);color:var(--paper)}.gallery-tools button:disabled{opacity:.5;cursor:default}.gallery-empty{padding:16px;border:1px dashed var(--line);border-radius:10px;font-size:13px;color:var(--muted)}
.vendor-gallery{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.vendor-gallery h4{font-size:20px}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-grid figure{margin:0;min-width:0}.gallery-photo{display:block;width:100%;padding:0;border:0;background:var(--sage);border-radius:8px;overflow:hidden}.gallery-photo img{display:block;aspect-ratio:1;object-fit:cover;width:100%;height:auto;transition:transform .2s}.gallery-photo:hover img{transform:scale(1.04)}.gallery-photo:focus-visible,.gallery-tools button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.gallery-grid figcaption{font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
#galleryViewer{width:min(900px,94vw);max-height:92dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:16px;color:var(--pine)}#galleryViewer::backdrop{background:rgba(40,10,32,.82)}#galleryViewerImage{display:block;max-height:72dvh;max-width:100%;height:auto;width:auto;margin:14px auto;object-fit:contain}#galleryViewerCaption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}#galleryViewerClose{display:block;margin-left:auto;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 16px;background:var(--sage);color:var(--pine)}
@media(max-width:620px){.gallery-edit-item{grid-template-columns:64px minmax(0,1fr);padding:10px;gap:10px}.gallery-edit-item>img{width:64px;height:64px}.gallery-edit-item input{font-size:16px}.gallery-tools{gap:6px}.gallery-grid{gap:7px}.gallery-grid figcaption{font-size:11px}}
