.vehicle-strip-gallery,
.vehicle-strip-gallery * {
    box-sizing: border-box;
}

.vehicle-strip-gallery {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.vsg-viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.vsg-viewport.is-dragging {
    cursor: grabbing;
}

.vsg-track {
    display: flex;
    gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
    user-select: none;
}

.vsg-thumb {
    position: relative;
    flex: 0 0 auto;
    width: var(--vsg-thumb-width, 120px);
    max-width: var(--vsg-thumb-width, 120px);
    height: var(--vsg-thumb-height, 80px);
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #fff;
    line-height: 0;
    cursor: pointer;
}

.vsg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    pointer-events: none;
}

.vsg-thumb.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 3px;
    background: var(--bs-primary);
}

.vsg-nav,
.vsg-modal-btn {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.vsg-nav:hover,
.vsg-modal-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.vsg-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    font-size: 18px;
    transform: translateY(-50%);
}

.vsg-prev {
    left: 8px;
}

.vsg-next {
    right: 8px;
}

/* Scope modal sizing to this gallery only */
#vehicleStripLightbox {
    overflow: hidden;
    padding-right: 0 !important;
}

#vehicleStripLightbox .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 !important;
}

#vehicleStripLightbox .modal-content {
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

#vehicleStripLightbox .modal-header {
    padding: 0.5rem 0.75rem;
    border: 0;
    flex: 0 0 auto;
}

#vehicleStripLightbox .modal-body {
    padding: 0 !important;
}

.vsg-modal-stage {
    width: 100%;
    height: calc(100vh - 52px); /* adjust if header height differs */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
    position: relative;
}

.vsg-modal-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
}

.vsg-modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    font-size: 28px;
}

.vsg-modal-prev {
    left: 8px;
}

.vsg-modal-next {
    right: 8px;
}
.vsg-thumb:focus-visible,
.vsg-nav:focus-visible,
.vsg-modal-btn:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: -3px;
}

@media (max-width: 767.98px) {
    .vsg-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .vsg-modal-btn {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsg-track {
        transition: none;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
}