/* Keep the complete photographs and give both model slides one clear hierarchy. */
.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) {
  --model-bottom: 0px;
  --model-scene: none;
  background: #273038;
  isolation: isolate;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background: var(--model-scene) center / 100% 100% no-repeat;
  filter: none;
  transform: none;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55)::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, #07121b80, #07121b20 36%, transparent 56%),
              linear-gradient(0deg, #07121b55, transparent 24%);
  pointer-events: none;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) :is(.hero-image, .hero-x55-car) {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 16 / 9;
  transform: none;
  mask-image: linear-gradient(transparent, #000 12%);
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy {
  position: absolute;
  z-index: 3;
  inset: clamp(108px, 13svh, 150px) 8% auto auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(430px, 38%);
  padding: 0;
  margin: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  text-align: right;
  direction: rtl;
  pointer-events: none;
}

.hero.home-hero .hero-slide.hero-x55 .hero-copy {
  right: auto;
  left: 6%;
  width: min(370px, 35%);
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy :is(h2, p) {
  padding: 0;
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 5px #07121b66;
  text-align: inherit;
  white-space: normal;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy h2 {
  display: block;
  width: auto;
  max-width: 100%;
  height: 64px;
  line-height: 1;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .wordmark-crop {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  aspect-ratio: auto;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .wordmark-crop img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 4px #07121b44);
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy > p {
  display: block;
  flex: none;
  width: 100%;
  margin-top: 16px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy > .baic-starting-price {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .baic-starting-price bdi {
  font-weight: 600;
  white-space: nowrap;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 11px 20px;
  background: #ffffff12;
  border: 1px solid #ffffffb3;
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-text-stroke: 0;
  text-shadow: none;
  pointer-events: auto;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill:first-child {
  background: #fff;
  border-color: #fff;
  color: #182b3b;
  font-weight: 600;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill:hover {
  background: #fff;
  color: #182b3b;
}

.hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-page:has(.hero-x7.active, .hero-x55.active) .site-header:not(:is(.scrolled, .open, .mega-open, .about-open)) {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
  background: transparent;
}

.home-page:has(.hero-x7.active, .hero-x55.active) .site-header:not(:is(.scrolled, .open, .mega-open, .about-open)) :is(nav > a, .nav-link) {
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 3px #10243855;
}

.hero.home-hero:has(.hero-x7.active, .hero-x55.active) .hero-controls {
  bottom: calc(var(--model-bottom, 0px) + 18px);
  gap: 0;
  padding: 3px 5px;
  border: 1px solid #ffffff66;
  border-radius: 28px;
  background: #183047a6;
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero.home-hero:has(.hero-x7.active, .hero-x55.active) .hero-controls .hero-pagination {
  gap: 0;
  height: 38px;
}

.hero.home-hero:has(.hero-x7.active, .hero-x55.active) .hero-controls .hero-pagination button {
  width: 54px;
  height: 36px;
  color: #fff;
  font-size: 13px;
}

.hero.home-hero:has(.hero-x7.active, .hero-x55.active) .hero-controls .hero-pagination button.active {
  background: #fff;
  color: #182b3b;
}

.hero.home-hero:has(.hero-x7.active, .hero-x55.active) .hero-controls :is(.hero-arrow, .hero-pause) {
  width: 34px;
  height: 38px;
  color: #fff;
}

@media (max-width: 900px) {
  .hero.home-hero:has(.hero-x7.active, .hero-x55.active) {
    --model-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) {
    background: #29323a;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55)::before {
    bottom: 25%;
    background-size: auto 270%;
    mask-image: linear-gradient(#000 88%, transparent);
    background-position: left top;
  }

  .hero.home-hero .hero-slide.hero-x55 {
    background: #373636;
  }

  .hero.home-hero .hero-slide.hero-x55::before {
    background-size: auto 215%;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55)::after {
    background: linear-gradient(180deg, #07121b7a, #07121b44 35%, transparent 65%),
                linear-gradient(0deg, #07121b55, transparent 27%);
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) :is(.hero-image, .hero-x55-car) {
    inset: auto auto calc(var(--family-bottom) + 120px) -10%;
    width: 140%;
    height: auto;
    mask-image: linear-gradient(transparent, #000 18%, #000 94%, transparent);
  }

  .hero.home-hero .hero-slide.hero-x55 .hero-x55-car {
    width: 135%;
    left: -17.5%;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy {
    inset: 104px 24px auto;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy h2 {
    height: 54px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy > p {
    margin-top: 16px;
    font-size: 19px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy > .baic-starting-price {
    margin-top: 10px;
    font-size: 19px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-actions {
    justify-content: center;
    margin-top: 18px;
    gap: 10px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill {
    padding: 11px 18px;
    font-size: 15px;
  }
}

@media (max-width: 359px) {
  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy {
    right: 16px;
    left: 16px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy .hero-actions .pill {
    min-width: 206px;
  }
}

@media (max-height: 760px) and (max-width: 599px) {
  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) :is(.hero-image, .hero-x55-car) {
    bottom: calc(var(--family-bottom) + 100px);
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy {
    top: 82px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy h2 {
    height: 44px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-copy > p {
    margin-top: 12px;
    font-size: 17px;
  }

  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) .hero-actions {
    margin-top: 14px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hero.home-hero .hero-slide:is(.hero-x7, .hero-x55) :is(.hero-image, .hero-x55-car) {
    width: 100%;
    left: 0;
  }
}
