/* Autanet vehicle gallery v7 – pilot 141271 */
.vehicle-gallery-v2{position:fixed;inset:0;z-index:100000;display:none;background:#171a1f;color:#fff;font-family:Arial,Helvetica,sans-serif}
.vehicle-gallery-v2.is-open{display:block}
.vehicle-gallery-v2__backdrop{position:absolute;inset:0;background:#171a1f}
.vehicle-gallery-v2__stage{position:absolute;inset:0;overflow:hidden;outline:0;touch-action:pan-y}
.vehicle-gallery-v2__topbar{position:absolute;z-index:14;top:0;left:0;right:0;height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:linear-gradient(to bottom,rgba(12,14,17,.62),rgba(12,14,17,0));pointer-events:none}
.vehicle-gallery-v2__counter{font-size:16px;font-weight:400;text-shadow:0 1px 3px rgba(0,0,0,.7);pointer-events:auto}
.vehicle-gallery-v2__actions{position:relative;display:flex;gap:8px;pointer-events:auto}
.vehicle-gallery-v2__icon,.vehicle-gallery-v2__arrow,.vehicle-gallery-v2__thumbs-close{border:0;color:#fff;background:rgba(20,23,28,.70);cursor:pointer}
.vehicle-gallery-v2__icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;transition:background .15s ease,transform .15s ease}
.vehicle-gallery-v2__icon:hover{background:rgba(255,255,255,.18)}
.vehicle-gallery-v2__icon:active{transform:scale(.95)}
.vehicle-gallery-v2__icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vehicle-gallery-v2__image-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}
.vehicle-gallery-v2__image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;transform-origin:center center;transition:none}
.vehicle-gallery-v2__image-transition{position:absolute;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;pointer-events:none;user-select:none;z-index:2;opacity:0}
.vehicle-gallery-v2.is-zoomed .vehicle-gallery-v2__image{cursor:grab}
.vehicle-gallery-v2__arrow{position:absolute;z-index:7;top:50%;transform:translateY(-50%);width:56px;height:76px;border-radius:10px;background:rgba(0,0,0,.30);display:grid;place-items:center}
.vehicle-gallery-v2__arrow:hover{background:rgba(0,0,0,.55)}
.vehicle-gallery-v2__arrow--prev{left:18px}.vehicle-gallery-v2__arrow--next{right:18px}
.vehicle-gallery-v2__arrow svg{width:36px;height:36px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vehicle-gallery-v2__hint{display:none!important}
.vehicle-gallery-v2__thumbs{position:absolute;z-index:12;inset:0;background:#171a1f;box-shadow:none;transform:translateY(105%);transition:transform .65s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column}
.vehicle-gallery-v2.is-thumbs-open .vehicle-gallery-v2__thumbs{transition-duration:1s;transition-timing-function:linear}
.vehicle-gallery-v2.is-thumbs-open .vehicle-gallery-v2__thumbs{transform:translateY(0)}
.vehicle-gallery-v2__thumbs-head{display:none!important}
.vehicle-gallery-v2__thumbs-close{font-size:32px;line-height:1;width:42px;height:42px;border-radius:50%;background:transparent}
.vehicle-gallery-v2__thumbs-grid{min-height:0;overflow:auto;padding:80px 12px 14px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:7px;overscroll-behavior:contain}
.vehicle-gallery-v2__thumb{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;margin:0;border:2px solid transparent;background:#20242a;overflow:hidden;cursor:pointer;border-radius:3px}
.vehicle-gallery-v2__thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#20242a}
.vehicle-gallery-v2__thumb span{position:absolute;right:4px;bottom:4px;min-width:22px;padding:2px 5px;border-radius:10px;background:rgba(0,0,0,.62);color:#fff;font-size:11px;line-height:16px}
.vehicle-gallery-v2__thumb.is-active{border-color:rgba(255,255,255,.95)}
body.vehicle-gallery-v2-open{overflow:hidden!important}
@media(max-width:767px){
.vehicle-gallery-v2__topbar{height:58px;padding:0 8px 0 12px}.vehicle-gallery-v2__counter{font-size:14px;font-weight:400}.vehicle-gallery-v2__actions{gap:3px}.vehicle-gallery-v2__icon{width:40px;height:40px;background:rgba(20,23,28,.68)}.vehicle-gallery-v2__icon svg{width:21px;height:21px}.vehicle-gallery-v2__zoom{display:none}.vehicle-gallery-v2__arrow{display:none!important}
.vehicle-gallery-v2__thumbs{inset:0;transform:translateY(105%)}.vehicle-gallery-v2.is-thumbs-open .vehicle-gallery-v2__thumbs{transform:translateY(0)}.vehicle-gallery-v2__thumbs-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:8px 5px;padding:66px 6px 12px}
}
@media(orientation:landscape) and (max-height:600px){
.vehicle-gallery-v2__topbar{height:50px}.vehicle-gallery-v2__icon{width:38px;height:38px}.vehicle-gallery-v2__thumbs-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:56px 7px 10px}
}

/* v7 desktop zoom: vertical slider directly below the zoom icon */
.vehicle-gallery-v2__zoom-range{display:none}
@media(min-width:768px){
  .vehicle-gallery-v2__actions{align-items:center}
  .vehicle-gallery-v2__actions.is-zoom-capable .vehicle-gallery-v2__zoom{display:grid}
  .vehicle-gallery-v2__zoom-range{
    position:absolute;
    top:50px;
    right:62px;
    z-index:20;
    display:none;
    width:24px;
    height:150px;
    margin:0;
    writing-mode:vertical-lr;
    direction:rtl;
    accent-color:#fff;
    cursor:pointer
  }
  .vehicle-gallery-v2__actions.is-zoom-capable.is-zoom-control-open .vehicle-gallery-v2__zoom-range{display:block}
}
@media(max-width:767px){.vehicle-gallery-v2__zoom,.vehicle-gallery-v2__zoom-range{display:none!important}}
