html[data-yamaha-scooter] #main #product-banner {
  --scooter-header: 106px;
  --scooter-shade: linear-gradient(90deg, #090a0ade, #090a0a8a 30%, transparent 52%);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, min(37%, 490px)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: calc(100svh - var(--scooter-header));
  height: auto;
  padding: 0 var(--banner-pad);
  background: #141615;
}

html[data-yamaha-scooter] #main #product-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--scooter-shade);
  pointer-events: none;
}

html[data-yamaha-scooter] #main #product-banner > .hero-copy {
  z-index: 2;
  position: relative;
  width: 100%;
  grid-area: 1 / 1;
  max-width: 490px;
  align-self: center;
  padding: 30px 0;
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 12px #080a0a96;
}

html[data-yamaha-scooter] #main .model-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html[data-yamaha-scooter] #main #product-banner :is(h1, h1 span, p, .text-link) {
  color: #fff;
}

html[data-yamaha-scooter] #main #product-banner .text-link {
  border-color: currentColor;
}

html[data-yamaha-scooter] #main #product-banner .sf-hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  grid-area: auto;
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}

html[data-yamaha-scooter] #main #product-banner .sf-hero-photo :is(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  mask-image: none;
}

html[data-yamaha-scooter] #main #product-banner .sf-hero-photo img {
  object-position: var(--scooter-desktop-focus, center);
}

html[data-model-collection="tmax-560"] #main #product-banner {
  --scooter-shade: linear-gradient(270deg, #0a0b0cdb 0%, #0a0b0c73 31%, transparent 56%);
  grid-template-columns: minmax(0, 1fr) minmax(0, min(37%, 490px));
}

html[data-model-collection="tmax-560"] #main #product-banner > .hero-copy {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  max-width: 400px;
  margin-top: clamp(50px, 13svh, 140px);
}

html[data-yamaha-scooter] #main .livery-grid[data-cards="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-yamaha-scooter] #main .livery-grid:is([data-cards="3"], [data-cards="6"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-yamaha-scooter] #main .livery-photo {
  aspect-ratio: 180 / 141;
}

html[data-model-collection="tmax-560"] #main .livery-photo {
  aspect-ratio: 20 / 21;
}

html[data-model-collection="tmax-560"] #main [data-livery="fluorescent-yellow-black-blue"] .livery-photo img {
  object-position: center 34%;
}

html[data-yamaha-scooter] #main .part-card {
  scroll-margin-top: 120px;
}

html[data-yamaha-scooter] #main .faq summary h3 {
  font-weight: 400;
}

html[data-yamaha-scooter] #quote-section .front-photo img {
  object-position: center;
}

html[data-model-collection="tmax-560"] #quote-section .front-photo img {
  object-position: center 16%;
}

html[data-yamaha-scooter] #sf-part-photo-options {
  padding-bottom: 14px;
}

html[data-yamaha-scooter] #installed-detail {
  scroll-margin-top: 90px;
}

html[data-yamaha-scooter] #sf-gallery[data-installed-view] {
  width: min(1200px, calc(100vw - 24px));
}

html[data-yamaha-scooter] #sf-gallery[data-installed-view] .sf-gallery-stage img {
  height: min(68svh, 800px);
  min-height: 0;
  object-fit: contain;
}

@media (min-width: 1024px) {
  html[data-yamaha-scooter] #main #product-banner {
    min-height: max(calc(100svh - var(--scooter-header)), 45vw);
  }
}

@media (max-width: 720px), (max-width: 1000px) and (orientation: portrait) {
  html[data-yamaha-scooter] #main #product-banner,
  html[data-model-collection="tmax-560"] #main #product-banner {
    --scooter-header: 78px;
    --scooter-shade: linear-gradient(180deg, #080909e8 0%, #08090992 25%, transparent 58%);
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-yamaha-scooter] #main #product-banner > .hero-copy,
  html[data-model-collection="tmax-560"] #main #product-banner > .hero-copy {
    grid-column: 1;
    justify-self: start;
    margin-top: 0;
    align-self: start;
    padding: clamp(18px, 3vh, 32px) 0 12px;
    max-width: 525px;
  }

  html[data-yamaha-scooter] #main #product-banner .sf-hero-photo img {
    object-position: var(--scooter-mobile-focus, center);
  }

  html[data-yamaha-scooter] #main #product-banner .hero-copy h1 {
    margin: 7px 0 8px;
  }

  html[data-yamaha-scooter] #main #product-banner .hero-actions {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  html[data-yamaha-scooter] #main .livery-grid[data-cards] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) and (orientation: portrait) {
  html[data-model-collection="tmax-560"][data-yamaha-scooter] #main #product-banner.hero {
    min-height: min(calc(100svh - var(--scooter-header)), 165vw);
  }
}
