/* Keep the proportions of the 1440px desktop frames through Full HD.
   Apply the same layout scale to the page and to native WooCommerce overlays. */
@media screen and (min-width: 1441px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) {
    --esp-desktop-scale: 1;
    zoom: var(--esp-desktop-scale);
  }
}

/* Discrete sizes for browsers that cannot divide two CSS lengths. */
@media screen and (min-width: 1536px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) { --esp-desktop-scale: 1.06666667; }
}
@media screen and (min-width: 1600px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) { --esp-desktop-scale: 1.11111111; }
}
@media screen and (min-width: 1728px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) { --esp-desktop-scale: 1.2; }
}
@media screen and (min-width: 1800px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) { --esp-desktop-scale: 1.25; }
}
@media screen and (min-width: 1920px) {
  body.esp-redesign:is(.esp-region-com,.esp-region-ch) { --esp-desktop-scale: 1.33333333; }
}

@supports (zoom: calc(100vw / 1440px)) {
  @media screen and (min-width: 1441px) {
    body.esp-redesign:is(.esp-region-com,.esp-region-ch) {
      --esp-desktop-scale: clamp(1, calc(100vw / 1440px), 1.33333333);
    }
  }
}

/* Masterpieces breaks out of the article column. Measure its viewport
   inside the scaled layout so both its width and its type track the frame. */
@media screen and (min-width: 1441px) {
  body:is(.esp-region-com,.esp-region-ch) #post-827.mp-desktop .mp-editorial {
    --mp-vw: calc(1vw / var(--esp-desktop-scale));
    width: calc(100 * var(--mp-vw) - 20px);
  }
  body:is(.esp-region-com,.esp-region-ch) #post-827 .mp-editorial .mp-hero {
    height: clamp(375px, calc(36.1 * var(--mp-vw)), 660px);
    padding-inline: max(calc(5.25 * var(--mp-vw)), 40px);
  }
  body:is(.esp-region-com,.esp-region-ch) #post-827 .mp-editorial .mp-wrap {
    width: min(1268px, calc(100% - 8.6 * var(--mp-vw)));
  }
  body:is(.esp-region-com,.esp-region-ch) #post-827 .mp-editorial :is(h1,.mp-intro-head h2,.mp-center h2) {
    font-size: clamp(44px, calc(3.9 * var(--mp-vw)), 60px);
  }
  body:is(.esp-region-com,.esp-region-ch) #post-827 .mp-editorial h3 {
    font-size: clamp(25px, calc(2 * var(--mp-vw)), 34px);
  }
  body:is(.esp-region-com,.esp-region-ch) #post-827 .mp-editorial .mp-intro-copy h3 {
    font-size: clamp(32px, calc(2.77 * var(--mp-vw)), 40px);
  }
}
