@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .laptop-video-comparison {
    cursor: default;
  }

  .laptop-video-comparison[data-mode="after"] .laptop-before {
    opacity: 0 !important;
  }

  .laptop-video-comparison[data-mode="after"]:hover .laptop-before,
  .laptop-video-comparison[data-mode="after"]:focus-within .laptop-before {
    opacity: 1 !important;
  }

  .laptop-video-comparison:hover .laptop-after,
  .laptop-video-comparison:focus-within .laptop-after {
    filter: none !important;
    transform: none !important;
  }

  .laptop-video-comparison .laptop-screen::after {
    content: "After";
    position: absolute;
    z-index: 6;
    right: 16px;
    top: 16px;
    min-width: 76px;
    padding: 10px 15px;
    background: #5cdcff;
    border: 1px solid rgba(255,255,255,.8);
    color: #041020;
    font: 800 11px/1 Geist,Arial,sans-serif;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(3,14,30,.25);
    pointer-events: none;
  }

  .laptop-video-comparison:hover .laptop-screen::after,
  .laptop-video-comparison:focus-within .laptop-screen::after {
    content: "Before";
    background: #071b31;
    color: #fff;
  }

  .compact-transformation .compare-controls {
    display: none;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .laptop-video-comparison .laptop-screen::after {
    display: none;
  }

  .compact-transformation .compare-controls {
    display: flex;
  }
}
