html[data-yamaha-product][data-model-collection] #main :is(section.hero, #banner.hero) {
  grid-template-columns: minmax(0, min(34%, 455px)) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: clamp(16px, 3vw, 64px);
  align-content: center;
  padding: 0 var(--banner-pad);
  background: #000;
}

html[data-yamaha-product] #main section.hero > .hero-copy {
  width: 100%;
  padding: 36px 0;
  background: transparent;
}

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

html[data-yamaha-product] #main .sf-hero-photo {
  align-self: center;
  width: 100%;
  margin: 0;
}

html[data-yamaha-product] #main .sf-hero-photo img {
  display: block;
  width: 100%;
  max-height: 72svh;
  mask-image: none;
  object-fit: contain;
  object-position: right center;
}

html[data-yamaha-product] #main .hero-actions .text-link {
  border-bottom: 1px solid #fffb;
  color: #fff;
  min-height: 42px;
  align-content: center;
  text-decoration: none;
}

html[data-yamaha-product] #main #liveries .filters {
  flex-wrap: wrap;
  margin-bottom: 24px;
}

html[data-yamaha-product] #main .livery-photo {
  aspect-ratio: 1080 / 960;
}

@media (min-width: 900px) {
  html[data-yamaha-product] #main .livery-grid:has(> :nth-child(4 of .livery-card:not([hidden]))):not(:has(> :nth-child(5 of .livery-card:not([hidden])))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-yamaha-product] #main .livery-grid:has(> :nth-child(6 of .livery-card:not([hidden]))):not(:has(> :nth-child(7 of .livery-card:not([hidden])))) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html[data-yamaha-product] #main #components .yamaha-variants {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

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

@media (max-width: 899px) {
  html[data-yamaha-product][data-model-collection] #main :is(section.hero, #banner.hero) {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    padding: 32px var(--banner-pad) 32px;
  }

  html[data-yamaha-product] #main section.hero > .hero-copy {
    grid-row: 1;
    padding: 0;
    max-width: 540px;
  }

  html[data-yamaha-product] #main .sf-hero-photo {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 720px);
    justify-self: end;
    margin-block-start: 24px;
  }

  html[data-yamaha-product] #main .sf-hero-photo img {
    max-height: 52svh;
  }

}
