/*
 * Iconic Motors — five model HERO photos, graded with CSS overlays.
 * Source images are the LIGHT originals (even-numbered PNG files from user's ZIPs).
 * The user's DARK versions (odd-numbered PNG files) define the shading target.
 * Only first HERO image in each page; does not affect galleries, text, or forms.
 */
.im-hero-reference-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.im-hero-reference-overlay--desktop { top: 0; bottom: 0; }
.im-hero-reference-overlay--mobile { top: 0; bottom: auto; }
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--jimny { height: 432px; }
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--landcruiser { height: 315px; }
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--4runner,
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--wrangler,
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--swift { height: 460px; }
/* Land Cruiser's desktop image has its own raised crop; align grading with it. */
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--landcruiser {
  top: -210px; bottom: auto; height: 977px;
}
/* DESKTOP: darker lower edge and upper-left vignette faithfully modeled after references. */
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--4runner {
  background:
    radial-gradient(ellipse 85% 45% at 0% 0%, rgba(0,0,0,.43) 0%, rgba(0,0,0,.25) 35%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.03) 0%, rgba(0,0,0,.17) 20%, rgba(0,0,0,.33) 40%, rgba(0,0,0,.52) 60%, rgba(0,0,0,.75) 80%, rgba(0,0,0,.92) 100%);
}
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--wrangler {
  background:
    radial-gradient(ellipse 87% 48% at 0% 0%, rgba(0,0,0,.45) 0%, rgba(0,0,0,.27) 37%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.21) 0%, rgba(0,0,0,.20) 20%, rgba(0,0,0,.29) 40%, rgba(0,0,0,.49) 60%, rgba(0,0,0,.75) 80%, rgba(0,0,0,.92) 100%);
}
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--landcruiser {
  background:
    radial-gradient(ellipse 88% 47% at 0% 0%, rgba(0,0,0,.40) 0%, rgba(0,0,0,.25) 40%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.30) 22%, rgba(0,0,0,.39) 42%, rgba(0,0,0,.54) 60%, rgba(0,0,0,.73) 80%, rgba(0,0,0,.92) 100%);
}
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--jimny {
  background:
    radial-gradient(ellipse 85% 44% at 0% 0%, rgba(0,0,0,.43) 0%, rgba(0,0,0,.25) 40%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 20%, rgba(0,0,0,.34) 40%, rgba(0,0,0,.51) 60%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.92) 100%);
}
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--swift {
  background:
    radial-gradient(ellipse 83% 45% at 0% 0%, rgba(0,0,0,.39) 0%, rgba(0,0,0,.24) 38%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.03) 0%, rgba(0,0,0,.17) 20%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.53) 60%, rgba(0,0,0,.75) 80%, rgba(0,0,0,.92) 100%);
}
/* MOBILE: darker top vignette + controlled transition into black below the vehicle.
 * Existing section's black fade is kept to preserve text contrast on small screens.
 */
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--wrangler {
  background:
    radial-gradient(ellipse 100% 46% at 0% 0%, rgba(0,0,0,.27), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.43) 0%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.27) 60%, rgba(0,0,0,.57) 89%, rgba(0,0,0,.74) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--4runner {
  background:
    radial-gradient(ellipse 100% 46% at 0% 0%, rgba(0,0,0,.25), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.10) 30%, rgba(0,0,0,.43) 60%, rgba(0,0,0,.82) 90%, rgba(0,0,0,.96) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--landcruiser {
  background:
    radial-gradient(ellipse 100% 48% at 0% 0%, rgba(0,0,0,.32), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.47) 0%, rgba(0,0,0,.25) 43%, rgba(0,0,0,.19) 75%, rgba(0,0,0,.38) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--jimny {
  background:
    radial-gradient(ellipse 110% 60% at 0% 0%, rgba(0,0,0,.29), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.67) 0%, rgba(0,0,0,.52) 30%, rgba(0,0,0,.27) 60%, rgba(0,0,0,.28) 88%, rgba(0,0,0,.38) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--swift {
  background:
    radial-gradient(ellipse 100% 48% at 0% 0%, rgba(0,0,0,.27), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.44) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.43) 60%, rgba(0,0,0,.82) 90%, rgba(0,0,0,.97) 100%);
}

/* ICONIC 2026-11-12: corrections after real iPhone / desktop screenshots.
   The photographs remain the original light versions, shaded non-destructively with CSS. */

/* Mobile Jimny: shift the car upward ~46px, keeping the picture's lower edge
   exactly where it was; avoid a gap between photo and the existing fade. */
@media (max-width: 620px) {
  .jm-mobile [data-jm-section="m1-0"] > img[src*="jimny-mobile"] {
    top: -46px !important;
    height: 478px !important;
    object-position: 50% 0% !important;
  }
  .im-hero-reference-overlay--mobile.im-hero-reference-overlay--jimny {
    top: -46px;
    height: 478px;
  }
}

/* Swift: maintain the white body's shape, but give white headlines a consistent
   dark backing, especially over the bonnet, wheel, and front-door area. */
.im-hero-reference-overlay--desktop.im-hero-reference-overlay--swift {
  background:
    linear-gradient(90deg, rgba(0,0,0,.47) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.13) 75%, rgba(0,0,0,.04) 100%),
    radial-gradient(ellipse 85% 50% at 0% 0%, rgba(0,0,0,.34) 0%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.36) 20%, rgba(0,0,0,.51) 40%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.83) 80%, rgba(0,0,0,.96) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--swift {
  background:
    linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.08) 100%),
    radial-gradient(ellipse 95% 50% at 0% 0%, rgba(0,0,0,.21), transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.24) 24%, rgba(0,0,0,.47) 49%, rgba(0,0,0,.70) 74%, rgba(0,0,0,.96) 100%);
}

/* Other mobile model headings also cross the bodywork. Add local left contrast,
   without shifting vehicles or altering the established type sizes. */
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--wrangler {
  background:
    linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,.13) 76%, transparent),
    linear-gradient(to bottom, rgba(0,0,0,.36) 0%, rgba(0,0,0,.18) 32%, rgba(0,0,0,.40) 57%, rgba(0,0,0,.76) 88%, rgba(0,0,0,.94) 100%);
}
.im-hero-reference-overlay--mobile.im-hero-reference-overlay--4runner {
  background:
    linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.14) 78%, transparent),
    linear-gradient(to bottom, rgba(0,0,0,.41) 0%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.52) 57%, rgba(0,0,0,.85) 88%, rgba(0,0,0,.97) 100%);
}

/* Desktop hero-system.css is loaded after model CSS and forces its generic
   gradient with !important; Swift must explicitly win that cascade. */
@media (min-width: 981px) {
  .swift-d section[data-sw-section="d-hero"] > div.im-hero-reference-overlay.im-hero-reference-overlay--desktop.im-hero-reference-overlay--swift {
    background:
      linear-gradient(90deg, rgba(0,0,0,.47) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.13) 75%, rgba(0,0,0,.04) 100%),
      radial-gradient(ellipse 85% 50% at 0% 0%, rgba(0,0,0,.34) 0%, transparent 100%),
      linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.36) 20%, rgba(0,0,0,.51) 40%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.83) 80%, rgba(0,0,0,.96) 100%) !important;
  }
}
