/* v197 · vehicle photo gallery (owner requests 2026-12-03): the Details pop-up slides through a vehicle's photos with green arrows,
   every photo is labelled (Exterior / Interior / Luggage / Car seat), categories are one-tap chips, a tap opens full screen with zoom.
   Display only. Applies under html.v190; only vehicles with extra photos (system_settings.vehicle_gallery) change. */
html.v190 .vlb-img-wrap.vgx-on{position:relative;height:260px;padding:0;background:#0E0D0C;overflow:hidden}
html.v190 .vlb-img-wrap.vgx-on>#vlbImg{display:none}
@media(min-width:768px){html.v190 .vlb-img-wrap.vgx-on{height:340px}html.v190 .vehicle-lightbox-card:has(.vgx-on){width:min(580px,calc(100vw - 48px));max-width:580px}}
/* the pop-up never runs off the screen: it scrolls inside itself, the close button stays on top */
html.v190 .vehicle-lightbox-card:has(.vgx-on){max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
html.v190 .vehicle-lightbox-card:has(.vgx-on) .vlb-close{position:sticky;top:8px;float:right;margin:8px 8px -52px 0;z-index:5}
html.v190 #vlbDesc.vgx-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px}
html.v190 #vlbDesc.vgx-clamp.is-open{display:block;-webkit-line-clamp:unset;overflow:visible}
html.v190 .vgx-more{display:inline-block;margin:0 0 12px;padding:4px 0;border:0;background:none;color:#17694E;font-family:inherit;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
html.v190.dark .vgx-more{color:#74DDB7}
html.v190 .vgx-more:focus-visible{outline:2px solid #E8A020;outline-offset:2px;border-radius:4px}
html.v190 .vgx{position:absolute;inset:0;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
html.v190 .vgx-track{display:flex;height:100%;transition:transform .32s cubic-bezier(.32,.72,0,1);will-change:transform}
html.v190 .vgx-track.is-drag{transition:none}
html.v190 .vgx-slide{position:relative;flex:0 0 100%;height:100%;margin:0;padding:0;border:0;background:#0E0D0C;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
html.v190 .vgx-slide img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
html.v190 .vgx-slide:focus-visible{outline:3px solid #E8A020;outline-offset:-3px}
/* the label: what the photo shows */
html.v190 .vgx-label{position:absolute;left:12px;top:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px 0 9px;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(0,0,0,.25);color:#0E0D0C;font-size:12px;line-height:1;pointer-events:none}
html.v190 .vgx-label svg{width:15px;height:15px;fill:none;stroke:#17694E;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.v190 .vgx-label b{font-weight:800;letter-spacing:.5px;text-transform:uppercase}
html.v190 .vgx-label span{margin-left:2px;padding-left:8px;border-left:1px solid rgba(14,13,12,.18);font-weight:600;color:#5F5A52;font-variant-numeric:tabular-nums}
/* the green arrows */
html.v190 .vgx-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;padding:0;border:2px solid rgba(255,255,255,.9);border-radius:50%;background:#17694E;box-shadow:0 4px 14px rgba(0,0,0,.35);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .14s ease-out,background-color .16s ease}
html.v190 .vgx-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
html.v190 .vgx-prev{left:10px}
html.v190 .vgx-next{right:10px}
@media(hover:hover){html.v190 .vgx-arrow:hover{background:#1F8A63}}
html.v190 .vgx-arrow:active{transform:scale(.92)}
html.v190 .vgx-arrow:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
/* bottom bar: the caption on the left, Full screen on the right */
html.v190 .vgx-foot{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:flex-end;gap:10px;padding:40px 10px 10px 14px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.66));pointer-events:none}
html.v190 .vgx-foot>button{pointer-events:auto}
html.v190 .vgx-cap{flex:1 1 auto;min-width:0;padding-bottom:5px;color:#fff;font-size:13px;font-weight:600;line-height:1.35;text-shadow:0 1px 3px rgba(0,0,0,.6);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.v190 .vgx-cap[hidden]{display:block;visibility:hidden}
html.v190 .vgx-full{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:34px;margin-left:auto;padding:0 12px;border:0;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(0,0,0,.25);color:#0E0D0C;font-family:inherit;font-size:12.5px;font-weight:700;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.v190 .vgx-full::after{content:"";position:absolute;inset:-5px}
html.v190 .vgx-full svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html.v190 .vgx-full:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
html.v190 .vgx-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(max-width:380px){html.v190 .vgx-full span{display:none}html.v190 .vgx-full{padding:0 10px}}
/* category chips under the photo */
html.v190 .vgx-cats{display:flex;gap:6px;overflow-x:auto;padding:10px 12px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html.v190 .vgx-cats::-webkit-scrollbar{display:none}
html.v190 .vgx-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:0;padding:0 12px 0 10px;border:1px solid var(--border,#DDD6C8);border-radius:999px;background:var(--surface,#fff);color:var(--text,#11203A);font-family:inherit;font-size:13px;font-weight:600;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
html.v190 .vgx-chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.v190 .vgx-chip i{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(14,13,12,.07);font-style:normal;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-sizing:border-box}
html.v190 .vgx-chip.on{border-color:#17694E;background:#17694E;color:#fff}
html.v190 .vgx-chip.on i{background:rgba(255,255,255,.22)}
@media(hover:hover){html.v190 .vgx-chip:not(.on):hover{border-color:#17694E;color:#17694E}}
html.v190 .vgx-chip:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
html.v190.dark .vgx-chip{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#E8ECF4}
@media(max-width:420px){html.v190 .vgx-cats{gap:5px;padding:10px 10px 2px}html.v190 .vgx-cats .vgx-chip{gap:0;padding:0 10px;font-size:12.5px}html.v190 .vgx-cats .vgx-chip svg,html.v190 .vgx-cats .vgx-chip i{display:none}}
html.v190.dark .vgx-chip i{background:rgba(255,255,255,.1)}
html.v190.dark .vgx-chip.on{border-color:#2FA57A;background:#17694E;color:#fff}
/* the "View all N photos" button under the details */
html.v190 #vlbGalleryBtn.vgx-btn{border-color:#17694E;background:#E9F4EE;color:#17694E}
html.v190 #vlbGalleryBtn.vgx-btn svg{stroke:#17694E}
@media(hover:hover){html.v190 #vlbGalleryBtn.vgx-btn:hover{background:#17694E;color:#fff}html.v190 #vlbGalleryBtn.vgx-btn:hover svg{stroke:#fff}}
html.v190.dark #vlbGalleryBtn.vgx-btn{border-color:rgba(84,205,160,.45);background:rgba(52,199,150,.14);color:#74DDB7}
html.v190.dark #vlbGalleryBtn.vgx-btn svg{stroke:#74DDB7}
/* in the list of cars: one clean "N photos" button (camera, green), no arrow */
html.v190 #vehiclesList .vehicle-details-btn.vgx-photos-btn{gap:4px;padding-left:8px;padding-right:9px;border-color:rgba(23,105,78,.35);background:#EEF7F2;color:#17694E;font-weight:700;white-space:nowrap}
html.v190 #vehiclesList .vehicle-details-btn.vgx-photos-btn>svg:last-child{display:none}
html.v190 #vehiclesList .vehicle-details-btn.vgx-photos-btn .vgx-btn-ico{display:inline-grid;place-items:center}
html.v190 #vehiclesList .vehicle-details-btn.vgx-photos-btn .vgx-btn-ico svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover){html.v190 #vehiclesList .vehicle-details-btn.vgx-photos-btn:hover{background:#17694E;border-color:#17694E;color:#fff}}
html.v190.dark #vehiclesList .vehicle-details-btn.vgx-photos-btn{border-color:rgba(84,205,160,.4);background:rgba(52,199,150,.12);color:#74DDB7}

/* full screen: a fixed frame (absolute sizing, the same in every browser) */
.vgx-fs{position:fixed;left:0;top:0;right:0;bottom:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#080808;color:#fff;overflow:hidden;font-family:inherit}
.vgx-fs:not([open]){display:none}
.vgx-fs::backdrop{background:#080808}
.vgx-fs[open]{display:flex;flex-direction:column;animation:vgx-in .22s ease-out}
.vgx-fs.is-closing{animation:vgx-out .16s ease-out forwards}
@keyframes vgx-in{from{opacity:0}to{opacity:1}}
@keyframes vgx-out{from{opacity:1}to{opacity:0}}
.vgx-fs-top{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 6px 16px}
.vgx-fs-title{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.vgx-fs-name{font-size:15px;font-weight:700;line-height:1.3}
.vgx-fs-lab{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 8px;border-radius:999px;background:#fff;color:#0E0D0C;font-size:11.5px;line-height:1}
.vgx-fs-lab svg{width:14px;height:14px;fill:none;stroke:#17694E;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vgx-fs-lab b{font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.vgx-fs-n{font-size:13px;font-weight:600;color:rgba(255,255,255,.65);font-variant-numeric:tabular-nums}
.vgx-fs-tools{flex:0 0 auto;display:flex;gap:8px}
.vgx-fs-x,.vgx-fs-zoom{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.vgx-fs-x svg,.vgx-fs-zoom svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.vgx-fs-x:focus-visible,.vgx-fs-zoom:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
@media(hover:hover){.vgx-fs-x:hover,.vgx-fs-zoom:hover{background:rgba(255,255,255,.24)}}
.vgx-fs-cats{flex:0 0 auto;display:flex;justify-content:center;gap:6px;overflow-x:auto;padding:2px 12px 8px;scrollbar-width:none}
.vgx-fs-cats::-webkit-scrollbar{display:none}
.vgx-fs .vgx-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0;padding:0 12px 0 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.06);color:#fff;font-family:inherit;font-size:12.5px;font-weight:600;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
.vgx-fs .vgx-chip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vgx-fs .vgx-chip i{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.14);font-style:normal;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-sizing:border-box}
.vgx-fs .vgx-chip.on{border-color:#2FA57A;background:#17694E}
.vgx-fs .vgx-chip:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
.vgx-fs-stage{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.vgx-fs-track{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;transition:transform .34s cubic-bezier(.32,.72,0,1);will-change:transform}
.vgx-fs-slide{position:relative;flex:0 0 100%;width:100%;height:100%;overflow:hidden}
.vgx-fs-pic{position:absolute;left:12px;top:6px;right:12px;bottom:6px;transform-origin:50% 50%;will-change:transform}
.vgx-fs-pic img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.vgx-fs-hi{opacity:0;transition:opacity .28s ease}
.vgx-fs-hi.is-in{opacity:1}
.vgx-fs.is-zoomed .vgx-fs-stage{cursor:grab}
.vgx-fs.is-zoomed .vgx-fs-stage:active{cursor:grabbing}
.vgx-fs:not(.is-zoomed) .vgx-fs-stage{cursor:zoom-in}
.vgx-fs .vgx-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:52px;height:52px;margin-top:-26px;padding:0;border:2px solid rgba(255,255,255,.92);border-radius:50%;background:#17694E;box-shadow:0 6px 18px rgba(0,0,0,.45);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .14s ease-out,background-color .16s ease,opacity .16s ease}
.vgx-fs .vgx-arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.vgx-fs .vgx-prev{left:14px}
.vgx-fs .vgx-next{right:14px}
.vgx-fs.is-zoomed .vgx-arrow{opacity:.35}
@media(hover:hover){.vgx-fs .vgx-arrow:hover{background:#1F8A63;opacity:1}}
.vgx-fs .vgx-arrow:active{transform:scale(.92)}
.vgx-fs .vgx-arrow:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
.vgx-fs-cap{flex:0 0 auto;padding:6px 12px calc(10px + env(safe-area-inset-bottom,0px));text-align:center}
.vgx-fs-alt{min-height:20px;margin:0 auto 2px;max-width:760px;font-size:14px;font-weight:600;line-height:1.45;color:rgba(255,255,255,.92)}
.vgx-fs-hint{margin:0 0 8px;font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.5)}
.vgx-fs.is-zoomed .vgx-fs-hint{visibility:hidden}
.vgx-fs-thumbs{display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none}
.vgx-fs-thumbs::-webkit-scrollbar{display:none}
.vgx-fs-thumb{position:relative;flex:0 0 auto;width:76px;margin:0;padding:0;border:2px solid transparent;border-radius:10px;background:none;color:rgba(255,255,255,.75);font-family:inherit;cursor:pointer;opacity:.65;transition:opacity .16s ease,border-color .16s ease;-webkit-tap-highlight-color:transparent}
.vgx-fs-thumb img{display:block;width:100%;height:50px;object-fit:cover;border-radius:7px 7px 0 0}
.vgx-fs-thumb span{display:block;padding:3px 0 4px;font-size:10px;font-weight:700;letter-spacing:.4px;line-height:1;text-transform:uppercase;white-space:nowrap}
.vgx-fs-thumb.on{border-color:#2FA57A;opacity:1;color:#fff}
@media(hover:hover){.vgx-fs-thumb:hover{opacity:1}}
.vgx-fs-thumb:focus-visible{outline:3px solid #E8A020;outline-offset:2px}
@media(max-width:700px){.vgx-fs-thumbs{justify-content:flex-start}}
html.vgx-lock{overflow:hidden}
@media(max-width:600px){.vgx-fs .vgx-arrow{width:44px;height:44px;margin-top:-22px}.vgx-fs .vgx-prev{left:6px}.vgx-fs .vgx-next{right:6px}.vgx-fs-pic{left:4px;right:4px}.vgx-fs-thumb{width:64px}.vgx-fs-thumb img{height:42px}.vgx-fs-cats{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){html.v190 .vgx-track,.vgx-fs-track,.vgx-fs-hi{transition:none}.vgx-fs[open],.vgx-fs.is-closing{animation:none}html.v190 .vgx-arrow,.vgx-fs .vgx-arrow,.vgx-fs-thumb,html.v190 .vgx-chip{transition:none}}
