.video-redesign .site-main {padding-bottom:0}
.video-redesign .rd-footer-cta {--footer-wave-backdrop:var(--video-promos-carousel-bg)}

/* The wave surfaces share one paint context beneath the page content. Keep
   each band unisolated so an open panel's shadow can reach the next surface. */
.video-redesign .portfolio-page-content {isolation:isolate}

.rv-carousels {
  container-type:inline-size;
  display:grid;
  padding-block-start:clamp(20px,3vw,38px);
  min-width:0;
}
.rv-carousels > [data-carousel-scope=videoClient] + .ds-carousel-section {--carousel-prev-background:var(--video-client-carousel-bg)}
.rv-carousels > [data-carousel-scope=videoEssays] + .ds-carousel-section {--carousel-prev-background:var(--video-essays-carousel-bg)}
.rv-carousels > [data-carousel-scope=videoShort] + .ds-carousel-section {--carousel-prev-background:var(--video-short-carousel-bg)}
.rv-carousels > [data-carousel-scope=videoPromos] + .ds-carousel-section {--carousel-prev-background:var(--video-promos-carousel-bg)}
.rv-carousels > [data-carousel-scope=videoGaming] + .ds-carousel-section {--carousel-prev-background:var(--video-gaming-carousel-bg)}
.rv-carousels > .ds-carousel-section {
  min-width:0;
  isolation:auto;
  scroll-margin-block-start:104px;
}
.rv-carousel-flavor {
  margin:0 0 var(--video-carousel-heading-gap,25px);
  max-inline-size:710px;
  font-size:clamp(15px,1.8cqi,18px);
  line-height:1.5;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.rv-carousel-flavor[hidden] {display:none}
.rv-carousels .ds-caption strong {overflow-wrap:anywhere}

/* Give each group a useful first paint and a no-script navigation fallback. */
.rv-carousels .ds-gallery:not([data-layout]) > .ds-panel {height:var(--gallery-height,320px)}
.rv-carousels .ds-gallery:not([data-layout])[data-orientation=portrait] > .ds-panel {height:clamp(220px,51cqi,760px)}
.rv-carousels .ds-gallery:not([data-layout]) > .ds-panel[data-focused=true] .ds-caption {opacity:1;transform:none}
.rv-carousels .ds-gallery:not([data-layout]) > .ds-panel[data-focused=true] .ds-panel-gradient {opacity:1}
@media(max-width:720px){
  .rv-carousels > .ds-carousel-section {scroll-margin-block-start:90px}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout]) {display:grid;gap:10px}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout]) > .ds-panel {width:100%;height:140px}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout]) > .ds-panel[data-focused=true] {height:auto;aspect-ratio:16/9}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout])[data-orientation=portrait] > .ds-panel {height:150px}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout])[data-orientation=portrait] > .ds-panel[data-focused=true] {height:auto;aspect-ratio:4/5}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout]) .ds-caption {opacity:1;transform:none;width:calc(100% - 40px)}
  :is(#dan-landing-home,.ds-carousel-section) .ds-gallery:not([data-layout]) .ds-panel-gradient {opacity:1}
}
