.nt-images-compare {
  display: inline-block;
  position: relative;
  overflow: hidden; }
  .nt-images-compare *, .nt-images-compare:before, .nt-images-compare:after,
  .nt-images-compare *:before,
  .nt-images-compare *:after {
    box-sizing: border-box; }
  .nt-images-compare img, .nt-images-compare svg {
    vertical-align: bottom; }
  .nt-images-compare > * {
    height: 100%; }
  .nt-images-compare > img {
    max-width: 100%;
    height: auto; }

.nt-reveal {
  position: absolute;
  left: 0;
  top: 0;
  right: 50%;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s; }
  .nt-reveal > :first-child {
    width: 200%;
    max-width: none;
    height: 100%; }
  .nt-reveal > img:first-child {
    height: auto; }

.nt-range {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  height: 100%;
  margin: 0;
  left: -1px;
  width: calc(100% + 2px);
  cursor: pointer;
  -webkit-appearance: slider-horizontal !important;
  -moz-appearance: none;
  opacity: 0;
  -ms-touch-action: auto;
  touch-action: auto; }
  .nt-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 300vh; }
  .nt-range::-moz-range-thumb {
    -webkit-appearance: none;
    height: 300vh; }
  .nt-range::-ms-tooltip {
    display: none; }

.nt-handle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  color: #000;
  background: rgba(255, 255, 255, 0.5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0);
  transition: background 0.3s, box-shadow 0.3s, opacity 0.5s 0.25s; }
  .nt-handle:before, .nt-handle:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    border-top: solid 2px;
    border-left: solid 2px;
    transform-origin: 0 0; }
  .nt-handle:before {
    left: 10px;
    transform: rotate(-45deg); }
  .nt-handle:after {
    right: 0;
    transform: rotate(135deg); }

.nt-range:focus ~ .nt-handle {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4); }

.nt-images-compare[data-nt-label]:after,
.nt-reveal[data-nt-label]:after {
  content: attr(data-nt-label);
  position: absolute;
  top: 1.5rem;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 0.125rem;
  background: rgba(255, 255, 255, 0.75); }

.nt-images-compare[data-nt-label]:after {
  right: 1.5rem; }

.nt-reveal[data-nt-label]:after {
  left: 1.5rem; }

.nt-images-compare[data-nt-label=""]:after,
.nt-reveal[data-nt-label=""]:after {
  content: none; }

.nt-ready .nt-reveal, .nt-ready .nt-handle {
  opacity: 1; }
