/*
 * LONGPHOTO Three-Device Responsive V2 — user approved 2026-10-10.
 * Activated only on loopback Local Staging by functions.php. Production is
 * explicitly excluded until a separately authorized deployment.
 * Preserve current Desktop >=1280 and Candidate E fonts; tablet 768–1279
 * receives editorial layout, while narrow Mobile footer labels are centered.
 * Scoped overrides retain the pixel-verified V2 prototype geometry.
 */
@media (min-width:768px) and (max-width:1279px) {
  /* Five Chinese labels must have their own tablet width budget, not Samm Blake's 4-item region. */
  body header[data-lp-canonical-header] .lp-site-header-nav {
    left:auto !important;
    right:7.06vw !important;
    width:min(56vw,clamp(35vw,calc(810px - 28.3vw),520px)) !important;
    max-width:none !important;
    gap:0 !important;
  }
  body header[data-lp-canonical-header] .lp-site-header-nav-list {
    display:flex !important;
    width:100% !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:clamp(10px,1.6vw,24px) !important;
    flex-wrap:nowrap !important;
  }
  body header[data-lp-canonical-header] .lp-site-header-nav-list > li {flex:0 0 auto;min-width:0;}
  body header[data-lp-canonical-header] .lp-site-header-nav a {
    font-size:clamp(12px,1.22vw,13.5px) !important;
    letter-spacing:.105em !important;
  }

  /* Editorial footer nav: real center, not a narrow 1.25vw em-sized container. */
  .lp-footer .lp-home-footer .lp-editorial-footer-nav,
  .lp-about-footer .lp-editorial-footer-nav,
  .lp-about-footer .lp-about-footer__nav {
    left:50% !important;
    right:auto !important;
    width:min(66vw,585px) !important;
    min-height:24px !important;
    height:auto !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:clamp(16px,3vw,44px) !important;
    transform:translateX(-50%) !important;
  }
  .lp-footer .lp-editorial-footer-nav a,
  .lp-about-footer .lp-editorial-footer-nav a,
  .lp-about-footer .lp-about-footer__nav a {
    font-size:clamp(11.5px,1.2vw,13.5px) !important;
    line-height:1.45 !important;
    white-space:nowrap !important;
  }
  .lp-footer .lp-home-footer__baseline,
  .lp-about-footer .lp-about-footer__copyright-row {
    min-height:80px !important;
    padding:24px clamp(24px,6vw,88px) !important;
    gap:clamp(24px,4vw,64px) !important;
    align-items:center !important;
    justify-content:space-between !important;
  }
  .lp-global-footer .lp-home-footer,
  .lp-footer .lp-home-footer {
    grid-template-rows:clamp(82px,9vw,118px) auto !important;
  }
  .lp-footer .lp-home-footer .lp-editorial-footer-nav {
    top:clamp(38px,5vw,70px) !important;
  }

  /* About: preserve source content/imagery, convert tablet scaled absolute geometry to editable flow. */
  .lp-about-v6__bio {
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) !important;
    align-items:center !important;
    column-gap:clamp(32px,4vw,62px) !important;
    min-height:0 !important;
    width:min(80%,940px) !important;
    margin-inline:auto !important;
    padding:clamp(55px,7vw,108px) 0 clamp(74px,8vw,130px) !important;
  }
  .lp-about-v6__portrait {
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:9.79129/12.95813 !important;
    align-self:start !important;
    margin:0 !important;
  }
  .lp-about-v6__bio-copy {
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:auto !important;
  }
  .lp-about-v6__bio-copy p {
    font-size:clamp(14px,1.25vw,16px) !important;
    line-height:1.8 !important;
  }
  .lp-about-v6__portrait figcaption {font-size:clamp(10px,.9vw,12px) !important;}

  .lp-about-v6__notice--observations {
    min-height:0 !important;
    padding:clamp(34px,4.5vw,80px) 0 clamp(64px,8vw,112px) !important;
  }
  .lp-about-v6__notice--observations .lp-about-v6__notice-title,
  .lp-about-v6__notice--observations .lp-about-v6__temp-note {
    position:relative !important;
    inset:auto !important;
    width:min(84%,980px) !important;
    margin-inline:auto !important;
    text-align:left !important;
  }
  .lp-about-v6__notice-display {font-size:clamp(27px,3.2vw,41px) !important;}
  .lp-about-v6__notice-subtitle {font-size:clamp(13px,1.2vw,16px) !important;}
  .lp-about-v6__notice--observations .lp-about-v6__temp-note {
    font-size:clamp(10px,.9vw,12px) !important;
    margin-top:20px !important;
  }
  .lp-about-v6__notice-list--observations {
    margin:clamp(52px,6vw,86px) auto 0 !important;
    width:min(84%,900px) !important;
    column-gap:clamp(28px,4vw,64px) !important;
    row-gap:clamp(50px,6vw,88px) !important;
  }
  .lp-about-v6__observation-item figcaption span {
    font-size:clamp(16px,1.7vw,24px) !important;
    line-height:1.4 !important;
  }
  .lp-about-v6__observation-item figcaption .lp-about-v6__observation-excerpt {
    font-size:clamp(13px,1.3vw,15px) !important;
    line-height:1.7 !important;
  }

  .lp-about-v6__statement {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    min-height:0 !important;
    width:100% !important;
    padding:clamp(54px,7vw,110px) 0 clamp(68px,8vw,125px) !important;
  }
  .lp-about-v6__statement-title,
  .lp-about-v6__statement-copy {
    position:relative !important;
    inset:auto !important;
    height:auto !important;
    max-width:calc(100% - 44px) !important;
  }
  .lp-about-v6__statement-title {width:min(84%,800px) !important;text-align:center !important;}
  .lp-about-v6__statement-display {font-size:clamp(32px,3.75vw,47px) !important;line-height:1.08 !important;}
  .lp-about-v6__statement-subtitle {font-size:clamp(13px,1.2vw,17px) !important;}
  .lp-about-v6__statement-copy {
    width:min(66%,700px) !important;
    margin-top:clamp(32px,4.5vw,60px) !important;
    text-align:left !important;
  }
  .lp-about-v6__statement-copy p,
  .lp-about-v6__statement-copy h3 {font-size:clamp(14px,1.22vw,16px) !important;line-height:1.78 !important;}

  /* About-specific footer only if rendered; other pages keep their own photo-strip/footer. */
  .lp-about-footer__main {
    position:relative !important;
    height:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:clamp(24px,4vw,55px) !important;
    padding:clamp(40px,5vw,75px) 20px clamp(50px,6vw,88px) !important;
  }
  .lp-about-footer__social,.lp-about-footer__note,
  .lp-about-footer .lp-editorial-footer-nav,.lp-about-footer .lp-about-footer__nav {
    position:relative !important;
    inset:auto !important;
    height:auto !important;
    margin:0 !important;
  }
  .lp-about-footer__social {width:min(80%,630px) !important;}
  .lp-about-footer__note {width:min(74%,610px) !important;text-align:center !important;}
  .lp-about-footer .lp-editorial-footer-nav,
  .lp-about-footer .lp-about-footer__nav {left:auto !important;transform:none !important;}
}
@media (min-width:768px) and (max-width:991px) {
  .lp-about-v6__notice-list--observations {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:min(82%,680px) !important;
  }
  .lp-about-v6__notice-list--observations > .lp-about-v6__observation-item,
  .lp-about-v6__notice-list--remainder-1 > .lp-about-v6__observation-item:last-child,
  .lp-about-v6__notice-list--remainder-2 > .lp-about-v6__observation-item:nth-last-child(2),
  .lp-about-v6__notice-list--remainder-2 > .lp-about-v6__observation-item:last-child {grid-column:auto !important;}
  .lp-about-v6__notice-list--remainder-1 > .lp-about-v6__observation-item:last-child:nth-child(odd) {
    grid-column:1/-1 !important;width:calc(50% - 16px) !important;justify-self:center !important;
  }
  .lp-about-v6__statement-copy {width:min(78%,580px) !important;}
}

/* V2: only affected narrow screens; actual anchor union previously overflowed
   right at 326/375 even while nav container itself was visually centered. */
@media (max-width: 389px) {
  .lp-footer .lp-home-footer .lp-editorial-footer-nav,
  .lp-about-footer .lp-editorial-footer-nav {
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:calc(100% - 36px) !important;
    max-width:none !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:space-between !important;
    gap:4px !important;
  }
  .lp-footer .lp-editorial-footer-nav a,
  .lp-about-footer .lp-editorial-footer-nav a {
    font-size:clamp(10.1px,2.8vw,10.9px) !important;
    letter-spacing:.065em !important;
    white-space:nowrap !important;
  }
}
@media (min-width: 390px) and (max-width: 767px) {
  .lp-footer .lp-home-footer .lp-editorial-footer-nav,
  .lp-about-footer .lp-editorial-footer-nav {
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    /* Gradually return to original mobile side padding by ~600px. */
    width:calc(100% - clamp(40px, calc(45vw - 153.5px), 18.666667vw)) !important;
    max-width:none !important;
    display:flex !important;
    justify-content:space-between !important;
    gap:8px !important;
  }
}