.dsm_before_after_image img {
    max-width: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    display: block;
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-handle:before,
.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-handle:after,
.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-handle:before,
.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-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);
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-handle:before,
.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-handle:after {
    width: 3px;
    height: 9999px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-handle:before,
.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-handle:after {
    width: 9999px;
    height: 3px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

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

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

.dsm-before-after-image-slider-before-label,
.dsm-before-after-image-slider-after-label {
    -webkit-transition-property: opacity;
    -moz-transition-property: opacity;
    transition-property: opacity;
}

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

.dsm-before-after-image-slider-before-label:before,
.dsm-before-after-image-slider-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;
}

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

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-before-label:before,
.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-after-label:before {
    left: 50%;
    text-align: center;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.dsm-before-after-image-slider-left-arrow,
.dsm-before-after-image-slider-right-arrow,
.dsm-before-after-image-slider-up-arrow,
.dsm-before-after-image-slider-down-arrow {
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
}

.dsm-before-after-image-slider-left-arrow,
.dsm-before-after-image-slider-right-arrow {
    top: 50%;
    margin-top: -6px;
}

.dsm-before-after-image-slider-up-arrow,
.dsm-before-after-image-slider-down-arrow {
    left: 50%;
    margin-left: -6px;
}

.dsm-before-after-image-slider-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;
}

.dsm-before-after-image-slider-container img {
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block;
}

.dsm-before-after-image-slider-container.active .dsm-before-after-image-slider-overlay,
.dsm-before-after-image-slider-container.active:hover.dsm-before-after-image-slider-overlay {
    background: rgba(0, 0, 0, 0);
}

.dsm-before-after-image-slider-container.active .dsm-before-after-image-slider-overlay .dsm-before-after-image-slider-before-label,
.dsm-before-after-image-slider-container.active .dsm-before-after-image-slider-overlay .dsm-before-after-image-slider-after-label,
.dsm-before-after-image-slider-container.active:hover.dsm-before-after-image-slider-overlay .dsm-before-after-image-slider-before-label,
.dsm-before-after-image-slider-container.active:hover.dsm-before-after-image-slider-overlay .dsm-before-after-image-slider-after-label {
    opacity: 0;
}

.dsm-before-after-image-slider-container * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.dsm-before-after-image-show-labels .dsm-before-after-image-slider-before-label, .dsm-before-after-image-show-labels .dsm-before-after-image-slider-after-label {
    opacity: 1;
}
.dsm-before-after-image-slider-before-label {
    opacity: 0;
}

.dsm-before-after-image-slider-before-label:before {
    content: attr(data-content);
}

.dsm-before-after-image-slider-after-label {
    opacity: 0;
}

.dsm-before-after-image-slider-after-label:before {
    content: attr(data-content);
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-before-label:before {
    left: 10px;
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-after-label:before {
    right: 10px;
}

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-before-label:before {
    top: 10px;
}

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-after-label:before {
    bottom: 10px;
}

.dsm-before-after-image-slider-overlay {
    -webkit-transition-property: background;
    -moz-transition-property: background;
    transition-property: background;
    background: rgba(0, 0, 0, 0);
    z-index: 25;
}

.dsm-before-after-image-slider-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.dsm-before-after-image-slider-overlay:hover .dsm-before-after-image-slider-after-label {
    opacity: 1;
}

.dsm-before-after-image-slider-overlay:hover .dsm-before-after-image-slider-before-label {
    opacity: 1;
}

.dsm-before-after-image-slider-before {
    z-index: 20;
}

.dsm-before-after-image-slider-after {
    z-index: 10;
}

.dsm-before-after-image-slider-handle {
    height: 38px;
    width: 38px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -22px;
    margin-top: -22px;
    border: 3px solid white;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    -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;
    overflow: visible !important;
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-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);
}

.dsm-before-after-image-slider-horizontal .dsm-before-after-image-slider-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);
}

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-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);
}

.dsm-before-after-image-slider-vertical .dsm-before-after-image-slider-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);
}

.dsm-before-after-image-slider-left-arrow {
    border-right: 6px solid white;
    left: 50%;
    margin-left: -17px;
}

.dsm-before-after-image-slider-right-arrow {
    border-left: 6px solid white;
    right: 50%;
    margin-right: -17px;
}

.dsm-before-after-image-slider-up-arrow {
    border-bottom: 6px solid white;
    top: 50%;
    margin-top: -17px;
}

.dsm-before-after-image-slider-down-arrow {
    border-top: 6px solid white;
    bottom: 50%;
    margin-bottom: -17px;
}