.comparison {
  position: relative;
  width: 600px;
  height: 400px;
  touch-action: none;
}
.comparison>.a,
.comparison>.b {
  position: absolute;
  width: 100%;
  height: 100%;
}
.ew-comparison>.a {
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
}
.ew-comparison>.b {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.ns-comparison>.a {
  left: 0;
  top: 0;
  width: 100%;
  height: 50%;
}
.ns-comparison>.b {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
}
.comparison img,
.comparison [role="img"] {
  -webkit-user-select: none;
  user-select: none;
}
.comparison>.divider {
  box-sizing: content-box;
  position: absolute;
  background-color: #00ffff;
  background-clip: padding-box;
}
.comparison>.a[data-tags]::after,
.comparison>.b[data-tags]::after {
  content: attr(data-tags);
  display: inline-block;
  padding: 2px 6px;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  border: 1px solid #ffffff;
  border-radius: 3px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}
.ew-comparison>.a[data-tags]::after {
  position: absolute;
  left: 10px;
  top: 10px;
}
.ew-comparison>.b[data-tags]::after {
  position: absolute;
  right: 10px;
  top: 10px;
}
.ns-comparison>.a[data-tags]::after {
  position: absolute;
  left: 10px;
  top: 10px;
}
.ns-comparison>.b[data-tags]::after {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
.comparison figure {
  margin: 0;
}
.comparison figcaption {
  display: none;
}
/* .comparison figcaption {
  display: block;
  border: 1px solid white;
  border-radius: 4px;
  padding: 2px;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}
.ew-comparison>.a figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
}
.ew-comparison>.b figcaption {
  position: absolute;
  right: 10px;
  top: 10px;
} */
.ew-comparison>.b img,
.ew-comparison>.b [role="img"] {
  position: absolute;
  left: auto;
  right: 0;
}
.ew-comparison>.divider {
  top: 0;
  left: 50%;
  margin-left: -2px;
  width: 2px;
  height: 100%;
  border: 1px solid transparent;
  border-top: none;
  border-bottom: none;
  cursor: ew-resize;
}
.ns-comparison>.b img,
.ns-comparison>.b [role="img"] {
  position: absolute;
  left: 0;
  bottom: 0;
}
/* .ns-comparison>.a figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
}
.ns-comparison>.b figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
} */
.ns-comparison>.divider {
  top: 50%;
  left: 0;
  margin-top: -2px;
  width: 100%;
  height: 2px;
  border: 1px solid transparent;
  border-left: none;
  border-right: none;
  cursor: ns-resize;
}
