/* Shared image zoom overlay (prix catalogue, EMPI goodies, car galleries). */
.oldspeed-img-lightbox-root {
    position: fixed;
    inset: 0;
    z-index: 10060;
}
.oldspeed-img-lightbox-root[hidden] {
    display: none !important;
}
.oldspeed-img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 0;
}
.oldspeed-img-lightbox-pane {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 3.5rem 1.25rem;
    box-sizing: border-box;
    pointer-events: none;
}
.oldspeed-img-lightbox-close-btn {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 10062;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: #fff;
    color: #212529;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.oldspeed-img-lightbox-close-btn:hover {
    background: #f8f9fa;
}
.oldspeed-img-lightbox-close-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.oldspeed-img-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10061;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.oldspeed-img-lightbox-nav:hover {
    background: #fff;
}
.oldspeed-img-lightbox-nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.oldspeed-img-lightbox-nav--prev {
    left: max(1rem, env(safe-area-inset-left));
}
.oldspeed-img-lightbox-nav--next {
    right: max(1rem, env(safe-area-inset-right));
}
.oldspeed-img-lightbox-nav[hidden] {
    display: none !important;
}
.oldspeed-img-lightbox-frame {
    pointer-events: auto;
    max-width: 92vw;
    max-height: 86vh;
}
.oldspeed-img-lightbox-frame img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    cursor: default;
}
.oldspeed-img-lightbox-counter {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10062;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.oldspeed-img-lightbox-counter[hidden] {
    display: none !important;
}

/* Back-compat: prix catalogue still uses these link classes */
a.item-image-link.oldspeed-img-zoom,
a.item-image-link.prix-img-zoom {
    display: inline-block;
    cursor: zoom-in;
}
