/* Large original-photo previews. Full framing remains available in the links. */
body.site-v3 .comparison-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
}

body.site-v3 .comparison-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  min-width: 0;
}

body.site-v3 .comparison-tabs button {
  min-width: 0;
  min-height: 64px;
  padding: 14px 16px;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
}

body.site-v3 .comparison-tabs button > span {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.45;
}

body.site-v3 .comparison-panel {
  width: 100%;
  min-width: 0;
  max-width: none;
}

body.site-v3 .comparison-panel .aligned-frame,
body.site-v3 .comparison-panel .aligned-frame[data-aspect="landscape"] {
  width: 100%;
  max-width: none;
  height: clamp(540px, 65svh, 680px);
  min-height: 540px;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 18px;
}

body.site-v3 .comparison-panel .aligned-frame[data-aspect="portrait"] {
  width: min(100%, 900px);
  max-width: 900px;
  height: clamp(560px, 65svh, 600px);
  min-height: 560px;
  max-height: none;
  aspect-ratio: auto;
  margin-inline: auto;
}

body.site-v3 .aligned-frame .aligned-base,
body.site-v3 .aligned-frame .aligned-after,
body.site-v3 .aligned-frame .aligned-after > img,
body.site-v3 .aligned-frame[data-mode="original"] .aligned-base,
body.site-v3 .aligned-frame[data-mode="original"] .aligned-after > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body.site-v3 .comparison-bottom {
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin-top: 18px;
}

body.site-v3 .comparison-bottom h3 {
  font-size: 22px;
  line-height: 1.35;
}

body.site-v3 .pair-navigation {
  flex: 0 0 auto;
}

body.site-v3 .pair-navigation > button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

body.site-v3 .pair-navigation > span {
  font-size: 16px;
  line-height: 1.5;
}

body.site-v3 .comparison-original-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.site-v3 .comparison-original-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #aebfa1;
  border-radius: 9px;
  background: #f5f7ed;
  color: #25442d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

body.site-v3 .comparison-original-links > a:hover {
  border-color: #718e60;
  background: #e5edd9;
}

body.site-v3 .comparison-original-links > a:focus-visible {
  outline: 3px solid #4d753b;
  outline-offset: 4px;
}

body.site-v3 .alignment-note {
  max-width: 82ch;
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.65;
  color: #405637;
}

@media (max-width: 700px) {
  body.site-v3 .comparison-deck {
    gap: 17px;
  }

  body.site-v3 .comparison-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  body.site-v3 .comparison-tabs button {
    display: block;
    min-height: 70px;
    padding: 11px 12px;
    font-size: 17px;
    line-height: 1.45;
  }

  body.site-v3 .comparison-tabs button > span {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
  }

  body.site-v3 .comparison-panel .aligned-frame,
  body.site-v3 .comparison-panel .aligned-frame[data-aspect="landscape"],
  body.site-v3 .comparison-panel .aligned-frame[data-aspect="portrait"] {
    width: calc(100% + 30px);
    max-width: calc(100vw - 18px);
    height: clamp(340px, 58svh, 480px);
    min-height: 340px;
    max-height: none;
    margin-inline: -15px;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  body.site-v3 .comparison-panel .aligned-frame[data-aspect="portrait"] {
    height: clamp(420px, 65svh, 600px);
    min-height: 420px;
  }

  body.site-v3 .comparison-bottom {
    margin-top: 15px;
    gap: 11px 16px;
  }

  body.site-v3 .comparison-bottom h3 {
    flex: 1 1 220px;
    min-width: 0;
    font-size: 20px;
  }

  body.site-v3 .comparison-original-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  body.site-v3 .comparison-original-links > a {
    padding: 10px 11px;
    font-size: 16px;
  }
}
