/* "Save space without deleting anything": the same frame from a 4K iPhone video and its Keep 4K copy, with a handle to drag
   between them. The original fills the box and the copy sits on top, cut off left of --pos. The box keeps its 16:9 shape
   before the images arrive, so nothing moves when they do. Without JavaScript it stays at the halfway mark. */
.cms-a .c-save { padding: 36px 0 8px; border-top: 1px solid var(--line); }
.c-compare { margin: 0; }
.cmp { --pos: 50%; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px; background: var(--tile); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cmp-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-label { position: absolute; z-index: 2; top: 14px; display: flex; flex-direction: column; gap: 3px; padding: 10px 16px; border-radius: 10px; background: rgba(17, 24, 16, .74); color: #fff; font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -.3px; pointer-events: none; transition: opacity .15s; }
.cmp-label small { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.cmp-label-l { left: 14px; }
.cmp-label-r { right: 14px; align-items: flex-end; text-align: right; }
/* The names are the big text and the saving sits just under Keep 4K, a little smaller. */
.cmp-pct { font-size: 17px; line-height: 1.2; letter-spacing: 0; }
.cmp[data-edge="start"] .cmp-label-l, .cmp[data-edge="end"] .cmp-label-r { opacity: 0; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; cursor: ew-resize; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 24, 16, .3); }
.cmp-knob { position: relative; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #9aa596; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 6px 16px -6px rgba(17, 24, 16, .55); }
.cmp-handle:focus-visible .cmp-knob { outline: 3px solid var(--green); outline-offset: 2px; }
.c-compare .c-note { margin-top: 10px; }
.c-save-copy { max-width: 720px; margin-top: 18px; }
.c-save-copy p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
@media (max-width: 620px) {
  .cmp-label { top: 8px; padding: 7px 11px; border-radius: 8px; font-size: 17px; }
  .cmp-label small { font-size: 11px; }
  .cmp-pct { font-size: 13px; }
  .cmp-label-l { left: 8px; }
  .cmp-label-r { right: 8px; }
  .c-save-copy p { font-size: 16px; }
}
@media (max-width: 380px) {
  .cmp-label { top: 6px; padding: 5px 9px; font-size: 15px; }
  .cmp-pct { font-size: 12px; }
  .cmp-label-l { left: 6px; }
  .cmp-label-r { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .cmp-label { transition: none; } }

/* The labels sit above the divider line and the round handle above both. */

/* The round button in the corner is full screen: on the product page for that picture alone (see .cmp-screen at the
   end), on the full-width page for the whole page. Icon only, named for screen readers, hidden without JavaScript. It
   sits above the handle, which would otherwise cover it whenever the divider is dragged over it. */
.cms a.cmp-zoom, .cmp-zoom { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(17, 24, 16, .74); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.cmp-zoom:hover { background: rgba(17, 24, 16, .9); }
.cmp-zoom:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cmp-zoom svg { grid-area: 1 / 1; }
.cmp-fs[hidden] { display: none; }
.cmp-fs[aria-pressed="true"] .cmp-i-fs, .cmp-fs[aria-pressed="false"] .cmp-i-fs-exit { display: none; }
@media (max-width: 620px) { .cms a.cmp-zoom, .cmp-zoom { right: 8px; bottom: 8px; width: 40px; height: 40px; } }

/* The full-width page: the slider spans the window, with a slim bar above and the caption below. */
.cmp-zoom-page { margin: 0; }
.cmp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 20px; }
.cmp-bar-start { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cmp-bar h1 { margin: 0; font-size: 18px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Back: a round arrow, named for screen readers. */
.cmp-back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid #789182; border-radius: 50%; color: var(--green); }
.cmp-back:hover { background: rgba(22, 84, 52, .08); }
.cmp-back:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cmp-full .cmp { border: 0; border-radius: 0; }
.cmp-full .c-note { max-width: 900px; margin: 14px auto 0; padding: 0 20px 28px; font-size: 15px; line-height: 1.55; color: var(--muted, #5d6a5f); }
.cmp-full .c-note a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1200px) {
  .cmp-full .cmp-label, .cmp-screen-on .cmp-label { top: 24px; padding: 14px 22px; border-radius: 12px; font-size: 32px; }
  .cmp-full .cmp-label-l, .cmp-screen-on .cmp-label-l { left: 24px; }
  .cmp-full .cmp-label-r, .cmp-screen-on .cmp-label-r { right: 24px; }
  .cmp-full .cmp-pct, .cmp-screen-on .cmp-pct { font-size: 22px; }
  .cmp-full .cmp-zoom, .cmp-screen-on .cmp-zoom { right: 20px; bottom: 20px; width: 48px; height: 48px; }
}
.cmp-turn { display: none; margin: 10px auto 0; padding: 0 20px; max-width: 900px; font-size: 14px; color: var(--muted, #5d6a5f); }
@media (max-width: 620px) { .cmp-bar { padding: 10px 14px; } .cmp-bar h1 { font-size: 16px; } }
@media (max-width: 620px) and (orientation: portrait) { .cmp-turn { display: block; } }
@media (max-width: 380px) { .cms a.cmp-zoom, .cmp-zoom { right: 6px; bottom: 6px; } }

/* "Try video comparison" (product page only): a button under the still slider opens the same slider playing the
   same 10 seconds. Nothing of the video loads until the tap. One video file holds the original on top and the Keep 4K
   copy below it, and compare.js draws both halves into the canvas from the same decoded frame, so the two sides can
   never drift apart. The video element sits underneath, covered by the canvas. Without JavaScript the button stays
   hidden. */
.cmp-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.cmp-try[hidden], .cmp-vpanel[hidden] { display: none; }
.cms .cmp-try-btn { gap: 9px; min-height: 48px; padding: 0 20px 0 16px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cmp-try-btn[aria-expanded="true"] .cmp-i-play, .cmp-try-btn[aria-expanded="false"] .cmp-i-up,
.cmp-try-btn[aria-expanded="true"] .cmp-try-open, .cmp-try-btn[aria-expanded="false"] .cmp-try-close { display: none; }
.cmp-try-note { font-size: 14px; color: var(--muted); }
.cmp-vpanel { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cms .cmp-vtitle { margin: 0 0 10px; }
.cmp-video { cursor: ew-resize; }
.cmp-video video, .cmp-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.cmp-video video { object-fit: cover; }
.cmp-video .cmp-label-l { align-items: flex-start; }
/* While the clip loads: a small ring in the corner, clear of the labels and the handle. */
.cmp-vwait { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: none; width: 30px; height: 30px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: cmp-spin .8s linear infinite; pointer-events: none; }
.cmp-video[data-state="loading"] .cmp-vwait { display: block; }
@keyframes cmp-spin { to { transform: rotate(360deg); } }
/* Once the download has started, the ring fills with how much has arrived instead of spinning. */
.cmp-video[data-loaded] .cmp-vwait { border: 0; background: conic-gradient(#fff var(--r, 0%), rgba(255, 255, 255, .35) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: none; }
.cmp-vbar { --cmp-track: #d9dfcf; display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cmp-vplay { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: #fdfaf3; cursor: pointer; }
.cmp-vplay:hover { background: #1c6240; }
.cmp-vplay:focus-visible, .cmp-vseek:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cmp-vplay svg { grid-area: 1 / 1; }
.cmp-vplay .cmp-i-play, .cmp-vplay .cmp-t-play, .cmp-vplay[data-paused] .cmp-i-pause, .cmp-vplay[data-paused] .cmp-t-pause { display: none; }
.cmp-vplay[data-paused] .cmp-i-play { display: block; margin-left: 2px; }
.cmp-vplay[data-paused] .cmp-t-play { display: inline; }
.cmp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp-vseek { --p: 0%; flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cmp-vseek::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--green), var(--green)) 0 0 / var(--p) 100% no-repeat, var(--cmp-track); }
.cmp-vseek::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; border: 2px solid var(--green); border-radius: 50%; background: var(--paper); -webkit-appearance: none; appearance: none; }
.cmp-vseek::-moz-range-track { height: 6px; border-radius: 3px; background: var(--cmp-track); }
.cmp-vseek::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--green); }
.cmp-vseek::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 50%; background: var(--paper); }
.cmp-vtime { flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* While it downloads, a line in place of the position bar says it can take a while. */
.cmp-vload { display: none; flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.cmp-vpanel[data-state="loading"] .cmp-vload { display: block; }
.cmp-vpanel[data-state="loading"] .cmp-vseek, .cmp-vpanel[data-state="loading"] .cmp-vtime { display: none; }
.cmp-vpanel .c-note { margin-top: 6px; }
@media (max-width: 620px) {
  .cms .cmp-try-btn { width: 100%; }
  .cmp-try-note { width: 100%; margin-top: -2px; font-size: 13px; text-align: center; }
  .cmp-vwait { left: 8px; bottom: 8px; width: 24px; height: 24px; }
  .cmp-vbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cmp-vwait { animation-duration: 2.4s; } }
@media screen and (prefers-color-scheme: dark) {
  .cmp-vbar { --cmp-track: #2d3b31; }
  .cmp-vplay { background: var(--fill); color: var(--on-fill); }
  .cmp-vplay:hover { background: var(--fill-hover); }
}

/* The full-size page: a Still frame / Video pill switch in the top bar. Video swaps the photo for the same slider playing
   the clip, with its controls under it; the handle keeps its place across the switch. Hidden without JavaScript. */
.cmp-switch { display: inline-flex; padding: 3px; border: 1.5px solid #789182; border-radius: 999px; background: var(--paper); }
.cmp-switch[hidden] { display: none; }
.cmp-switch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.cmp-switch-btn:hover { background: rgba(22, 84, 52, .08); }
.cmp-switch-btn[aria-pressed="true"] { background: var(--green); color: #fdfaf3; cursor: default; }
.cmp-switch-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cmp-full[data-view="video"] > .cmp, .cmp-full[data-view="video"] > figcaption { display: none; }
.cmp-full .cmp-vpanel { margin: 0; padding: 0; border: 0; }
.cmp-full .cmp-vbar { max-width: 900px; margin: 12px auto 0; padding: 0 20px; }
.cmp-full .cmp-vpanel .c-note { padding-bottom: 0; }
/* Full screen: just the bar and the picture (with the video's controls), the picture as large as fits. */
.cmp-fs-on body { min-height: 100vh; background: var(--paper); }
.cmp-fs-on .cmp-full > figcaption, .cmp-fs-on .cmp-turn, .cmp-fs-on .cmp-full .c-note { display: none; }
.cmp-fs-on .cmp-full .cmp { width: min(100%, calc((100vh - 72px) * 16 / 9)); margin: 0 auto; }
.cmp-fs-on .cmp-full .cmp-video { width: min(100%, calc((100vh - 72px - 56px) * 16 / 9)); }
@media (max-width: 620px) {
  .cmp-bar { grid-template-columns: minmax(0, 1fr); }
  .cmp-switch { display: flex; width: 100%; margin-bottom: 2px; }
  .cmp-switch-btn { flex: 1; min-height: 44px; }
  .cmp-full .cmp-vbar { padding: 0 14px; }
}
@media screen and (prefers-color-scheme: dark) {
  .cmp-switch, .cmp-back { border-color: #4b5f50; }
  .cmp-back:hover { background: rgba(255, 255, 255, .06); }
  .cmp-switch-btn:hover { background: rgba(255, 255, 255, .06); }
  .cmp-switch-btn[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); }
}

/* Full screen on the product page, from the round button in a picture's corner. One wrapper (.cmp-screen) holds the
   photo, the video and a Still frame / Video switch. In full screen it fills the window, black behind, and its room
   (.cmp-room) is exactly the picture with one strip of controls under it: the switch on the left and, for the video,
   play and the position bar beside it. The picture is the same size in both views, as large as fits.
   compare.js adds .cmp-screen-on and asks the browser for real full screen on top; an iPhone has none, so there this is
   all of it.
   --fw and --fh are the room there is. On an upright phone they swap and the room is turned on its side, so the picture
   fills the screen and the phone can simply be turned. */
.cmp-noscroll { overflow: hidden; }
.cmp-screen-switch { display: none; }
.cmp-screen-on { --fw: 100vw; --fh: 100vh; --bar: 64px; position: fixed; inset: 0; z-index: 1000; overflow: hidden; margin: 0; padding: 0; border: 0; background: #000; touch-action: none; }
.cmp-screen-on > .cmp-room { position: absolute; top: 50%; left: 50%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto var(--bar); align-items: center; width: min(var(--fw), calc((var(--fh) - var(--bar)) * 16 / 9)); transform: translate(-50%, -50%); }
/* The photo's figure and the video's panel step aside, so the picture and the controls line up in the room's grid. */
.cmp-screen-on .c-compare, .cmp-screen-on .cmp-vpanel { display: contents; }
.cmp-screen-on[data-view="video"] .c-compare, .cmp-screen-on[data-view="still"] .cmp-vpanel,
.cmp-screen-on .cmp-try, .cmp-screen-on figcaption, .cmp-screen-on .cmp-vtitle, .cmp-screen-on .cmp-vpanel > .c-note { display: none; }
.cmp-screen-on .cmp { grid-column: 1 / -1; grid-row: 1; border: 0; border-radius: 0; touch-action: none; }
/* The strip, light on black. */
.cmp-screen-on .cmp-switch:not([hidden]) { grid-column: 1; grid-row: 2; display: inline-flex; width: auto; margin: 0 0 0 12px; border-color: #55685a; background: #0d120e; }
.cmp-screen-on .cmp-switch-btn { flex: none; min-height: 38px; padding: 0 14px; color: #e9eee7; font-size: 14px; }
.cmp-screen-on .cmp-switch-btn:hover { background: rgba(255, 255, 255, .12); }
.cmp-screen-on .cmp-switch-btn[aria-pressed="true"] { background: #fdfaf3; color: #111810; }
.cmp-screen-on .cmp-switch-btn:focus-visible { outline-color: #86c79c; }
.cmp-screen-on .cmp-vbar { --green: #86c79c; --paper: #0d120e; --muted: #c3ccc2; --cmp-track: #38443b; grid-column: 2; grid-row: 2; box-sizing: border-box; height: var(--bar); margin: 0; padding: 0 16px 0 14px; }
.cmp-screen-on .cmp-vplay, .cmp-screen-on .cmp-vplay:hover { background: #fdfaf3; color: #111810; }
.cmp-screen-on .cmp-vload { font-size: 13px; line-height: 1.25; }
@supports (height: 100dvh) { .cmp-screen-on { --fw: 100dvw; --fh: 100dvh; } }
@media (orientation: portrait) and (max-width: 620px) {
  .cmp-screen-on { --fw: 100vh; --fh: 100vw; --bar: 56px; }
  .cmp-screen-on > .cmp-room { transform: translate(-50%, -50%) rotate(90deg); }
  .cmp-screen-on .cmp-switch:not([hidden]) { margin-left: 8px; }
  .cmp-screen-on .cmp-switch-btn { min-height: 36px; padding: 0 11px; gap: 6px; }
  .cmp-screen-on .cmp-vbar { gap: 10px; padding: 0 10px; }
  @supports (height: 100dvh) { .cmp-screen-on { --fw: 100dvh; --fh: 100dvw; } }
}
