.comparison-widget {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.comparison-widget * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.comparison-widget:hover .comparison-separator {
  opacity: 1;
}
.comparison-widget:hover .comparison-control {
  opacity: 1;
}
.comparison-widget:hover .comparison-control:before,
.comparison-widget:hover .comparison-control:after {
  opacity: 1;
}
.comparison-widget--hidden {
  opacity: 0;
}
.comparison-item {
  height: 100%;
  width: 100%;
  background: #FFF;
}
.comparison-item--first {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.comparison-item__content {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.comparison-item__content:hover .comparison-item__label {
  background: #FFF;
}
.comparison-item--first .comparison-image {
  width: auto !important;
  height: 100%;
  max-width: none;
  position: absolute;
  left: 0;
  top: 0;
}
.comparison-item__image {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  max-height:45em;
}
.comparison-item--first .comparison-item__label {
  left: 0;
  right: inherit;
}
.comparison-item__label {
  padding: 7px 10px;
  position: absolute;
  top: 0;
  right: 0;
  text-transform: uppercase;
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: #222;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
  -webkit-transition: background-color 300ms linear;
  -moz-transition: background-color 300ms linear;
  transition: background-color 300ms linear;
}
.comparison-separator {
  width: 2px;
  height: 100%;
  position: absolute;
  right: -1px;
  top: 0;
  z-index: 10;
  /*background: #FFF;*/
  background: #57e8ff;
  cursor: pointer;
  opacity: 0.7;
}
.comparison-control {
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  position: absolute;
  top: 50%;
  left: 50%;
  /*background: #FFF;*/
  background: #57e8ff;
  border-radius: 100%;
  opacity: 0.7;
}
.comparison-control:before,
.comparison-control:after {
  content: '';
  display: block;
  width: 12px;
  height: 20px;
  margin-top: -10px;
  position: absolute;
  top: 50%;
  /*background: url('../img/arrow.png') 0 0 no-repeat;*/
  background: url('../img/arrow_blue.png') 0 0 no-repeat;
}
.comparison-control:before {
  left: -15px;
}
.comparison-control:after {
  right: -15px;
  background-position: -12px 0px;
}
.comparison-control__mask {
  width: 50px;
  height: 40px;
  position: absolute;
  top: -15px;
  left: -18px;
  background: #FFF;
  opacity: 0;
}

.thumbnails {
  flex: 0 0 8%;
  max-width: 8%;
}
.thumbnails img{
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0.3em;;
  border-radius:5em
}
.beforeAfter{
  flex: 0 0 80%;
  max-width: 80%;
}

@media screen and (max-width: 1600px) {
  .comparison-item__image {
    max-height:45em;
  }
}
@media screen and (max-width: 1366px) {
  .comparison-item__image {
    max-height:45em;
  }
}
@media screen and (max-width: 1024px) {
  .comparison-item__image {
    max-height:36em;
  }
}
@media screen and (max-width: 959px) {
  .comparison-item__image {
    max-height:40em;
  }
}
@media screen and (max-width: 599px) {
  .comparison-item__image {
    max-height:35em;
  }
  .thumbnails{
    flex: 0 0 100%;
    max-width: 100%;
    text-align:center;
    margin-bottom: 1em;
  }
  .thumbnails img{
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding:0.3em;
  }
  .beforeAfter{
    flex: 0 0 100%;
    max-width: 100%;
    text-align:center;
  }
  
}