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

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

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

.twentytwenty-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%; 
  transition: background 0.5s ease; }

.twentytwenty-before-label, .twentytwenty-after-label {
  transition: all 0.5s ease; 
  color: white;
  font-size: 13px;
  letter-spacing: 0.1em;
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  line-height: 38px;
  padding: 0 20px;
  border-radius: 2px; }

.twentytwenty-before-label:hover, .twentytwenty-after-label:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
    text-shadow: 0px 0px 4px rgba(51, 51, 51, 0.25);
}

/* 
Option: Show labels set to "always" 
- Labels have dark background/light text to show up on any image
- Labels are always visible except when dragging the handle
- Overlay is hidden
*/

.show-labels-always .twentytwenty-before-label,
.show-labels-always .twentytwenty-after-label,
.show-labels-always.active .twentytwenty-before-label,
.show-labels-always.active .twentytwenty-after-label {
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.show-labels-always .twentytwenty-overlay:hover {
    background: rgba(0, 0, 0, 0);
}

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

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

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

.twentytwenty-container {
  box-sizing: content-box;
  z-index: 0;
  overflow: hidden;
  position: relative; }
  .twentytwenty-container .img-before,
  .twentytwenty-container .img-after {
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block;
    max-height: 100%;
    height: 100%; }
  .twentytwenty-container img {
    width: 100%;
    height: auto;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
  }
  .twentytwenty-container .al-additional-text {
    position: absolute;
    padding: 10px 20px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-radius: 2px;
  }
  .twentytwenty-container .al-additional-text.al-text-right {
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
    max-width: 35%;
  }
  .twentytwenty-container .al-additional-text.al-text-left {
    top: 50%;
    left: 10px;
    transform: translate(0, -50%);
    max-width: 35%;
  }
  .twentytwenty-container .al-additional-text.al-text-bottom {
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 90%;
    text-align: center;
  }
  .twentytwenty-container .al-additional-text.al-text-top {
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 90%;
    text-align: center;
  }

  .twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
    background: rgba(0, 0, 0, 0); }
    .twentytwenty-container.active.show-labels-hover .twentytwenty-before-label,
    .twentytwenty-container.active.show-labels-hover .twentytwenty-after-label, 
    .twentytwenty-container.active.show-labels-hover :hover.twentytwenty-overlay .twentytwenty-before-label,
    .twentytwenty-container.active.show-labels-hover :hover.twentytwenty-overlay .twentytwenty-after-label {
      opacity: 0; }
  .twentytwenty-container * {
    box-sizing: content-box; }

.twentytwenty-before-label,
.twentytwenty-after-label {
  cursor: pointer;
  z-index: 26; }

.twentytwenty-before-label {
  opacity: 0; }
  .twentytwenty-before-label:before {
    content: "Before"; }

.twentytwenty-after-label {
  opacity: 0; }
  .twentytwenty-after-label:before {
    content: "After"; }

.twentytwenty-container .twentytwenty-before-label.al-text-left,
.twentytwenty-container .twentytwenty-after-label.al-text-left {
  left: 10px; 
  top: 50%;
  transform: translate(0, -50%);
}
.twentytwenty-container .twentytwenty-before-label.al-text-right,
.twentytwenty-container .twentytwenty-after-label.al-text-right {
  right: 10px; 
  top: 50%;
  transform: translate(0, -50%);
}
.twentytwenty-container .twentytwenty-before-label.al-text-top,
.twentytwenty-container .twentytwenty-after-label.al-text-top {
  top: 10px; 
  left: 50%;
  transform: translate(-50%, 0);
}
.twentytwenty-container .twentytwenty-before-label.al-text-bottom,
.twentytwenty-container .twentytwenty-after-label.al-text-bottom {
  bottom: 10px; 
  left: 50%;
  transform: translate(-50%, 0);
}

.twentytwenty-overlay {
  background: rgba(0, 0, 0, 0);
  z-index: 25; }
  .twentytwenty-overlay:hover {
    background: rgba(0, 0, 0, 0.5); }
    .twentytwenty-overlay:hover .twentytwenty-after-label {
      opacity: 1; }
    .twentytwenty-overlay:hover .twentytwenty-before-label {
      opacity: 1; }

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

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

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

.twentytwenty-vertical .twentytwenty-handle {
  cursor: row-resize; }

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

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

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

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

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

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

/* This class is for temporarily enabling transitions */
.twentytwenty-transition {
  transition: all .5s ease-out;
}