html[data-softail-product] #main #softail-banner {
  --banner-shade: linear-gradient(90deg, #090a0ae0, #090a0a91 28%, transparent 55%);
  --copy-column: 1;
  --copy-justify: start;
  --header-height: 106px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  min-height: calc(100svh - var(--header-height));
  height: auto;
  gap: 0;
  padding-inline: var(--banner-pad, var(--model-pad));
  background: #151515;
}

html[data-softail-product] #main #softail-banner[data-copy-side="right"] {
  --banner-shade: linear-gradient(270deg, #090a0ae0, #090a0a91 28%, transparent 55%);
  --copy-column: 2;
  --copy-justify: end;
}

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

html[data-softail-product] #main #softail-banner > .hero-copy {
  grid-column: var(--copy-column);
  grid-row: 1;
  align-self: center;
  justify-self: var(--copy-justify);
  width: min(100%, 480px);
  padding: 34px 0;
  background: transparent;
  color: white;
  text-shadow: 0 2px 10px #000a;
}

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

html[data-softail-product] #main #softail-banner .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 12px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

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

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

@media (min-width: 721px) and (orientation: landscape), (min-width: 1001px) {
  html[data-softail-product] #main #softail-banner .sf-hero-photo {
    container-type: size;
  }

  html[data-softail-product] #main #softail-banner .sf-hero-photo img {
    --cover-height: max(100cqh, calc(100cqw / var(--photo-aspect)));
    /* Match the right side of the bike to the left copy gutter where the photo permits. */
    --subject-height: calc((100cqw - var(--banner-pad)) / var(--subject-edge));
    --scene-height: max(var(--cover-height), min(110cqh, var(--subject-height)));
    --scene-width: calc(var(--scene-height) * var(--photo-aspect));
    --scene-left: clamp(calc(100cqw - var(--scene-width)), calc(100cqw - var(--scene-height) * var(--subject-edge) - var(--banner-pad)), 0px);
    position: absolute;
    left: var(--scene-left);
    top: calc((100cqh - var(--scene-height)) / 2);
    width: var(--scene-width);
    height: var(--scene-height);
    max-width: none;
    object-position: center;
  }
}

html[data-softail-product] #main #overview .overview-top > div > p {
  margin-block: 18px 24px;
  max-width: 46ch;
}

html[data-softail-product] #main .softail-fitment-group + .softail-fitment-group {
  margin-top: clamp(22px, 3vw, 36px);
}

html[data-softail-product] #main .softail-fitment-group h3 {
  margin-bottom: 16px;
}

html[data-softail-product] #main .softail-fitment-group dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .7fr) minmax(0, 1.3fr);
  gap: 10px 20px;
  padding: 14px 0;
  border-top: 1px solid currentColor;
  border-top-color: #ffffff30;
}

.softail-installation {
  margin: 0;
  width: 100%;
  max-width: calc(.91 * var(--sf-native-width) / var(--sf-pixel-ratio, 1));
}

html[data-softail-product] #main .softail-installation img {
  aspect-ratio: auto;
  display: block;
}

.softail-installation figcaption {
  margin-top: 8px;
  color: var(--body-ink);
}

#sf-gallery[data-installed-view] {
  width: fit-content;
  max-width: 98vw;
}

#sf-gallery[data-installed-view] .sf-gallery-stage {
  grid-template-columns: minmax(0, 1fr);
}

#sf-gallery[data-installed-view] .sf-gallery-stage [hidden] {
  display: none;
}

#sf-gallery[data-installed-view] .sf-gallery-stage #sf-gallery-image {
  justify-self: center;
  width: auto;
  height: auto;
  max-width: min(100%, calc(var(--sf-native-width) / var(--sf-pixel-ratio, 1)));
  max-height: min(79svh, calc(100svh - 140px));
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 580px) {
  #sf-gallery[data-installed-view] {
    width: 100%;
    max-width: 100vw;
    padding: 12px 6px;
  }
}

html[data-softail-product] #main #components .part-card {
  scroll-margin-top: 120px;
}

html[data-softail-product] #main #components [data-add] {
  min-height: 32px;
}

html[data-softail-product] #components .cvo-part-count {
  flex: none;
  margin: 0;
  padding-bottom: 5px;
  color: #6a6c67;
  font-size: 13px;
  line-height: 1.65;
  white-space: nowrap;
}

html[data-softail-product] #components .cvo-more-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  scroll-margin-top: 120px;
}

html[data-softail-product] #components .cvo-outline-button,
html[data-softail-product] #components .cvo-more-row .cvo-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  background: transparent;
  color: #20211f;
  border-radius: 0;
  text-decoration: none;
}

html[data-softail-product] #components .cvo-outline-button {
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid #20211f80;
  font-size: 14px;
  line-height: 1.5;
}

html[data-softail-product] #components .cvo-outline-button[hidden] { display: none; }
html[data-softail-product] #components .cvo-outline-button:hover { background: #deddd6; }

html[data-softail-product] #components .cvo-more-row .cvo-link {
  padding: 12px 0;
  border-bottom: 1px solid #20211f60;
}

html[data-softail-product] #components .cvo-more-row .cvo-link:hover { opacity: .65; }

@media (max-width: 1000px) {
  html[data-softail-product] #components .cvo-part-count { display: none; }
}

@media (max-width: 640px) {
  html[data-softail-product] #components .cvo-more-row {
    margin-top: 30px;
    gap: 20px;
  }

  html[data-softail-product] #components .cvo-outline-button {
    width: 100%;
    padding-inline: 18px;
  }
}

html[data-softail-product] #main .livery-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-softail-product] #main .livery-photo {
  aspect-ratio: 7 / 5;
}

html[data-softail-product] #main .livery-card h3 {
  margin-block: 12px 8px;
}

html[data-softail-product] #main .livery-card .text-link {
  margin-top: 10px;
}

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

html[data-softail-product] #sf-part-photo-options[hidden] {
  display: none;
}

html[data-softail-product] #quote-section .front-photo img {
  object-position: var(--headlight-position, center);
}

@media (min-width: 721px) {
  html[data-softail-product] #main .livery-grid[data-cards="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  html[data-softail-product] #main #softail-banner {
    --header-height: 78px;
  }
}

@media (max-width: 720px), (max-width: 1000px) and (orientation: portrait) {
  html[data-softail-product] #main #softail-banner,
  html[data-softail-product] #main #softail-banner[data-copy-side="right"] {
    --banner-shade: linear-gradient(180deg, #090a0ae8, #090a0a99 28%, transparent 57%);
    --copy-column: 1;
    --copy-justify: start;
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-softail-product] #main #softail-banner > .hero-copy {
    align-self: start;
    padding: clamp(16px, 4svh, 32px) 0 10px;
  }

  html[data-softail-product] #main #softail-banner[data-mobile-copy="bottom"] {
    --banner-shade: linear-gradient(0deg, #090a0aef, #090a0aad 23%, transparent 53%);
  }

  html[data-softail-product] #main #softail-banner[data-mobile-copy="bottom"] > .hero-copy {
    align-self: end;
    padding: 10px 0 clamp(54px, 9svh, 82px);
  }

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

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

  html[data-softail-product] #main .livery-grid[data-cards] {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-softail-product] #main .softail-fitment-group dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
