.hero.hero-with-gallery.wrap {
  position: relative;
  isolation: isolate;
  width: min(1200px, calc(100% - clamp(36px, 7.2vw, 116px)));
  min-block-size: clamp(510px, 44vw, 580px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-block: clamp(24px, 3.3vw, 42px) 34px;
  padding: 28px clamp(26px, 4vw, 58px);
  border-radius: clamp(24px, 2.5vw, 32px);
  background: #182320;
  color: #fff;
}

.hero-gallery-background, .hero-gallery-background::after, .hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gallery-background {
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  background: #182320;
}
.hero-gallery-background::after {
  z-index: 3;
  content: "";
  background: linear-gradient(90deg, rgb(14 20 22 / .93), rgb(14 20 22 / .76) 34%, rgb(14 20 22 / .12) 62%, rgb(14 20 22 / .36)),
    linear-gradient(0deg, rgb(14 20 22 / .42), transparent 35%);
}
.hero-gallery-background .hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-x, 70%) var(--photo-y, 24%);
  opacity: 0;
}
.hero-background[data-previous] { z-index: 1; opacity: 1; }
.hero-background[data-current] { z-index: 2; opacity: 1; }
.hero-background.city {
  --photo-y: 19%;
  --portrait-x: 67%;
}
.hero-background.market { --photo-y: 15%; --portrait-x: 72%; }
.hero-background.window-light { --photo-y: 23%; --portrait-x: 73%; }

.hero-gallery-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(15px, 2.5vw, 32px);
  min-inline-size: 0;
}
.hero-gallery .hero-message { max-width: 410px; }
.hero-gallery .hero-message h1 {
  color: inherit;
  font-size: clamp(2.65rem, 4.1vw, 3.85rem);
}
html[lang^="zh"] .hero-gallery .hero-message h1 {
  font-size: clamp(1.95rem, 3.35vw, 2.65rem);
}
.hero-gallery .hero-message h1 span { color: #f8dce7; }
.hero-gallery .hero-copy,
.hero-gallery .web-start-hint,
.hero-gallery .web-entry-note { color: #f5eef1; }
.hero-gallery .web-entry-actions .primary { border-color: #d884a4; }
.hero-gallery .hero-sample-link,
.hero-gallery .hero-app-link { color: #fff; }
.hero-gallery .hero-app-link { min-block-size: 40px; }
.hero-gallery-content a:focus-visible,
.hero-gallery-content button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.hero-gallery-control { align-self: start; }
.hero-style-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  padding-inline-end: 12px;
  font-size: .82rem;
  line-height: 1.4;
}
.hero-gallery .hero-style-caption .web-locale-zh { display: none; }
html[lang^="zh"] .hero-gallery .hero-style-caption .web-locale-zh { display: inline; }
.hero-gallery-buttons, .hero-gallery-dots {
  display: flex;
  align-items: center;
}
.hero-gallery-buttons {
  margin-block-start: 7px;
  padding: 0 3px;
  border: 1px solid rgb(255 255 255 / .52);
  border-radius: 999px;
  background: rgb(17 23 30 / .46);
}
.hero-gallery-toggle, .hero-gallery-dot {
  display: grid;
  place-items: center;
  inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.hero-gallery-toggle { font-size: .95rem; }
.hero-gallery-dot::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.hero-gallery-dot[aria-pressed="true"]::before {
  inline-size: 12px;
  block-size: 12px;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-background[data-current] { transition: opacity 650ms ease; }
}
@media (min-width: 1440px) {
  .hero.hero-with-gallery.wrap,
  header .nav.wrap {
    width: min(1760px, 84vw);
  }
  .hero.hero-with-gallery.wrap {
    padding-inline: clamp(58px, 3.65vw, 70px);
  }
}
@media (max-width: 767px) {
  .hero.hero-with-gallery.wrap {
    max-inline-size: 510px;
    min-block-size: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-block: 20px 28px;
    padding: 0;
  }
  .hero-gallery-background { grid-area: 1 / 1 / 2 / 2; }
  .hero-gallery-background .hero-background {
    inset-inline-start: 0;
    width: 100%;
    object-position: var(--portrait-x, 70%) 24%;
  }
  .hero-gallery-background::after {
    background: linear-gradient(0deg, rgb(14 20 22 / .96), rgb(14 20 22 / .85) 36%, rgb(14 20 22 / .42) 71%, transparent 100%);
  }
  .hero-gallery-content {
    grid-area: 1 / 1;
    min-block-size: 440px;
    justify-content: end;
    padding: 98px clamp(18px, 5vw, 26px) 15px;
  }
  .hero-gallery .hero-message h1 { font-size: clamp(2.25rem, 8.9vw, 3.5rem); }
  html[lang^="zh"] .hero-gallery .hero-message h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.3rem);
  }
  .hero-gallery .hero-copy { max-width: 36ch; }
  .hero-gallery .web-entry-actions { column-gap: 12px; }
}
