/* Gallery Phase 2: editorial opening only; shared Header/Footer remain untouched. */
/* Hide immediately from hit testing and keyboard navigation; retain layout geometry. */
body #whatsapp-float.is-gallery-control-overlapping {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s;
}
.xb-gallery-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 4.5rem) 5% clamp(1.5rem, 2.5vw, 3rem); }
.xb-gallery-intro > div { min-width: 0; }
.xb-gallery-brand { margin: 0 0 .25rem; color: var(--xb-accent-gold); font-size: clamp(.75rem, 1.7vw, 1.5rem); letter-spacing: .2em; }
.xb-new-web .xb-gallery-title { margin: 0; font-size: clamp(3rem, 10vw, 11rem); line-height: 1; text-transform: uppercase; }
.xb-new-web .xb-gallery-accent { flex: 0 1 43%; min-width: 0; margin: 0 0 .15em; color: var(--xb-accent-gold); font-size: clamp(2.5rem, 6.4vw, 7rem); line-height: 1; }
.xb-gallery-accent::after { content: ""; display: block; width: 95%; height: clamp(4px, .1em, 9px); margin-top: .2em; background: var(--xb-accent-gold); clip-path: var(--xb-painted-underline); }
.xb-new-web:lang(zh) .xb-gallery-accent { font-family: var(--xb-font-script), "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.4; }
.xb-gallery-carousel { position: relative; isolation: isolate; width: 100%; aspect-ratio: 20 / 9; background: #000; touch-action: pan-y pinch-zoom; }
.xb-gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.xb-gallery-slide.is-active { opacity: 1; }
.xb-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: clamp(44px, 5vw, 72px); height: clamp(44px, 5vw, 72px); padding: 4px; border: 0; border-radius: 0; background: transparent; color: var(--xb-accent-gold); cursor: pointer; }
.xb-gallery-arrow[hidden] { display: none; }
.xb-gallery-arrow svg { width: clamp(26px, 4vw, 64px); height: auto; filter: drop-shadow(0 1px 1px #000) drop-shadow(0 -1px 1px #000); }
.xb-gallery-previous { left: clamp(8px, 2vw, 40px); }
.xb-gallery-next { right: clamp(8px, 2vw, 40px); }
.xb-gallery-arrow:hover { color: #fff1ae; }
.xb-gallery-arrow:focus-visible { outline: 2px solid var(--xb-accent-gold); outline-offset: 2px; background: rgb(0 0 0 / 65%); }
.xb-gallery-carousel:focus-visible { outline: 2px solid var(--xb-accent-gold); outline-offset: -2px; }
.xb-gallery-separator { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2.5vw, 2.5rem); padding: clamp(1.25rem, 2.5vw, 2.75rem) 5%; color: var(--xb-accent-gold); }
.xb-gallery-separator::before, .xb-gallery-separator::after { content: ""; flex: 0 1 7.5rem; height: 1px; background: currentColor; }
.xb-gallery-separator p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4em .65em; min-width: 0; margin: 0; text-align: center; font-size: clamp(.625rem, 1.5vw, 1.25rem); letter-spacing: .14em; text-transform: uppercase; }
.xb-gallery-separator p span { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .xb-gallery-intro { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 5% 1.75rem; }
  .xb-new-web .xb-gallery-title { font-size: clamp(3rem, 14vw, 6.5rem); }
  .xb-new-web .xb-gallery-accent { flex-basis: auto; max-width: 100%; font-size: clamp(2.5rem, 9vw, 4rem); }
  .xb-new-web:lang(zh) .xb-gallery-accent { font-size: 1.5rem; }
  .xb-gallery-separator::before, .xb-gallery-separator::after { flex-basis: 1.5rem; }
}
/* Stop at the approved smaller-desktop scale; preserve the uncropped 20:9 frame.
 * Black side space remains part of the page, without a card surface or border. */
@media (min-width: 1280px) {
  .xb-gallery-intro, .xb-gallery-carousel, .xb-gallery-separator { box-sizing: border-box; max-width: 80rem; margin-inline: auto; }
  .xb-gallery-intro { padding: 3.2rem 4rem 2rem; }
  .xb-gallery-brand { font-size: 1.36rem; }
  .xb-new-web .xb-gallery-title { font-size: 8rem; }
  .xb-new-web .xb-gallery-accent { font-size: 5.12rem; }
  .xb-new-web:lang(zh) .xb-gallery-accent { font-size: 2.4rem; }
  .xb-gallery-arrow { width: 4rem; height: 4rem; }
  .xb-gallery-arrow svg { width: 3.2rem; }
  .xb-gallery-previous { left: 1.6rem; }
  .xb-gallery-next { right: 1.6rem; }
  .xb-gallery-separator { gap: 2rem; padding: 2rem 4rem; }
  .xb-gallery-separator p { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xb-gallery-slide { transition: none; }
}

/* Static editorial middle: the portrait anchors the offset right column. */
.xb-gallery-journey { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 60fr); grid-template-rows: auto auto 1fr; gap: 1.5rem clamp(1.25rem, 2.5vw, 2rem); max-width: 80rem; margin-inline: auto; padding: 0 clamp(1.25rem, 2.5vw, 2rem) clamp(2.5rem, 5vw, 4rem); }
.xb-new-web .xb-gallery-journey-title { grid-column: 2; grid-row: 1; align-self: end; margin: clamp(2rem, 4vw, 3.5rem) 0 0; color: #fff; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.1; }
.xb-gallery-journey-title::after { content: ""; display: block; width: clamp(2.5rem, 5.5vw, 4.25rem); height: 4px; margin-top: .2em; background: var(--xb-accent-gold); }
.xb-gallery-journey-portrait { grid-column: 1; grid-row: 1 / 4; display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
.xb-gallery-journey-wide { grid-column: 2; grid-row: 2; display: block; width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: contain; }
.xb-new-web .xb-gallery-journey-accent { grid-column: 2; grid-row: 3; justify-self: end; align-self: start; max-width: 100%; margin: 0 .35em 0 0; color: var(--xb-accent-gold); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.xb-gallery-journey-accent::after { content: ""; display: block; width: 85%; height: clamp(4px, .1em, 7px); margin: .15em 0 0 auto; background: var(--xb-accent-gold); clip-path: var(--xb-painted-underline); }
.xb-new-web:lang(zh) .xb-gallery-journey-accent { font-family: var(--xb-font-script), "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.4; }
@media (max-width: 899px) {
  .xb-gallery-journey { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: clamp(.75rem, 2vw, 1rem); max-width: 40rem; padding: 0 5% 2rem; }
  .xb-new-web .xb-gallery-journey-title { grid-column: 1; grid-row: 1; margin-top: .25rem; font-size: clamp(2.25rem, 6vw, 3rem); }
  .xb-gallery-journey-portrait { grid-column: 1; grid-row: 2; width: min(75%, 22rem); justify-self: start; aspect-ratio: 4 / 5; object-position: 50% 52%; }
  .xb-gallery-journey-wide { grid-column: 1; grid-row: 3; width: 85%; justify-self: end; }
  /* Follow the landscape's left edge, reserving room for the floating contact control. */
  .xb-new-web .xb-gallery-journey-accent { grid-column: 1; grid-row: 4; justify-self: start; margin: 0 0 0 15%; max-width: calc(85% - 4.5rem); font-size: clamp(2.25rem, 5.5vw, 2.75rem); }
  .xb-new-web:lang(zh) .xb-gallery-journey-accent { font-size: 1.5rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .xb-gallery-journey-portrait { width: min(62%, 22rem); }
  .xb-gallery-journey-wide { width: 76%; }
  .xb-new-web .xb-gallery-journey-accent { margin-left: 24%; max-width: calc(76% - 8rem); }
}

/* Sunset shares the Gallery carousel frame, controls and motion rules. */
.xb-gallery-sunset-intro { box-sizing: border-box; max-width: 80rem; margin-inline: auto; padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(1.25rem, 2.5vw, 2rem); }
.xb-gallery-sunset-label { margin: 0 0 .4rem; color: var(--xb-accent-gold); font-size: clamp(.75rem, 1.5vw, 1.25rem); letter-spacing: .18em; text-transform: uppercase; }
.xb-new-web .xb-gallery-sunset-title { margin: 0; color: #fff; font-size: clamp(2.25rem, 7vw, 5.5rem); line-height: 1.1; text-wrap: balance; }
@media (max-width: 767px) {
  .xb-gallery-sunset-intro { padding-right: 5.5rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .xb-gallery-sunset-intro { padding-right: 11rem; }
}
