/* RMB Highlights fullscreen Stories viewer, scoped away from Elementor. */
.rmb-highlights-circle-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}
.rmb-highlights-circle-trigger:hover .rmb-highlights-circle-frame,
.rmb-highlights-circle-trigger:focus-visible .rmb-highlights-circle-frame {
    /* Keep the hover accent inside the frame so scroll/Elementor clips cannot cut it off. */
    box-shadow: inset 0 0 0 3px rgba(200,162,123,.65);
}
.rmb-highlights-circle-trigger:focus-visible {
    /* Focus remains clearly visible without extending past the scroll viewport. */
    outline: 2px solid #8c6b4f;
    outline-offset: -2px;
    border-radius: 50%;
}
.rmb-stories-overlay {
    position: fixed !important;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}
.rmb-stories-overlay[hidden] { display: none !important; }
.rmb-stories-modal {
    position: relative;
    isolation: isolate;
    width: min(440px, 100%);
    height: min(820px, calc(100dvh - 24px));
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 14px 50px rgba(0,0,0,.45);
    font-family: Arial, sans-serif;
}
.rmb-stories-header {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 12px 14px;
    background: linear-gradient(180deg,rgba(0,0,0,.70),rgba(0,0,0,0));
}
.rmb-stories-progress {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 3px;
}
.rmb-story-progress-track {
    flex: 1 1 0;
    background: rgba(255,255,255,.35);
    border-radius: 4px;
    overflow: hidden;
}
.rmb-story-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: none;
}
.rmb-stories-heading,
.rmb-stories-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rmb-stories-heading { justify-content: space-between; padding-top: 12px; }
.rmb-stories-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rmb-stories-controls { margin-left: auto; flex-shrink: 0; }
.rmb-stories-controls button,
.rmb-stories-navigation button {
    background: rgba(0,0,0,.3);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}
.rmb-stories-controls button {
    min-width: 32px;
    min-height: 32px;
    padding: 4px 7px;
    font-size: 15px;
    line-height: 1;
}
.rmb-stories-controls .rmb-stories-close { font-size: 25px; }
.rmb-stories-controls .rmb-stories-sound { font-size: 12px; }
.rmb-stories-controls button[hidden] { display: none !important; }
.rmb-stories-controls button:focus-visible,
.rmb-stories-navigation button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.rmb-stories-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}
.rmb-story-image,
.rmb-story-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.rmb-stories-navigation {
    position: absolute;
    z-index: 4;
    inset: 86px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}
.rmb-stories-navigation button {
    width: 44px;
    height: 64px;
    flex: 0 0 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    border-radius: 8px;
    font-size: 0; /* Hide font-dependent ‹ and ›, draw consistent chevrons. */
    line-height: 1;
    text-indent: 0;
    pointer-events: auto;
    background: rgba(0,0,0,.12);
}
.rmb-stories-navigation button::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
    flex: none;
}
.rmb-stories-navigation .rmb-stories-prev::before {
    transform: rotate(-135deg);
}
/* Protect from theme pseudo-elements inside the viewer. */
.rmb-stories-navigation button::after {
    content: none;
}
.rmb-stories-navigation button:hover { background: rgba(0,0,0,.45); }
@media (max-width: 600px) {
    .rmb-stories-overlay { padding: 0; }
    .rmb-stories-modal {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rmb-stories-modal * { scroll-behavior: auto !important; }
}
