/* An original pair of photographs, revealed with a native accessible range input. */
.editorial-site .hero-portrait.portrait-comparison {
  --portrait-reveal: 100%;
  width: 100%; max-width: 420px; margin: 0; padding: 0;
  justify-self: end; isolation: isolate;
}
.portrait-comparison-shell { position: relative; }
.editorial-site .portrait-comparison .portrait-backing {
  display: block; position: absolute; inset: 4px -9px 0 -8px;
  border-radius: 47% 44% 35% 39% / 40% 42% 35% 36%;
  background: var(--apricot-light); transform: rotate(-4deg); z-index: -1;
}
.portrait-comparison-frame {
  position: relative; width: 100%; aspect-ratio: 1.02;
  border-radius: 46% 45% 34% 38% / 39% 41% 34% 36%;
  overflow: hidden; background: #77786c;
}
.portrait-comparison-frame > .portrait-image {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.portrait-image-serious { object-position: 50% 19%; }
.portrait-image-playful {
  object-position: 50% 32%;
  clip-path: inset(0 calc(100% - var(--portrait-reveal)) 0 0);
}
.portrait-divider {
  position: absolute; inset-block: 0; left: var(--portrait-reveal);
  width: 2px; transform: translateX(-1px); background: #fffdf5d9;
  pointer-events: none;
}
.portrait-slider-handle {
  position: absolute; top: 53%; left: clamp(27px, var(--portrait-reveal), calc(100% - 27px));
  display: grid; place-items: center; width: 45px; height: 45px;
  border: 1px solid #cbb69c; border-radius: 50%; background: #fdfbf6f5;
  color: var(--ink); transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 2px 8px #254e4914;
}
.portrait-slider-handle svg { width: 25px; height: 25px; }
.portrait-range {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  width: 100%; height: 100%; opacity: 0; cursor: ew-resize;
  touch-action: pan-y;
}
.portrait-comparison-frame:focus-within .portrait-slider-handle {
  outline: 3px solid #b7815f; outline-offset: 3px;
}
.portrait-comparison-frame:focus-within { outline: 1px solid #b7815f; outline-offset: 4px; }
.editorial-site .portrait-comparison .portrait-rays { left: -22px; top: 27px; }
.portrait-instructions {
  margin: 19px -12px 0; color: var(--body);
  font: 400 12.5px/1.75 Manrope, Arial, sans-serif; text-align: center;
}
.portrait-instructions span { display: block; }
.portrait-instructions strong { font-weight: 700; color: var(--ink); }
.portrait-instructions .portrait-direction { display: inline; color: #b7815f; }
@media (max-width: 1100px) {
  .editorial-site .hero-portrait.portrait-comparison { max-width: 365px; }
  .portrait-instructions { font-size: 11px; margin-inline: -8px; }
}
@media (max-width: 760px) {
  .portrait-instructions { font-size: 11px; margin: 16px -4px 0; }
  .portrait-slider-handle { width: 39px; height: 39px; }
}
@media (max-width: 600px) {
  .editorial-site .hero { grid-template-columns: 1fr; gap: 30px; padding: 28px 4px 32px; }
  .editorial-site .hero-copy { width: 100%; }
  .editorial-site .hero-copy h1 { font-size: clamp(49px, 12vw, 62px); }
  .editorial-site .thirds { font-size: 14px; line-height: 1.75; margin-top: 19px; }
  .editorial-site .thirds span { font-size: 21px; min-width: 21px; }
  .editorial-site .hero-explore { position: static; max-width: none; font-size: 10px; }
  .editorial-site .hero-portrait.portrait-comparison { width: calc(100% - 12px); max-width: 350px; margin: 0; justify-self: center; }
  .portrait-instructions { font-size: 11.5px; line-height: 1.8; margin: 17px -5px 0; }
}

/* Приглашение относится к оглавлению на всех размерах экрана. */
.editorial-site .hero { padding-bottom: 22px; }
.editorial-site .contents-invitation { padding-bottom: 12px; }
.editorial-site .contents-invitation > .hero-explore {
  display: inline-flex; align-items: center; gap: 12px;
  position: static; margin: 0; max-width: none;
  font-size: 12px; line-height: 1.6; color: var(--body);
}
.editorial-site .contents-invitation > .hero-explore span { font-size: 18px; }
.editorial-site .contents-invitation > .hero-explore:hover { color: var(--ink); }
