/* NB Scrolling Gallery Nestable — identical structure to NextBricks' original */

.nbsg-nestable {
    position: relative;
    display: flex;
}

/* ── Thumbnail sidebar ── */
.nbsg-nestable .nb-scroll-gallery__map {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: fit-content;
}

.nbsg-nestable .nb-scroll-gallery__preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nbsg-nestable .nb-scroll-gallery__thumbnail {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--active-duration, 0.3s) var(--active-easing, ease-in-out);
}

.nbsg-nestable .nb-scroll-gallery__thumbnail--active {
    transform: scale(var(--active-scale, 1.3));
    opacity: 1 !important;
    z-index: 10000;
}

.nbsg-nestable .nb-scroll-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Images container ── */
.nbsg-nestable .nb-scroll-gallery__images {
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Each child element (Bricks image / query-loop item) */
.nbsg-nestable .nb-scroll-gallery__images > * {
    position: relative;
    overflow: hidden;
}

.nbsg-nestable .nb-scroll-gallery__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
