.tb-comparison-horizontal .tb-comparison-handle:before,
.tb-comparison-horizontal .tb-comparison-handle:after,
.tb-comparison-vertical .tb-comparison-handle:before,
.tb-comparison-vertical .tb-comparison-handle:after {
  content: " ";
  display: block;
  background: #fff;
  position: absolute;
  z-index: 30;
}

.tb-comparison-horizontal .tb-comparison-handle:before,
.tb-comparison-horizontal .tb-comparison-handle:after {
    width: 4px;
    height: 354px;
    left: 50%;
    margin-left: -2px;
    border-radius: 0px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
}

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

.tb-handle-ball:before,
.tb-handle-ball:after {
  content: '';
  position: absolute;
  height: 30px;
  width: 4px;
  background: #fff;
  left: 23px;
}

.tb-handle-ball:before {
  top: -20px;
}

.tb-handle-ball:after {
  bottom: -20px;
}

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

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

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

.tb-comparison-before-label:before,
.tb-comparison-after-label:before {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
}

.tb-comparison-before-label:before,
.tb-comparison-after-label:before {
  position: absolute;
  background: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  line-height: 1.6em;
}

.tb-comparison-horizontal .tb-comparison-before-label:before,
.tb-comparison-horizontal .tb-comparison-after-label:before {
  top: 50%;
  transform: translateY(-50%);
}

.tb-comparison-vertical .tb-comparison-before-label:before,
.tb-comparison-vertical .tb-comparison-after-label:before {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

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

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

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

.tb-image-comparison {
  box-sizing: content-box;
  z-index: 0;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 20px 40px;
}

.tb-image-comparison img {
  max-width: 100%;
  position: absolute;
  top: 0;
  display: block;
  width: 100%;
  border-radius: 10px;
}

.tb-image-comparison.active .tb-comparison-overlay,
.tb-image-comparison.active :hover.tb-comparison-overlay {
  background: transparent;
}

.tb-image-comparison.active .tb-comparison-overlay .tb-comparison-before-label,
.tb-image-comparison.active .tb-comparison-overlay .tb-comparison-after-label,
.tb-image-comparison.active :hover.tb-comparison-overlay .tb-comparison-before-label,
.tb-image-comparison.active :hover.tb-comparison-overlay .tb-comparison-after-label {
  opacity: 0;
}

.tb-image-comparison * {
  box-sizing: content-box;
}

.tb-comparison-before-label {
  opacity: 0;
}

.tb-comparison-before-label:before {
  content: attr(data-content);
}

.tb-comparison-after-label {
  opacity: 0;
}

.tb-comparison-after-label:before {
  content: attr(data-content);
}

.tb-comparison-horizontal .tb-comparison-before-label:before {
  left: 20px;
}

.tb-comparison-horizontal .tb-comparison-after-label:before {
  right: 20px;
}

.tb-comparison-vertical .tb-comparison-before-label:before {
  top: 20px;
}

.tb-comparison-vertical .tb-comparison-after-label:before {
  bottom: 20px;
}

.tb-comparison-overlay {
  transition-property: background;
  background: transparent;
  z-index: 25;
}

.tb-comparison-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.tb-comparison-overlay:hover .tb-comparison-after-label {
  opacity: 1;
}

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

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

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

.tb-comparison-handle {
  height: 50px;
  width: 50px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  border-radius: 50%;
  z-index: 40;
  cursor: pointer;
}

.tb-handle-ball {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  transition: all 0.4s ease;
  transition-delay: 1.2s;
  z-index: 101;
}

.tb-image-comparison.tb-active .tb-handle-ball {
  visibility: hidden;
  transform: scale(0.5);
  transition-delay: 1.2s;
}

.tb-comparison-handle,
.twentytwenty-after,
.twentytwenty-before {
  transition: all 1.3s ease-in-out;
}

.tb-image-comparison.tb-active .tb-comparison-handle {
  left: 2px !important;
}

.tb-image-comparison.tb-active .twentytwenty-before {
  clip: rect(0px, 2.77777px, 699px, 0px) !important;
}

.tb-image-comparison.tb-active .twentytwenty-after {
  clip: rect(0px, 1300px, 699px, 2.77777px) !important;
}

.tb-comparison-horizontal .tb-comparison-handle:before {
  bottom: 50%;
  margin-bottom: -5px;
}

.tb-comparison-horizontal .tb-comparison-handle:after {
  top: 50%;
  margin-top: -5px;
}

.tb-comparison-vertical .tb-comparison-handle:before {
  left: 50%;
  margin-left: 22px;
}

.tb-comparison-vertical .tb-comparison-handle:after {
  right: 50%;
  margin-right: 22px;
}

.tb-comparison-left-arrow {
  border-right: 7px solid #222;
  left: 50%;
  margin-left: -15px;
}

.tb-comparison-right-arrow {
  border-left: 7px solid #222;
  right: 50%;
  margin-right: -15px;
}

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

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

.tb-comparison-vertical .tb-comparison-left-arrow {
  border-right: 6px solid #222;
  transform: rotate(90deg);
  margin-top: -15px;
  margin-left: -6px;
}

.tb-comparison-vertical .tb-comparison-right-arrow {
  border-left: 6px solid #222;
  transform: rotate(90deg);
  margin-right: -6px;
  margin-top: 0px;
}

.tb-image-comparison.active-handel .tb-comparison-handle,
.tb-image-comparison.active-handel .twentytwenty-after,
.tb-image-comparison.active-handel .twentytwenty-before,
.tb-image-comparison.active .tb-comparison-handle,
.tb-image-comparison.active .twentytwenty-after,
.tb-image-comparison.active .twentytwenty-before,
.tb-image-comparison.tb-sp-coms .tb-comparison-handle,
.tb-image-comparison.tb-sp-coms .twentytwenty-after,
.tb-image-comparison.tb-sp-coms .twentytwenty-before {
  transition: initial;
}

@media screen and (max-width: 1300px) {
  .tb-image-comparison {
    overflow: hidden;
  }
}
