/* slider.css — dual image slider (two independent side-by-side slideshows) */
.dual-slider { margin: 0 auto 2px; max-width: 1920px; }
.dual-slider .ds-row { display: flex; flex-wrap: nowrap; }
.dual-slider .ds-col { flex: 0 0 50%; max-width: 50%; }

.slide {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 8.95;            /* keeps both sides the same height, no glitch */
  background: #eef3f6;
}

.simage {
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--sp, 1s) ease-in-out;
}
.simage.active { opacity: 1; }

.legend {
  position: absolute; bottom: 0; left: 0;
  width: 100%; padding: 10px 0;
  background: rgba(0,0,0,.5); color: #fff;
  text-align: center; font: 16px Arial, sans-serif;
  z-index: 2; margin: 0;
}

@media (max-width: 991px) {
  .dual-slider .ds-row { flex-wrap: wrap; }
  .dual-slider .ds-col { flex: 0 0 100%; max-width: 100%; }
}
/* phones: taller pictures (match the stacked hero next to them) */
@media (max-width: 767px) { .slide { aspect-ratio: 4 / 2.95; } .slide.sleft, .slide.sright { border-radius: 0; } }

/* side by side: no rounded corners; the right picture fades in over the left one's edge so the two blend in the middle */
@media (min-width: 992px) {
  .dual-slider { --ds-h: calc(min(50vw, 960px) * .559375); --ds-ov: clamp(30px, 5vw, 90px); }
  .dual-slider .ds-col:last-child { margin-left: calc(var(--ds-ov) * -1); flex: 0 0 calc(50% + var(--ds-ov)); max-width: calc(50% + var(--ds-ov)); position: relative; z-index: 1; }
  .dual-slider .slide, .dual-slider .hs.hs-half { aspect-ratio: auto; height: var(--ds-h); }
  .dual-slider .ds-col:last-child .slide, .dual-slider .ds-col:last-child .hs.hs-half {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ds-ov)); mask-image: linear-gradient(90deg, transparent 0, #000 var(--ds-ov)); }
  .dual-slider .ds-col:last-child .hs-in { padding-left: calc(52px + var(--ds-ov)); }
}
