<style>


  .comparison {
      margin-inline:auto;
    margin-bottom: 3.5rem;
    clear: both;
  }

 
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .compare-figure { margin: 0;margin-bottom:20px; }

  .compare {
    --pos: 50%;        
    --ratio: 3 / 2;  
    margin-inline:auto;
    position: relative;
  }


  .compare__frame {
    position: relative;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    border-radius: 0px;
    background: #d3d7da;   /* shows through while the JPGs load */
    cursor: ew-resize;    
  }

  .compare__frame .compare__img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;   
  }

  .compare__img--after {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  }

  .compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 5px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
    pointer-events: none;   
  }

 
  .compare__range {
    position: absolute;
    top: calc(50% - 24px);     /* THUMB 48 — half, to centre on the frame */
    height: 48px;              /* THUMB 48 */
    left: -24px;               /* THUMB 48 — half, negative */
    width: calc(100% + 48px);  /* THUMB 48 — one full thumb */
    margin: 0;
    padding: 0;
    border: 0!important;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: ew-resize;
  }
  .compare__range::-webkit-slider-runnable-track { height: 48px; background: transparent; }  /* THUMB 48 */
  .compare__range::-moz-range-track { height: 48px; background: transparent; }               /* THUMB 48 */


  .compare__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 48px;    /* THUMB 48 */
    height: 48px;   /* THUMB 48 */
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 55% no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    cursor: ew-resize;
  }
  .compare__range::-moz-range-thumb {
    width: 48px;    /* THUMB 48 */
    height: 48px;   /* THUMB 48 */
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 55% no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    cursor: ew-resize;
  }

  /* Bigger target on touch devices. All five numbers move together. */
  @media (pointer: coarse) {
    .compare__range {
      top: calc(50% - 28px);     /* THUMB 56 — half, to centre on the frame */
      height: 56px;              /* THUMB 56 */
      left: -28px;               /* THUMB 56 — half, negative */
      width: calc(100% + 56px);  /* THUMB 56 — one full thumb */
    }
    .compare__range::-webkit-slider-runnable-track { height: 56px; }  /* THUMB 56 */
    .compare__range::-moz-range-track { height: 56px; }               /* THUMB 56 */
    .compare__range::-webkit-slider-thumb {
      width: 56px;    /* THUMB 56 */
      height: 56px;   /* THUMB 56 */
    }
    .compare__range::-moz-range-thumb {
      width: 56px;    /* THUMB 56 */
      height: 56px;   /* THUMB 56 */
    }
  }

  .compare__range:focus { outline: none; }
  .compare__range:focus-visible::-webkit-slider-thumb {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }
  .compare__range:focus-visible::-moz-range-thumb {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }



  @media (forced-colors: active) {
    .compare__divider {
      forced-color-adjust: none;
      background: CanvasText;
      box-shadow: none;
    }
    .compare__range::-webkit-slider-thumb {
      forced-color-adjust: none;
      background: ButtonFace;
      border: 3px solid ButtonText;
    }
    .compare__range::-moz-range-thumb {
      forced-color-adjust: none;
      background: ButtonFace;
      border: 3px solid ButtonText;
    }
    .compare__frame { border: 1px solid CanvasText; }
  }

  @media (prefers-reduced-motion: reduce) {
    .compare *, .compare *::before, .compare *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }

</style>