/* Rent&Go Gallery v3 — isolated from the rest of the single-car design. */
.rg-showroom-page .rg-gallery-stage,
.rg-showroom-page .rg-main-photo {
    -webkit-tap-highlight-color: transparent;
}
.rg-showroom-page .rg-gallery-stage {
    touch-action: pan-y;
}
.rg-showroom-page .rg-main-photo {
    cursor: zoom-in !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.rg-showroom-page .rg-main-photo.is-changing {
    opacity: .86 !important;
}

.rg-lightbox[hidden] {
    display: none !important;
}
.rg-lightbox.is-open {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.rg-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    background: rgba(3,5,7,.97) !important;
    overscroll-behavior: contain;
    touch-action: none;
}
.rg-lightbox-stage {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.rg-lightbox-img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.rg-lightbox-close {
    display: grid !important;
    place-items: center !important;
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    z-index: 2147483646 !important;
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 0 3px !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 50% !important;
    background: rgba(20,24,28,.82) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.35) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font: 300 36px/1 Arial,sans-serif !important;
}
.rg-lightbox-arrow {
    z-index: 2147483500 !important;
}

/* Chat must not sit above the fullscreen gallery. */
body.rg-lightbox-open .rentgo-ai-chat,
body.rg-lightbox-open [data-rentgo-ai-chat],
body.rg-lightbox-open .rentgo-ai-chat-launcher,
body.rg-lightbox-open [class*="rentgo-ai-chat"] [class*="launcher"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body.rg-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .rg-lightbox {
        padding: 8px !important;
        grid-template-columns: 1fr !important;
    }
    .rg-lightbox-close {
        top: calc(10px + env(safe-area-inset-top)) !important;
        right: calc(10px + env(safe-area-inset-right)) !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 34px !important;
    }
    .rg-lightbox-prev { left: 12px !important; }
    .rg-lightbox-next { right: 12px !important; }
}
