/* Art-directed, full-bleed photos for the interior S01 banners. */
html body.lc-compact-banner main.site-main section:is(
  #hero.hero,
  #about-us-s01,
  #blog-s01,
  #case-studies-s01,
  #contact-us-s01,
  #corporate-brand-gifting-s01,
  #cultural-ip-gifts-s01,
  #design-regional-adaptation-s01,
  #faq-s01,
  #oem-manufacturing-s01,
  #printing-finishing-s01,
  #security-anti-counterfeiting-s01,
  #trending-designs-s01,
  #wholesale-dropshipping-s01
) {
  --lc-banner-top: 28px;
  --lc-banner-bottom: 28px;
  --lc-banner-base: #2b1d17;
  --lc-banner-overlay: linear-gradient(90deg, #1c120eea, #22160fc9 29%, #27191167 54%, #21150f08 83%);
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  min-height: 65vh !important;
  min-height: 65svh !important;
  padding-block: var(--lc-banner-top) var(--lc-banner-bottom) !important;
  background: var(--lc-banner-base) var(--lc-banner-desktop) right center / cover no-repeat !important;
  position: relative;
  isolation: isolate;

  &::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
    background: var(--lc-banner-overlay) !important;
    z-index: 0 !important;
    pointer-events: none;
  }

  body:is(.tax-product-category, .page-id-262, .page-id-263, .page-id-264, .page-id-265, .page-id-347) & {
    --lc-banner-top: 84px;
    --lc-banner-overlay: linear-gradient(180deg, #1c120ebf, #1c120e00 27%),
      linear-gradient(90deg, #1c120eea, #22160fc9 29%, #27191167 54%, #21150f08 83%);
  }

  &#faq-s01 {
    --lc-banner-base: #fdf8f3;
    --lc-banner-overlay: linear-gradient(90deg, #fdf8f3fa 14%, #fdf8f3dd 41%, #fdf8f321 83%);
  }

  & > :is(.ip-hero-media, .ip-hero-overlay) {
    display: none !important;
  }

  & > :is(.hero-main, .container) {
    position: relative;
    z-index: 1;
    height: auto !important;
    min-height: 0 !important;
  }

  & .hero-copy {
    padding-block: 0 !important;
  }

  & .lc-page-trail {
    margin-block: 0 12px !important;
  }

  &:not(#faq-s01) .lc-page-trail :is(a, span, strong) {
    color: #fff9f2d9 !important;
  }

  /* 2026-11-24: H1 size comes from the single site-wide ramp in main.css. */
  & h1 {
    line-height: 1.14 !important;
    margin-bottom: 14px !important;
  }

  & :is(.ip-lede, .hero-body, .hero-copy > p) {
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }

  & :is(.hero-actions, .ip-hero-actions, .lc-detail-actions) {
    margin-block: 16px 0 !important;
  }

  & :is(.ip-proof-bar, .lc-hero-proof) {
    margin-block: 18px 0 !important;
    padding-top: 12px !important;
    gap: 10px !important;
  }

  & :is(.ip-proof-bar, .lc-hero-proof) strong {
    font-size: clamp(19px, 2.1vw, 28px) !important;
    line-height: 1.12 !important;
  }

  & :is(.ip-proof-bar, .lc-hero-proof) span {
    display: block;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  & .lc-hero-proof > div {
    min-width: 0;
    min-height: 0 !important;
    padding: 10px !important;
  }

  @media (min-width: 900px) {
    & :is(h1, .hero-body, .ip-lede) {
      max-width: min(100%, 47vw) !important;
    }

    & .lc-hero-proof {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      width: min(100%, 46vw);
    }
  }

  @media (min-width: 900px) and (max-height: 780px) {
    /* 2026-11-24: size handled by the main.css ramp; keep only the breathing room. */
    & h1 {
      line-height: 1.12 !important;
    }
  }

  @media (min-width: 900px) and (min-aspect-ratio: 9/5) {
    /* Preserve the photo's vertical safe area on short ultrawide displays. */
    background-image: linear-gradient(90deg, var(--lc-banner-base) max(0px, calc(100% - 168svh)), transparent calc(100% - 150svh)),
      var(--lc-banner-desktop) !important;
    background-size: 100% 100%, auto 100% !important;
  }

  @media (max-width: 899px), (max-aspect-ratio: 6/5) {
    --lc-banner-top: 24px;
    --lc-banner-bottom: clamp(180px, 44vw, 360px);
    --lc-banner-overlay: linear-gradient(180deg, #2b1d17fa 8%, #2b1d17d9 43%, #271a1355 70%, #271a1308 94%);
    align-items: flex-start !important;
    background-image: var(--lc-banner-tablet) !important;
    background-position: center bottom !important;
    background-size: 100% auto !important;

    body:is(.tax-product-category, .page-id-262, .page-id-263, .page-id-264, .page-id-265, .page-id-347) & {
      --lc-banner-top: 73px;
      --lc-banner-overlay: linear-gradient(180deg, #2b1d17fa 14%, #2b1d17da 48%, #271a1355 73%, #271a1308 94%);
    }

    &#faq-s01 {
      --lc-banner-overlay: linear-gradient(180deg, #fdf8f3fa 10%, #fdf8f3e6 44%, #fdf8f35e 75%, #fdf8f324 96%);
    }

    /* 2026-11-24: no size bump here — 768px used to be larger than 1024px. */
    & h1 {
      line-height: 1.16 !important;
    }

    & :is(.ip-proof-bar, .lc-hero-proof) strong {
      margin-bottom: 4px;
    }

    & :is(.hero-actions, .ip-hero-actions, .lc-detail-actions) {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
    }

    & :is(.hero-actions, .ip-hero-actions, .lc-detail-actions) > :is(a, button) {
      flex: 0 1 auto !important;
      width: auto !important;
      min-width: 0 !important;
      min-height: 44px;
      padding: 10px 12px !important;
      font-size: 11px !important;
    }
  }

  @media (max-width: 639px) {
    /* Show the original scene first, with copy over the shaded lower edge. */
    --lc-mobile-photo-top: 0px;
    --lc-mobile-photo-end: calc(var(--lc-mobile-photo-top) + 100vw * 540 / 780);
    --lc-mobile-copy-top: calc(var(--lc-mobile-photo-end) - 30px);
    --lc-banner-base: #281d19;
    --lc-banner-top: var(--lc-mobile-copy-top);
    --lc-banner-bottom: 24px;
    --lc-banner-overlay: linear-gradient(
      180deg, transparent calc(var(--lc-mobile-photo-end) - 78px),
      var(--lc-banner-base) var(--lc-mobile-photo-end)
    );
    align-items: flex-end !important;
    background-color: var(--lc-banner-base) !important;
    background-image: var(--lc-banner-mobile) !important;
    background-position: center var(--lc-mobile-photo-top) !important;

    body:is(.tax-product-category, .page-id-262, .page-id-263, .page-id-264, .page-id-265, .page-id-347) & {
      --lc-mobile-photo-top: 35px;
      --lc-banner-top: var(--lc-mobile-copy-top);
      --lc-banner-overlay: linear-gradient(180deg,
        var(--lc-banner-base) var(--lc-mobile-photo-top),
        transparent calc(var(--lc-mobile-photo-top) + 46px),
        transparent calc(var(--lc-mobile-photo-end) - 78px),
        var(--lc-banner-base) var(--lc-mobile-photo-end)
      );
    }

    &#faq-s01 {
      --lc-banner-base: #fdf8f3;
      --lc-banner-overlay: linear-gradient(180deg, transparent calc(var(--lc-mobile-photo-end) - 76px),
        var(--lc-banner-base) var(--lc-mobile-photo-end));
    }

    &#faq-s01 > .container {
      gap: 12px;
    }

    & > :is(.hero-main, .container) {
      width: 100%;
    }

    & .lc-page-trail {
      margin-block: 0 9px !important;
      font-size: 11px;
      text-shadow: 0 1px 5px #0008;
    }

    &#faq-s01 .lc-page-trail {
      text-shadow: none;
    }

    & h1 {
      line-height: 1.12 !important;
      margin-bottom: 10px !important;
    }

    & :is(.ip-lede, .hero-body, .hero-copy > p) {
      font-size: 14px !important;
      line-height: 1.5 !important;
    }

    & :is(.hero-actions, .ip-hero-actions, .lc-detail-actions) {
      margin-block-start: 14px !important;
    }

    & :is(.ip-proof-bar, .lc-hero-proof) {
      margin-block-start: 14px !important;
      gap: 8px 14px !important;
    }

    & .lc-hero-proof {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      padding-inline: 0 !important;
      background: none !important;
      border: 0 !important;
      border-top: 1px solid #ffffff30 !important;
      box-shadow: none !important;
    }

    & .lc-hero-proof > div {
      padding: 0 !important;
      border: 0 !important;
      background: none !important;
    }
  }
}
