.drb_review_marquee { min-width:0; max-width:100%; }
.drb_review_marquee { --drb-marquee-gap:24px; --drb-marquee-row-gap:30px; --drb-marquee-width:340px; --drb-marquee-height:540px; --drb-marquee-fade:32px; }
/* One Review Marquee owns one track. Consecutive horizontal modules are rows;
   replace Divi's 30px default module separation only between those row wrappers. */
.drb-marquee-module--horizontal:has(+ .drb-marquee-module--horizontal) { margin-bottom:var(--drb-marquee-row-gap)!important; }
.drb-marquee { min-width:0; max-width:100%; }
.drb-marquee-viewport { position:relative; width:100%; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.drb-marquee-track { position:relative; display:flex; flex-direction:row; align-items:flex-start; gap:var(--drb-marquee-gap); min-width:0; }
.drb-marquee-track > .drb-review-card { flex:0 0 auto; min-width:0; height:auto; margin:0!important; }
/* Defaults must yield to native per-card responsive width/max-width settings. */
:where(.drb-marquee-track > .drb-review-card) { width:min(var(--drb-marquee-width),100%); }
.drb-marquee[data-direction="up"] .drb-marquee-viewport,.drb-marquee[data-direction="down"] .drb-marquee-viewport { height:var(--drb-marquee-height); }
.drb-marquee[data-direction="up"] .drb-marquee-track,.drb-marquee[data-direction="down"] .drb-marquee-track { flex-direction:column; }
.drb-marquee[data-direction="up"] .drb-marquee-track > .drb-review-card,.drb-marquee[data-direction="down"] .drb-marquee-track > .drb-review-card { flex:none; }
:where(.drb-marquee[data-direction="up"] .drb-marquee-track > .drb-review-card,.drb-marquee[data-direction="down"] .drb-marquee-track > .drb-review-card) { width:100%; }
.drb-marquee-ring:not(.drb-marquee-paused) .drb-marquee-viewport { overflow:hidden; }
.drb-marquee-ring .drb-marquee-track { display:flex; }
/* Keep vertical card content in one raster during motion to avoid text snapping.
   Release the hint while paused so text is rasterized sharply at its final position.
   Fractional translations and native decoration transforms remain unchanged. */
.drb-marquee-ring:not(.drb-marquee-paused):is([data-direction="up"],[data-direction="down"]) .drb-marquee-track > .drb-review-card { will-change:translate; }
:where(.drb-marquee-ring[data-direction="left"] .drb-marquee-track > .drb-review-card,.drb-marquee-ring[data-direction="right"] .drb-marquee-track > .drb-review-card) { width:min(var(--drb-marquee-width),var(--drb-marquee-measured-width,100%)); }
.drb-marquee-controls { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin-top:12px; }
.drb-marquee-toggle { font:inherit; color:inherit; background:transparent; border:1px solid currentColor; border-radius:4px; padding:8px 16px; min-height:44px; cursor:pointer; }
.drb-marquee-toggle:disabled { opacity:.6; cursor:default; }
.drb-marquee-toggle:focus-visible,.drb-marquee-viewport:focus-visible { outline:3px solid #2563eb; outline-offset:-3px; }
.drb-marquee-status { font-size:13px; }
.drb-marquee-ring[data-fade="on"] .drb-marquee-viewport { mask-image:linear-gradient(to right,transparent,#000 var(--drb-marquee-fade),#000 calc(100% - var(--drb-marquee-fade)),transparent); }
.drb-marquee-ring[data-fade="on"][data-direction="up"] .drb-marquee-viewport,.drb-marquee-ring[data-fade="on"][data-direction="down"] .drb-marquee-viewport { mask-image:linear-gradient(to bottom,transparent,#000 var(--drb-marquee-fade),#000 calc(100% - var(--drb-marquee-fade)),transparent); }

/* Shared controls remain outside the transparency mask. Announcements are not visual helpers. */
.drb-marquee-controls[hidden] { display:none; }
.drb-marquee-controls { justify-content:center; }
.drb-marquee-status { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.drb-marquee-toggle { border-radius:999px;padding:8px 20px;font-size:14px; }

.drb-marquee-ring[data-fade="on"][data-keyboard-focus] .drb-marquee-viewport { mask-image:none; }
/* Builder adds a content wrapper and an editable empty-media placeholder. Neither
   should acquire the full portrait/card budget while there is no real media. */

/* Both axes retain native scroll/touch/keyboard access in paused/manual mode. */
.drb-marquee > .drb-marquee-viewport {scrollbar-width:none;}
.drb-marquee > .drb-marquee-viewport::-webkit-scrollbar {display:none;width:0;height:0;}

.drb-review-card[data-drb-fixed-card] { height:max(var(--drb-fixed-card-height,400px),var(--drb-fixed-minimum,0px));max-height:none;display:flex;flex-direction:column; }
.drb-review-card[data-drb-fixed-card] .et_pb_module.drb-fixed-text-path { display:flex;flex-direction:column;flex:1 1 auto;min-height:0; }
.drb-review-card[data-drb-fixed-card] .drb-fixed-text-path > .et_pb_module:not(.drb-fixed-text-path) { flex-shrink:0; }
.drb-review-card[data-drb-fixed-card] .drb-fixed-text-path > .et_pb_text_inner { flex:0 1 auto;min-height:0; }
.drb-review-card[data-drb-fixed-card] .drb-fixed-text-path > .drb-read-more { flex:none;margin-top:auto; }
.drb-review-card[data-drb-fixed-card] > .drb_review_media { flex:1 1 auto;min-height:0;max-height:100%;width:100%; }
.drb-review-card[data-drb-fixed-card][data-drb-fixed-body] > .drb_review_media { flex:0 0 45%; }
.drb-review-card[data-drb-fixed-card] > .drb_review_media .drb-media { height:100%;max-height:100%;aspect-ratio:auto; }
.drb-review-card[data-drb-fixed-card].drb-fixed-oversized { height:auto;min-height:var(--drb-fixed-card-height,400px); }
.drb-review-card[data-drb-fixed-card]:has(.drb-read-more[aria-expanded="true"]) {height:auto;min-height:var(--drb-fixed-card-height,400px);}
.drb-review-card[data-drb-fixed-card] .drb_review_media > [data-drb-media-builder] { height:100%;width:100%;min-height:0; }
.drb-review-card[data-drb-fixed-card] > .drb_review_media:has(.drb-media-placeholder) { flex:0 0 52px;height:52px; }
.drb-marquee .drb-review-card[data-drb-fixed-card] > .drb_review_media:has(.drb-media-placeholder) { position:absolute;inset:0 0 auto;height:0;z-index:2; }
.drb-marquee .drb-review-card[data-drb-fixed-card] > .drb_review_media:has(.drb-media-placeholder) .drb-media-placeholder { position:absolute;inset:0 0 auto;height:52px;box-sizing:border-box; }
/* A marquee's configured card height is the collapsed outer border box. The
   shared minimum remains available to carousels and inline-expanded cards. */
.drb-marquee[data-height-mode="fixed"] .drb-review-card[data-drb-fixed-card]:not(:has(.drb-read-more[aria-expanded="true"])) { position:relative;box-sizing:border-box;height:var(--drb-fixed-card-height,400px);min-height:0;max-height:var(--drb-fixed-card-height,400px); }
