/* Gallery editor v41 — existing photos, multi-select preview, accessibility and mobile layout. */
.vp-gallery-edit{margin:26px 0 20px;padding:22px;background:var(--vp-bg,#fff);border:1px solid #d6e2f0;border-radius:18px;color:var(--vp-text,#172742)}
.vp-gallery-edit h2{margin:0 0 6px;font-size:1.24rem}.vp-gallery-intro,.vp-gallery-help{font-size:.9rem;color:#556781;line-height:1.5;margin:5px 0 16px}
.vp-gallery-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0 12px}.vp-gallery-heading output{font-size:.85rem;font-weight:800;color:#1759ca;background:#eaf1ff;padding:7px 11px;border-radius:100px;font-variant-numeric:tabular-nums}
.vp-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 17px}
.vp-gallery-tile{position:relative;display:block;margin:0;background:#edf2f9;border:1px solid #cbd8e9;border-radius:12px;overflow:hidden;min-width:0;cursor:pointer}.vp-gallery-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.vp-gallery-tag{position:absolute;top:8px;left:8px;color:#fff;background:rgba(12,27,52,.85);border-radius:7px;padding:4px 7px;font-size:.73rem;font-weight:800}
.vp-gallery-remove{display:flex;align-items:center;gap:5px;padding:9px 10px;font-size:.85rem;font-weight:750;background:#fff;color:#9e2332;cursor:pointer}.vp-gallery-remove input{width:17px;height:17px;accent-color:#c42436}
.vp-gallery-tile.vp-gallery-marked img{opacity:.28;filter:grayscale(1)}.vp-gallery-tile.vp-gallery-marked{outline:2px solid #c42436}.vp-gallery-tile.vp-gallery-marked::after{content:'Va fi eliminată la salvare';position:absolute;left:0;right:0;top:45%;text-align:center;color:#8f172a;font-weight:800;font-size:.73rem;background:rgba(255,255,255,.91);padding:5px}
.vp-gallery-upload{margin-top:17px;padding:15px;border:2px dashed #b5c9e5;border-radius:14px;background:#f8fbff}.vp-gallery-upload>label{display:block;color:#1759ca;font-weight:850;margin-bottom:9px}.vp-gallery-upload small{display:block;color:#596d86;font-size:.8rem;font-weight:450;margin-top:5px}.vp-gallery-upload input[type=file]{display:block;width:100%;font-size:.87rem;max-width:100%;color:#314764}.vp-gallery-new{cursor:default}.vp-gallery-remove-button{width:100%;border:0;text-align:left;font:inherit;font-size:.83rem;font-weight:700}.vp-gallery-help{margin:12px 0 0}.vp-gallery-error{color:#b1263b}.vp-gallery-empty{padding:16px;border-radius:10px;color:#536784;background:#f0f4f9}
@media(max-width:680px){.vp-gallery-edit{padding:14px;margin:20px 0}.vp-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.vp-gallery-heading{align-items:flex-start}.vp-gallery-remove{padding:10px 7px}}

/* v43 — primary photo controls */
.vp-gallery-tile{cursor:default}.vp-gallery-primary{outline:3px solid #1761e7;outline-offset:2px;border-color:#1761e7}
.vp-gallery-pick{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;padding:9px 7px;background:#e8f0ff;color:#144da5;font-size:.82rem;font-weight:800;cursor:pointer;border-bottom:1px solid #ccd9ef}
.vp-gallery-pick input{accent-color:#155cff;width:17px;height:17px;flex:none;padding:0;margin:0}
.vp-gallery-primary .vp-gallery-pick{background:#dbe9ff;color:#0d367d}
.vp-gallery-marked .vp-gallery-pick{opacity:.45;pointer-events:none}
.vp-gallery-tile .vp-gallery-remove{font-weight:700;justify-content:center}
/* Compact public preview: one main image with a single strip of smaller photographs */
.vp-listing-gallery.gallery{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.vp-listing-gallery.gallery>a:first-child{flex:0 0 100%;min-width:0}
.vp-listing-gallery.gallery>a:first-child img{height:clamp(260px,32vw,460px);width:100%;object-fit:contain;background:#edf2f7}
.vp-listing-gallery.gallery>a:not(:first-child){flex:0 0 clamp(86px,10vw,134px);width:clamp(86px,10vw,134px)}
.vp-listing-gallery.gallery>a:not(:first-child) img{width:100%;height:90px;object-fit:cover}
@media(max-width:700px){.vp-listing-gallery.gallery>a:first-child img{height:clamp(220px,55vw,360px)}.vp-listing-gallery.gallery>a:not(:first-child){flex-basis:calc((100% - 20px)/3);width:calc((100% - 20px)/3)}.vp-listing-gallery.gallery>a:not(:first-child) img{height:82px}}

/* v43 thumbnail strip: never forms a second row */
.vp-listing-gallery.gallery{display:block}
.vp-listing-gallery.gallery>a:first-child{display:block;width:100%;margin-bottom:10px}
.vp-listing-thumbstrip{display:flex;align-items:stretch;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;padding:0 1px 8px;scrollbar-width:thin}
.vp-listing-gallery.gallery .vp-listing-thumbstrip>a{display:block;flex:0 0 120px;width:120px;min-width:0;border-radius:10px;overflow:hidden}
.vp-listing-gallery.gallery .vp-listing-thumbstrip img{display:block;width:100%;height:88px;object-fit:cover;border-radius:10px}
@media(max-width:700px){.vp-listing-gallery.gallery .vp-listing-thumbstrip>a{flex-basis:94px;width:94px}.vp-listing-gallery.gallery .vp-listing-thumbstrip img{height:70px}}
