.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;
  -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
  width: 2px;
  height: 87px;
  left: calc(50% - 1px);
  margin-left: 0px;
}
.twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  width: 9999px;
  height: 4px;
  top: 50%;
  margin-top: -2px;
}
.twentytwenty-before-label, .twentytwenty-after-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.twentytwenty-after-label {
  right: 0;
}
.twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
.twentytwenty-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}
.twentytwenty-before-label:before, .twentytwenty-after-label:before {
  position: absolute;
  top: 0;
  left: calc(25% - 40px);
  width: 80px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  color: #ffffff;
  background: rgba(31, 81, 142, 1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 99px;
}
.twentytwenty-after-label:before {
  left: auto;
  right: calc(25% - 40px);
  background: rgba(13, 24, 57, 1);
  /*color: var(--yellow);*/
}
.twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
  top:-15px;
}
.twentytwenty-vertical .twentytwenty-before-label:before, .twentytwenty-vertical .twentytwenty-after-label:before {
  left: 0;
  text-align: center;
}
.twentytwenty-before-label:after, .twentytwenty-after-label:after {
  position: absolute;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  width: 18px;
  height: 10px;
  left: calc(25% - 9px);
  top: 14px;
  content: '';
  display: block;
  background: rgba(31, 81, 142, 1);
}
.twentytwenty-after-label:after {
  left: auto;
  right: calc(25% - 9px);
  background: rgba(13, 24, 57, 1);
}
.twentytwenty-left-arrow, .twentytwenty-right-arrow, .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  width: 0;
  height: 0;
  border: 4px inset transparent;
  position: absolute;
}
.twentytwenty-left-arrow, .twentytwenty-right-arrow {
  top: 50%;
  margin-top: -4px;
}
.twentytwenty-up-arrow, .twentytwenty-down-arrow {
  left: 50%;
  margin-left: -4px;
}
.twentytwenty-container {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  z-index: 0;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.twentytwenty-container img {
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  display: block;
}
/*.twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
  background: rgba(0, 0, 0, 0);
}
.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label, .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
  opacity: 0;
}*/
.twentytwenty-container * {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
.twentytwenty-before-label {
  /*opacity: 0;*/
}
.twentytwenty-before-label:before {
  content: attr(data-content);
}
.twentytwenty-after-label {
  /*opacity: 0;*/
}
.twentytwenty-after-label:before {
  content: attr(data-content);
}
.twentytwenty-overlay {
  /*-webkit-transition-property: background;
  -moz-transition-property: background;
  transition-property: background;
  background: rgba(0, 0, 0, 0);*/
  opacity: 1;
  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: 39px;
  width: 39px;
  position: absolute;
  top: 50%;
  margin-left: -19px;
  margin-top: -20px;
  border: 2px solid white;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
  -webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  z-index: 40;
  cursor: pointer;
  box-sizing: border-box;
}
.twentytwenty-horizontal .twentytwenty-handle:before {
  bottom: calc(50% + 21px);
  -webkit-box-shadow: 0 3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.twentytwenty-horizontal .twentytwenty-handle:after {
  top: calc(50% + 21px);
  -webkit-box-shadow: 0 -3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 -3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 0 -3px 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.twentytwenty-vertical .twentytwenty-handle:before {
  left: 50%;
  -webkit-box-shadow: 3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.twentytwenty-vertical .twentytwenty-handle:after {
  right: 50%;
  -webkit-box-shadow: -3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: -3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
  box-shadow: -3px 0 0 white, 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
  left: 50%;
  transform: translateX(-50%);
}
.twentytwenty-left-arrow {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -16px;
}
.twentytwenty-right-arrow {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -16px;
}
.twentytwenty-up-arrow {
  border-bottom: 6px solid white;
  top: 50%;
  margin-top: -16px;
}
.twentytwenty-down-arrow {
  border-top: 6px solid white;
  bottom: 50%;
  margin-bottom: -16px;
}
@media screen and (max-width: 750px) {
  .twentytwenty-handle {
    height: 40px;
    width: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 2px solid white;
  }
  .twentytwenty-left-arrow {
    border-right: 8px solid white;
    margin-left: -22px;
  }
  .twentytwenty-right-arrow {
    border-left: 8px solid white;
    margin-right: -22px;
  }
  .twentytwenty-left-arrow, .twentytwenty-right-arrow {
    margin-top: -8px;
  }
  .twentytwenty-left-arrow, .twentytwenty-right-arrow {
    border-width: 8px;
  }
  .twentytwenty-before-label:before, .twentytwenty-after-label:before {
    height: 36px;
    font-size: 14px;
  }
   
}


/* mặc định hiện cả 2 */
.twentytwenty-before-label,
.twentytwenty-after-label {
  opacity: 1;
  transition: 0.3s;
}

/* show AFTER → ẩn BEFORE */
.twenty-show-after .twentytwenty-before-label {
  opacity: 0;
}

/* show BEFORE → ẩn AFTER */
.twenty-show-before .twentytwenty-after-label {
  opacity: 0;
}