
.wdt-before-after-slider-container { display: grid; position: relative; width: 100%; height: 100%; border: none; 
  overflow: hidden; -webkit-border-radius: var(--wdtRadius_Zero); border-radius: var(--wdtRadius_Zero); }
.wdt-before-after-slider-container .wdt-img { grid-area: 1/-1; width: 100%; height: 100%; overflow: hidden; }
.wdt-before-after-slider-container .wdt-img.wdt-background-img { position: relative; z-index: 0; }
.wdt-before-after-slider-container .wdt-img.wdt-foreground-img { position: relative; z-index: 1; }

.wdt-before-after-slider-container .wdt-img img { 
  width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.wdt-before-after-slider-container .wdt-before-after-sliders,
.wdt-before-after-slider-container .wdt-slider-button { z-index: 2; }

.wdt-before-after-slider-container .wdt-before-after-sliders { 
  cursor: pointer; position: absolute; -webkit-appearance: none; appearance: none; width: 100%; height: 100%;
  background: transparent; outline: none; margin: 0; transition: all 0.2s; 
  display: flex; justify-content: center; align-items: center; padding: 0px; 
  border-width: 0px; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); 
  transform: translate(-50%, -50%); }

.wdt-before-after-slider-container .wdt-before-after-sliders:hover { background: transparent; }

.wdt-before-after-slider-container .wdt-before-after-sliders::-webkit-slider-thumb,
.wdt-before-after-slider-container .wdt-before-after-sliders::-moz-range-thumb { display: none; outline: 0px; border: none;
  -webkit-appearance: none; appearance: none; width: 0px; height: 0px; background: transparent !important; cursor: pointer; }

.wdt-before-after-slider-container .wdt-slider-button { 
  pointer-events: none; position: absolute; width: 40px; height: 100px; border-radius: var(--wdtRadius_Zero); 
  background-color: var(--wdtPrimaryColor); transform: translateX(-20px) translateY(-50%); 
  -webkit-transform: translateX(-20px) translateY(-50%); left: 50%; top: 50%; display: flex; 
  justify-content: center; align-items: center; font-family: var(--wdtFontTypo_Alt); 
  font-size: var(--wdtFontSize_Ext); font-weight: var(--wdtFontWeight_Ext); 
  letter-spacing: var(--wdtLetterSpacing_1X); text-transform: uppercase; color: var(--wdtAccentTxtColor); 
  -webkit-transition: color var(--wdt-Livi-Transition); transition: color var(--wdt-Livi-Transition); writing-mode: sideways-lr; }

.wdt-before-after-slider-span-after, .wdt-before-after-slider-span-before { 
  display: none !important; font-size: var(--wdtFontSize_Ext); 
  font-weight: normal; text-transform: uppercase; letter-spacing: normal; position: absolute; 
  color: var(--wdt-elementor-color-white); padding: 2px 10px; background-color: rgba(0,0,0,0.5); }

.wdt-before-after-slider-span-after { 
  transform: translateY(-50%) rotate(-90deg); -webkit-transform: translateY(-50%) rotate(-90deg); bottom: 10%; left: 4%; }
.wdt-before-after-slider-span-before { 
  transform: translateY(-50%) rotate(-90deg); -webkit-transform: translateY(-50%) rotate(-90deg); bottom: 10%; right: 4%; }

.wdt-before-after-slider-container .wdt-slider-button:before,
.wdt-before-after-slider-container .wdt-slider-button:after { 
  content: ""; width: 4px; left: auto; right: auto;
  display: inline-block; background-color: var(--wdt-elementor-color-white); position: absolute; }

.wdt-before-after-slider-container .wdt-slider-button:before { top: -100vh; bottom: 100%; }
.wdt-before-after-slider-container .wdt-slider-button:after { top: 100%; bottom: -100vh; }

body.rtl .wdt-before-after-slider-container .wdt-before-after-sliders { 
  -webkit-transform: rotateY(180deg); transform: rotateY(180deg); }


@media only screen and (max-width: 767px) {
  .wdt-before-after-slider-container .wdt-slider-button { 
    width: 35px; height: 80px; transform: translateX(-18px) translateY(-50%); 
    -webkit-transform: translateX(-18px) translateY(-50%); }
  .wdt-before-after-slider-span-after, .wdt-before-after-slider-span-before { font-size: 12px; }
}