.smartbeforeafter-horizontal .smartbeforeafter-handle:before, .smartbeforeafter-horizontal .smartbeforeafter-handle:after, .smartbeforeafter-vertical .smartbeforeafter-handle:before, .smartbeforeafter-vertical .smartbeforeafter-handle:after {
  content: " ";
  display: block;
  background: white;
  position: absolute;
  z-index: 30;
  -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5); }

.smartbeforeafter-horizontal .smartbeforeafter-handle:before, .smartbeforeafter-horizontal .smartbeforeafter-handle:after {
  width: 1px;
  height: 9999px;
  left: 50%;
  margin-left: 0; 
}

.smartbeforeafter-vertical .smartbeforeafter-handle:before, .smartbeforeafter-vertical .smartbeforeafter-handle:after {
  width: 9999px;
  height: 1px;
  top: 50%;
  margin-top: 0; 
}

.smartbeforeafter-before-label, .smartbeforeafter-after-label, .smartbeforeafter-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%; }

.smartbeforeafter-before-label, .smartbeforeafter-after-label, .smartbeforeafter-overlay {
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  transition-duration: 0.5s; }

.smartbeforeafter-before-label, .smartbeforeafter-after-label {
  -webkit-transition-property: opacity;
  -moz-transition-property: opacity;
  transition-property: opacity; }

.smartbeforeafter-before-label:before, .smartbeforeafter-after-label:before {
  color: white;
  font-size: 13px;
  letter-spacing: 0.1em; }

.smartbeforeafter-before-label:before, .smartbeforeafter-after-label:before {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  line-height: 38px;
  padding: 0 20px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px; }

.smartbeforeafter-horizontal .smartbeforeafter-before-label:before, .smartbeforeafter-horizontal .smartbeforeafter-after-label:before {
  top: 50%;
  margin-top: -19px; }

.smartbeforeafter-vertical .smartbeforeafter-before-label:before, .smartbeforeafter-vertical .smartbeforeafter-after-label:before {
  left: 50%;
  margin-left: -45px;
  text-align: center;
  width: 90px; }

.smartbeforeafter-left-arrow, .smartbeforeafter-right-arrow, .smartbeforeafter-up-arrow, .smartbeforeafter-down-arrow {
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute; }

.smartbeforeafter-left-arrow, .smartbeforeafter-right-arrow {
  top: 50%;
  margin-top: -6px; }

.smartbeforeafter-up-arrow, .smartbeforeafter-down-arrow {
  left: 50%;
  margin-left: -6px; }

.smartbeforeafter-container {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  z-index: 0;
  overflow: hidden;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none; }
  .smartbeforeafter-container img {
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block; }
  .smartbeforeafter-container.active .smartbeforeafter-overlay, .smartbeforeafter-container.active :hover.smartbeforeafter-overlay {
    background: rgba(0, 0, 0, 0); }
    .smartbeforeafter-container.active .smartbeforeafter-overlay .smartbeforeafter-before-label,
    .smartbeforeafter-container.active .smartbeforeafter-overlay .smartbeforeafter-after-label, .smartbeforeafter-container.active :hover.smartbeforeafter-overlay .smartbeforeafter-before-label,
    .smartbeforeafter-container.active :hover.smartbeforeafter-overlay .smartbeforeafter-after-label {
      opacity: 0; }
  .smartbeforeafter-container * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box; }

.smartbeforeafter-before-label {
  opacity: 0; }
  .smartbeforeafter-before-label:before {
    content: attr(data-content); }

.smartbeforeafter-after-label {
  opacity: 0; }
  .smartbeforeafter-after-label:before {
    content: attr(data-content); }

.smartbeforeafter-horizontal .smartbeforeafter-before-label:before {
  left: 10px; }

.smartbeforeafter-horizontal .smartbeforeafter-after-label:before {
  right: 10px; }

.smartbeforeafter-vertical .smartbeforeafter-before-label:before {
  top: 10px; }

.smartbeforeafter-vertical .smartbeforeafter-after-label:before {
  bottom: 10px; }

.smartbeforeafter-overlay {
  -webkit-transition-property: background;
  -moz-transition-property: background;
  transition-property: background;
  background: rgba(0, 0, 0, 0);
  z-index: 25; }
  .smartbeforeafter-overlay:hover {
    background: rgba(0, 0, 0, 0.5); }
    .smartbeforeafter-overlay:hover .smartbeforeafter-after-label {
      opacity: 1; }
    .smartbeforeafter-overlay:hover .smartbeforeafter-before-label {
      opacity: 1; }

.smartbeforeafter-before {
  z-index: 20; }

.smartbeforeafter-after {
  z-index: 10; }

.smartbeforeafter-handle {
  height: 38px;
  width: 38px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border: 3px solid #4941e9;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
/*  -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);*/
  z-index: 40;
  cursor: pointer; 


  background: #4941e9; 
  line-height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.smartbeforeafter-horizontal .smartbeforeafter-container .smartbeforeafter-handle{
  flex-direction: row;
  gap: 5px;
}

.smartbeforeafter-horizontal .smartbeforeafter-handle:before {
  bottom: 50%;
  margin-bottom: 22px;
/*  -webkit-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); */
}
.smartbeforeafter-horizontal .smartbeforeafter-handle:after {
  top: 50%;
  margin-top: 22px;
/*  -webkit-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); */
}

.smartbeforeafter-vertical .smartbeforeafter-handle:before {
  left: 50%;
  margin-left: 22px;
/*  -webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); */
}
.smartbeforeafter-vertical .smartbeforeafter-handle:after {
  right: 50%;
  margin-right: 22px;
/*  -webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); */
}

.smartbeforeafter-left-arrow {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -17px; }

.smartbeforeafter-right-arrow {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -17px; }

.smartbeforeafter-up-arrow {
  border-bottom: 6px solid white;
  top: 50%;
  margin-top: -17px; }

.smartbeforeafter-down-arrow {
  border-top: 6px solid white;
  bottom: 50%;
  margin-bottom: -17px; 
}

.smartbeforeafter-before-arrow,
.smartbeforeafter-after-arrow{
  color: #fff;
  position: relative;
  vertical-align: text-top;
  display: inline-flex;
}

.smartbeforeafter-before-arrow .icon-left-arrow{
  position: absolute;
  right: -7px;
  top: 0;
}
.smartbeforeafter-after-arrow .icon-right-arrow{
  position: absolute;
  left: -7px;
  top: 0;
}

.smartbeforeafter-before-arrow .icon-left-arrow.up,
.smartbeforeafter-after-arrow .icon-right-arrow.down{ 
  left: -8px; 
  transform:rotate(90deg);
}