/*
 * Novix Stock Bridge v1.7.9 — vehicle image presentation
 * Preserve the full source photograph supplied by Auto Trader. The runtime
 * helper adds these classes only to vehicle-card/gallery media blocks.
 */
.novix-vehicle-media-fit {
    position: relative !important;
    overflow: hidden !important;
    background: #e7e7e7 !important;
    isolation: isolate;
}

.novix-vehicle-media-fit::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: 0;
    pointer-events: none;
    background-image: var(--novix-vehicle-photo-bg, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(14px);
    opacity: .24;
    transform: scale(1.06);
}

.novix-vehicle-media-fit img.novix-vehicle-photo-fit {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

/* Keep carousel controls/counters above the soft background layer. */
.novix-vehicle-media-fit button,
.novix-vehicle-media-fit [role="button"],
.novix-vehicle-media-fit [class*="dot"],
.novix-vehicle-media-fit [class*="counter"],
.novix-vehicle-media-fit [class*="arrow"],
.novix-vehicle-media-fit [class*="nav"] {
    position: relative;
    z-index: 3;
}

/* On single-vehicle pages, avoid a theme crop even when a gallery image is
   not inside the same card markup used by the stock archive. */
.single-novix_vehicle img.novix-vehicle-photo-fit {
    object-fit: contain !important;
    object-position: center center !important;
}
