/* TORUNNO desktop hero sizing v3.
   Correctly targets the live hero regardless of an editor layout class,
   keeps the copy readable, uses the blue-marked width for the image, and
   sizes the image frame to the source image's wide aspect ratio. */
@media (min-width: 1001px) {
  body main > section.classic-hero {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
    overflow: visible !important;
  }

  body main > section.classic-hero .classic-hero-inner {
    width: min(1500px, calc(100vw - 80px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr) !important;
    gap: clamp(28px, 2vw, 42px) !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body main > section.classic-hero .classic-hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    justify-self: stretch !important;
    align-self: center !important;
    text-align: left !important;
    box-sizing: border-box !important;
    order: 0 !important;
  }

  body main > section.classic-hero .classic-hero-copy h1 {
    max-width: 420px !important;
    width: 100% !important;
  }

  body main > section.classic-hero .classic-hero-copy .classic-hero-text {
    max-width: 420px !important;
  }

  body main > section.classic-hero .classic-hero-image,
  body main > section.classic-hero .classic-hero-placeholder {
    position: relative !important;
    display: block !important;
    order: 1 !important;
    justify-self: stretch !important;
    align-self: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1836 / 857 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  body main > section.classic-hero .classic-hero-image img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }

  body main > section.classic-hero .classic-hero-image:hover img {
    transform: none !important;
  }

  body main > section.classic-hero .classic-image-caption {
    display: none !important;
  }

  /* If an older setting marked the hero centered, retain the desired split layout on desktop. */
  body main > section.classic-hero.classic-hero-centered .classic-hero-inner {
    grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr) !important;
    width: min(1500px, calc(100vw - 80px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
    text-align: left !important;
  }

  body main > section.classic-hero.classic-hero-centered .classic-hero-copy {
    max-width: 420px !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body main > section.classic-hero.classic-hero-centered .classic-hero-actions,
  body main > section.classic-hero.classic-hero-centered .classic-proof {
    justify-content: flex-start !important;
  }

  /* Use the standard left-copy/right-image order regardless of older order rules. */
  body main > section.classic-hero.classic-hero-image-left .classic-hero-copy { order: 0 !important; }
  body main > section.classic-hero.classic-hero-image-left .classic-hero-image { order: 1 !important; }
}
