.then-before-wrapper{
    overflow: hidden;
}

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

.then-before-horizontal .then-before-handle::before, .then-before-horizontal .then-before-handle::after {
    width: 3px;
    height: 9999px;
    left: 50%;
    margin-left: -1.5px; 
}

.then-before-vertical .then-before-handle::before, .then-before-vertical .then-before-handle::after {
    width: 9999px;
    height: 3px;
    top: 50%;
    margin-top: -1.5px; 
}

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

.then-before-before-label, .then-before-after-label, .then-before-overlay {
    transition-duration: 0.5s; 
}

.then-before-before-label, .then-before-after-label {
    transition-property: opacity; 
}

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

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

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

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

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

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

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

.then-before-container {
    box-sizing: content-box;
    z-index: 0;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none; 
}

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

.then-before-container.active .then-before-overlay, .then-before-container.active :hover.then-before-overlay {
    background: rgba(0, 0, 0, 0); 
}

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

.then-before-container * {
    box-sizing: content-box; 
}

.then-before-before-label {
    opacity: 0; 
}

.then-before-before-label::before {
    content: "Before"; 
}

.then-before-after-label {
    opacity: 0; 
}

.then-before-after-label::before {
    content: "After"; 
}

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

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

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

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

.then-before-overlay {
    transition-property: background;
    background: rgba(0, 0, 0, 0);
    z-index: 25; 
}

.then-before-overlay:hover {
    background: rgba(0, 0, 0, 0.5); 
}

.then-before-overlay:hover .then-before-after-label {
    opacity: 1; 
}

.then-before-overlay:hover .then-before-before-label {
    opacity: 1; 
}

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

.then-before-after {
    z-index: 10; 
}

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

.then-before-horizontal .then-before-handle::before {
    bottom: 50%;
    margin-bottom: 22px;
    box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); 
}

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

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

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

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

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

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