.mt-rbs,
.mt-rbs * {
    box-sizing: border-box;
}

.mt-rbs {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    clear: both;
}

.mt-rbs-viewport {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
}

.mt-rbs-slide {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
}

.mt-rbs-slide.is-active {
    display: block;
    position: relative;
    z-index: 1;
    visibility: visible;
    pointer-events: auto;
}

.mt-rbs-slide.is-entering,
.mt-rbs-slide.is-leaving {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    visibility: visible;
}

.mt-rbs-slide.is-entering {
    pointer-events: auto;
    z-index: 3;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mt-rbs-link,
.mt-rbs-link picture,
.mt-rbs-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.mt-rbs-link {
    line-height: 0;
}

.mt-rbs-link picture {
    height: auto;
}

.mt-rbs-slide img {
    height: auto;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.mt-rbs.is-fixed-height .mt-rbs-slide.is-active,
.mt-rbs.is-fixed-height .mt-rbs-slide.is-entering,
.mt-rbs.is-fixed-height .mt-rbs-slide.is-leaving,
.mt-rbs.is-fixed-height .mt-rbs-link,
.mt-rbs.is-fixed-height .mt-rbs-link picture,
.mt-rbs.is-fixed-height .mt-rbs-slide img {
    height: 100%;
}

.mt-rbs.is-fixed-height .mt-rbs-slide img {
    object-fit: cover !important;
    object-position: var(--rbs-desktop-position, center center) !important;
}

/* Mobile height is pinned in JS from the slider width and the canonical mobile artwork ratio. */
.mt-rbs.is-mobile-fixed-height .mt-rbs-slide.is-active,
.mt-rbs.is-mobile-fixed-height .mt-rbs-slide.is-entering,
.mt-rbs.is-mobile-fixed-height .mt-rbs-slide.is-leaving,
.mt-rbs.is-mobile-fixed-height .mt-rbs-link,
.mt-rbs.is-mobile-fixed-height .mt-rbs-link picture,
.mt-rbs.is-mobile-fixed-height .mt-rbs-slide img {
    height: 100%;
}

.mt-rbs.is-mobile-fixed-height .mt-rbs-slide img {
    object-fit: contain !important;
    object-position: center center !important;
}

.mt-rbs-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.mt-rbs-arrow:hover {
    transform: translateY(-50%) scale(1.04);
}

.mt-rbs-arrow svg {
    width: 48%;
    height: 48%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mt-rbs-prev {
    left: 18px;
}

.mt-rbs-next {
    right: 18px;
}

.mt-rbs-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.mt-rbs-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.mt-rbs-dot.is-active {
    width: 24px;
    background: #fff;
}

@media (max-width: 767px) {
    .mt-rbs-prev {
        left: 10px;
    }

    .mt-rbs-next {
        right: 10px;
    }

    .mt-rbs-dots {
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-rbs-viewport,
    .mt-rbs-arrow,
    .mt-rbs-dot {
        transition: none;
    }
}

/* Fixed component finish */
.mt-rbs-viewport {
    border-radius: 8px !important;
}

.mt-rbs-arrow {
    background: rgba(255, 255, 255, .88) !important;
    color: #111 !important;
}

.mt-rbs-arrow:hover,
.mt-rbs-arrow:focus-visible {
    background: #FFCE00 !important;
    color: #111 !important;
    transform: translateY(-50%) scale(1.04);
}


/* Touch stability: prevent sticky hover/scale and gesture conflicts on mobile. */
@media (hover: none), (pointer: coarse) {
    .mt-rbs-arrow:hover,
    .mt-rbs-arrow:focus-visible {
        transform: translateY(-50%) !important;
    }

    .mt-rbs-arrow:active {
        background: #FFCE00 !important;
        color: #111 !important;
        transform: translateY(-50%) scale(.96) !important;
    }

    .mt-rbs-dot {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}
