.rhc-carousel { position: relative; inline-size: 100%; max-inline-size: 100%; }
.rhc-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(var(--rhc-card-size, var(--ripro-image-track-size,168px)), 100%);
    gap: var(--ripro-image-track-gap,12px);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}
.rhc-track[data-enhanced] { scrollbar-width: none; }
.rhc-track[data-enhanced]::-webkit-scrollbar { display: none; }
.rhc-card { min-width: 0; scroll-snap-align: start; }
.rhc-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ripro-surface, var(--ri-secondary-bg));
}
.rhc-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rhc-cover:focus-visible { outline-offset: -3px; }

.rhc-arrow:not([hidden]) {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 1;
    top: 50%;
    inset-inline-start: 6px;
    width: min(44px, calc((100% - 12px) / 2));
    height: min(44px, 100%);
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #ffffff52;
    border-radius: 0;
    background: #101625b5;
    color: #fff;
}
.rhc-arrow.rhc-next { inset-inline: auto 6px; }
.rhc-arrow:hover { background: #101625e6; }
.rhc-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateX(2px) rotate(45deg);
}
.rhc-next::before { transform: translateX(-2px) rotate(225deg); }
.rhc-arrow:dir(rtl)::before { transform: translateX(-2px) rotate(225deg); }
.rhc-next:dir(rtl)::before { transform: translateX(2px) rotate(45deg); }

@media (hover: hover) and (pointer: fine) {
    .rhc-carousel:not(:hover):not(:has(:focus-visible)) .rhc-arrow {
        opacity: 0;
        pointer-events: none;
    }
}

.rhc-track{scrollbar-width:none}
.rhc-track::-webkit-scrollbar{display:none}
