/************************************************************************
*  Image Compare css
************************************************************************/

.image-compare-horizontal .image-compare-handle:before, .image-compare-horizontal .image-compare-handle:after, .image-compare-vertical .image-compare-handle:before, .image-compare-vertical .image-compare-handle:after {
  content: " ";
  display: block;
  background: #f3b800;
 
  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); }

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

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

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

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

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

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

.image-compare-before-label:before, .image-compare-after-label:before {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 20px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px; }

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

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

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

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

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

.image-compare-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; }
  .image-compare-container img {
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block; }
  .image-compare-container.active .image-compare-overlay, .image-compare-container.active :hover.image-compare-overlay {
    background: rgba(0, 0, 0, 0); }
    .image-compare-container.active .image-compare-overlay .image-compare-before-label,
    .image-compare-container.active .image-compare-overlay .image-compare-after-label, .image-compare-container.active :hover.image-compare-overlay .image-compare-before-label,
    .image-compare-container.active :hover.image-compare-overlay .image-compare-after-label {
      opacity: 0; }
  .image-compare-container * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box; }

.image-compare-before-label {
  opacity: 0; }
  .image-compare-before-label:before {
    content: attr(data-content); }

.image-compare-after-label {
  opacity: 0; }
  .image-compare-after-label:before {
    content: attr(data-content); }

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

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

.image-compare-vertical .image-compare-before-label:before {
  top: 25px; }

.image-compare-vertical .image-compare-after-label:before {
  bottom:25px; }

.image-compare-overlay {
  -webkit-transition-property: background;
  -moz-transition-property: background;
  transition-property: background;
  background: rgba(0, 0, 0, 0);
  z-index: 25; }
  .image-compare-overlay:hover {
    background: rgba(0, 0, 0, 0.5); }
    .image-compare-overlay:hover .image-compare-after-label {
      opacity: 1; }
    .image-compare-overlay:hover .image-compare-before-label {
      opacity: 1; }

.image-compare-before {
  z-index: 20; }

.image-compare-after {
  z-index: 10; }

.image-compare-handle {
  height: 38px;
  width: 38px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border: 3px solid #f3b800;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
  -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; }

.image-compare-horizontal .image-compare-handle:before {
    bottom: 50%;
    margin-bottom: 22px;
   }
.image-compare-horizontal .image-compare-handle:after {
    top: 50%;
    margin-top: 22px;
  }

.image-compare-vertical .image-compare-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); }
.image-compare-vertical .image-compare-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); }

.image-compare-left-arrow {
  border-right: 6px solid #f3b800;
  left: 50%;
  margin-left: -17px; }

.image-compare-right-arrow {
  border-left: 6px solid #f3b800;
  right: 50%;
  margin-right: -17px; }

.image-compare-up-arrow {
  border-bottom: 6px solid #f3b800;
  top: 50%;
  margin-top: -17px; }

.image-compare-down-arrow {
  border-top: 6px solid #f3b800;
  bottom: 50%;
  margin-bottom: -17px; }
