.net-before-after-content { width: 100%; }
.net-before-after-content__container {
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
}
.net-before-after-content__text { min-width: 0; flex: 0 1 auto; }
.net-before-after-content__title { margin: 0; white-space: normal; }
.net-before-after-content__description { margin: 0; }
.net-before-after-content__description > :first-child { margin-top: 0; }
.net-before-after-content__description > :last-child { margin-bottom: 0; }
.net-before-after-content__visual { flex: 1 1 auto; max-width: 100%; }
.net-before-after-content__comparison {
  --net-bac-position: 50%;
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  background: #ddd;
}
.net-before-after-content__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: inherit;
}
.net-before-after-content__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.net-before-after-content__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--net-bac-position)) 0 0);
  pointer-events: none;
}
.net-before-after-content__divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--net-bac-position);
  transform: translateX(-50%);
  pointer-events: none;
}
.net-before-after-content__handle {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: var(--net-bac-position);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: inherit;
  line-height: 1;
  cursor: ew-resize;
  appearance: none;
  touch-action: none;
  will-change: left;
  backdrop-filter: blur(3px);
  transition: none;
}
.net-before-after-content__handle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.net-before-after-content__handle-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }
.net-before-after-content__handle-icon i,
.net-before-after-content__handle-icon svg { display: block; }
.net-before-after-content__handle-icon svg { fill: currentColor; }
.net-before-after-content__label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: .08em;
  border-radius: 2px;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .net-before-after-content__container {
    flex-direction: column;
    align-items: stretch !important;
  }

  .net-before-after-content__text,
  .net-before-after-content__visual {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    min-width: 0;
  }

  .net-before-after-content__description {
    width: 100%;
    max-width: 100% !important;
  }

  .net-before-after-content__title,
  .net-before-after-content__description,
  .net-before-after-content__description p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .net-before-after-content__comparison {
    width: 100%;
    max-width: 100%;
  }

  .net-bac-mobile-image-first .net-before-after-content__visual { order: -1; }
}

@media (max-width: 767px) {
  .net-before-after-content__title br { display: none; }
  .net-before-after-content__label { font-size: 12px; }
}

.net-before-after-content__comparison.is-dragging,
.net-before-after-content__comparison.is-dragging .net-before-after-content__handle {
  cursor: grabbing;
}
