/* Opt-in layout for generated showroom sections. Legacy content is untouched. */

/* Shared showroom typography: embedded in drafts by ModelSourceDraftFormatter. */

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) {
  font-family: var(--text-font-family, Arial, sans-serif);
  font-size: 16px !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) :is(h1, h2, h3, h4, h5, h6) {
  float: none !important;
  clear: both !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-family: var(--headings-font-family, Arial, sans-serif);
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) h1 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) h2 {
  font-size: clamp(22px, 2vw, 28px) !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) h3 {
  font-size: clamp(20px, 1.8vw, 24px) !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) :is(h4, h5, h6) {
  font-size: 18px !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) :is(h1, h2, h3, h4, h5, h6) :is(span, strong, em, b, i) {
  font-size: inherit !important;
  line-height: inherit !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) :is(p, li, dt, dd):not(:where([data-showroom-action], [data-showroom-action] *)) {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) p:not(:where([data-showroom-action], [data-showroom-action] *)) {
  float: none !important;
  margin-block: 0 16px !important;
}

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) [data-showroom-editorial-row="1"] {
  margin-bottom: 32px !important;
}

/* Plain full-width text modules need one box for spacing and reading width. */

.showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) .showroom-copy {
  --showroom-copy-gutter: 20px;
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: calc(var(--showroom-copy-width, 880px) + var(--showroom-copy-gutter) * 2) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 24px var(--showroom-copy-gutter) !important;
}

@media (min-width: 768px) {
  .showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) .showroom-copy {
    --showroom-copy-gutter: 40px;
  }
}

@media (min-width: 1600px) {
  .showroom-content:is([data-showroom-scope], [data-showroom-pipeline]) .showroom-copy {
    --showroom-copy-gutter: 80px;
  }
}

.showroom-content[data-showroom-scope] .content_module--adjacent-columns.adjacent-50-50 .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin-block: 0 !important;
  gap: 24px !important;
}

.showroom-content[data-showroom-scope] .content_module--adjacent-columns.adjacent-50-50 .row .content_module--text-column {
  width: 100% !important;
  min-width: 0;
  margin-block: 0 !important;
}

@media (min-width: 1024px) {
  .showroom-content[data-showroom-scope] .content_module--adjacent-columns.adjacent-50-50 .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* End shared showroom typography. */

.showroom-content:has(> .showroom-source-frame) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.showroom-source-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #fff;
}

.showroom-content[data-showroom-scope] {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

/* Source CSS supplies geometry. The host site's brand tokens supply styling. */

.showroom-content[data-showroom-scope][data-showroom-theme="1"] {
  color: inherit;
  background: transparent;
  font-family: var(--text-font-family, "Outfit", Arial, sans-serif);
  line-height: 1.5;
}

/* Keep the model description after removing manufacturer powertrain navigation. */

.showroom-content [data-showroom-layout="model-introduction"] .wl-modelindex-wrapper__container {
  display: block !important;
}

.showroom-content [data-showroom-layout="model-introduction"] .wl-modelindex-wrapper__container > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
  width: 100% !important;
}

.showroom-content [data-showroom-layout="model-introduction"] :is(.wl-modelindex-wrapper__modal, .wl-modelindex-wrapper__price) {
  min-width: 0;
  padding: 0 !important;
}

.showroom-content [data-showroom-layout="model-introduction"] .wl-modelindex-wrapper__modal h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.showroom-content [data-showroom-layout="model-introduction"] .wl-engin-info :is(h1, h2, h3, p) {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: .75rem;
}

@media (max-width: 700px) {
  .showroom-content [data-showroom-layout="model-introduction"] .wl-modelindex-wrapper__container > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.showroom-content[data-showroom-scope][data-showroom-theme="1"] *:not(:where([data-showroom-action], [data-showroom-action] *)),
.showroom-content[data-showroom-scope][data-showroom-theme="1"] *:not(:where([data-showroom-action], [data-showroom-action] *))::before,
.showroom-content[data-showroom-scope][data-showroom-theme="1"] *:not(:where([data-showroom-action], [data-showroom-action] *))::after {
  box-sizing: border-box;
}

.showroom-content[data-showroom-scope][data-showroom-theme="1"] :is(h1, h2, h3, h4, h5, h6):not(:where([data-showroom-media-overlay] *)) {
  color: var(--primary, #000);
  font-family: var(--headings-font-family, Arial, sans-serif);
}

.showroom-content[data-showroom-scope][data-showroom-theme="1"] :is(p, li, span, strong, em) {
  font-family: inherit;
}

.showroom-content[data-showroom-scope][data-showroom-theme="1"] a[href]:not([data-showroom-action]):not(:where([data-showroom-media-overlay] *)) {
  color: var(--secondary, #4dabc8);
}

/* Photo overlays retain source contrast; headings inherit the source text surface. */

.showroom-content:where([data-showroom-scope][data-showroom-theme="1"]) :where([data-showroom-media-overlay="1"]) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, em, a):not(:where([data-showroom-action], [data-showroom-action] *)) {
  color: inherit;
}

.showroom-content [data-showroom-media-overlay="1"] .hme-performance__features {
  list-style: none;
  padding-inline: 0;
}

/* Image heroes (Isuzu): keep copy in the image's row, with room to grow.
   Reset generic .content/.wrapper host geometry only inside this component. */

.showroom-content[data-showroom-scope] .component--hero-block .content {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(1.5rem, 4vw, 4rem) !important;
  display: flex !important;
  align-items: center;
}

.showroom-content[data-showroom-scope] .component--hero-block .content > .wrapper {
  width: 100% !important;
  max-width: 1440px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

.showroom-content[data-showroom-scope] .component--hero-block .content__inner {
  float: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.showroom-content[data-showroom-scope] .component--hero-block .hero-content p {
  color: inherit !important;
}

.showroom-content[data-showroom-scope] .component--hero-block .hero-content img {
  max-width: 100%;
  height: auto !important;
}

.showroom-content[data-showroom-scope] .component--hero-block .component-background-image > :is(img, picture),
.showroom-content[data-showroom-scope] .component--hero-block .component-background-image > picture > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Older saved imports lack the overlay marker and its captured appearance. */

.showroom-content[data-showroom-scope] .component--hero-block:not([data-showroom-media-overlay]) .content.text-theme-dark {
  color: #fff;
}

.showroom-content[data-showroom-scope] .component--hero-block:not([data-showroom-media-overlay]) .filter--invert {
  filter: invert(1);
}

.showroom-content[data-showroom-scope] .component--hero-block:not([data-showroom-media-overlay]) .component-background-image.image-filter::after {
  background: linear-gradient(30deg, #050505 0%, #050505 5%, transparent 100%);
  opacity: .98;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .showroom-content[data-showroom-scope] .component--hero-block .hero-block-component--item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .showroom-content[data-showroom-scope] .component--hero-block .hero-block-component--item > :is(.component-background-image, .content) {
    grid-area: 1 / 1;
    align-self: stretch;
  }

  .showroom-content[data-showroom-scope] .component--hero-block.is-large .component-background-image {
    aspect-ratio: 50 / 21;
    min-height: 28rem !important;
    padding: 0 !important;
  }
}

@media (max-width: 1023.98px) {
  .showroom-content[data-showroom-scope] .component--hero-block .content__inner {
    max-width: 100% !important;
  }

  .showroom-content[data-showroom-scope] .component--hero-block:not([data-showroom-media-overlay]) .content.text-theme-dark {
    color: inherit;
    background: var(--showroom-source-light-color, #f3efeb);
  }

  .showroom-content[data-showroom-scope] .component--hero-block:not([data-showroom-media-overlay]) .filter--invert {
    filter: invert(0);
  }
}

/* Lists used as cards, specifications or slider tracks are not prose lists.
   Reset LI as well as UL: the destination's #second rule sets markers on LI. */

.showroom-content[data-showroom-scope] [data-showroom-list="layout"],
.showroom-content[data-showroom-scope] [data-showroom-list="layout"] > li {
  list-style: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

.showroom-content[data-showroom-scope] [data-showroom-list="layout"] > li::marker {
  content: "";
}

/* A static showroom exposes every captured slide without a horizontal scrollbar. */

.showroom-content[data-showroom-scope] [data-showroom-layout="carousel-slide"] {
  overflow-wrap: anywhere;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="carousel-slide"] > :is(img, picture),
.showroom-content[data-showroom-scope] [data-showroom-layout="carousel-slide"] > picture img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* Also match legacy captures that predate the Honda normalization markers. */

.showroom-content[data-showroom-scope] :is(.module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3),
.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) :is(.wrapper, .wrapperInner, .pdCol, .contentBlock, .cropper, .cropImg, .fs-img, .imgWrapper, .pdCopyContainer, .pdCallOut, .pdCalloutContent, .detailBlock) {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: none !important;
  overflow: visible !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) :is(.pdCol, .cropper, .cropImg, .imgWrapper, .pdCopyContainer, .pdCallOut, .pdCalloutContent, .contentBlock, .detailBlock) {
  margin: 0 !important;
  padding: 0 !important;
}

/* Imported icon fonts are absent: display these links without reserved diamond space. */

.showroom-content[data-showroom-scope] .iconCta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 !important;
  padding: 0 !important;
}

.showroom-content[data-showroom-scope] .iconCta > li,
.showroom-content[data-showroom-scope] .iconCta > li > a {
  display: block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.showroom-content[data-showroom-scope] .iconCta > li::before,
.showroom-content[data-showroom-scope] .iconCta > li::after {
  content: none !important;
  display: none !important;
}

.showroom-content[data-showroom-scope] .iconCta > li::marker {
  content: "";
}

/* Release measured Honda split columns and source crop offsets in our narrower column. */

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) .wrapperInner {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) .wrapperInner::after {
  display: none !important;
}

.showroom-content[data-showroom-scope] :is(.module.pdInlineCol, .module.pdTxtSingColMltiImg3) :is(.pdCallOutTop, .pdCallOutBot):not(:has(*)) {
  display: none !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) .wrapper {
  padding: 0 !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3):is(.pdInlineCol, .pdTxtSingColMltiImg3) .wrapperInner {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)) !important;
  align-items: start;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) :is(.sectionAlpha, .sectionBeta) {
  margin: 0 !important;
  padding: 0 !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) :is(h1, h2, h3, p) {
  float: none !important;
  width: auto !important;
  margin-block: 0 1rem !important;
}

.showroom-content[data-showroom-scope] :is([data-showroom-layout="honda-split"], .module.splitColorSections, .module.productHeader, .module.pdInlineCol, .module.pdTxtSingColMltiImg3) .cropImg img {
  display: block;
  object-fit: contain !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-gallery"] :is(.item, .image-container, .content) {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-gallery"] .content {
  padding: 1.25rem 0 !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-gallery"] :is(h2, p) {
  float: none !important;
  margin-block: 0 1rem !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-gallery"] img {
  width: 100% !important;
  height: auto !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  height: auto !important;
  min-height: 0 !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] > :is(.xl-tile-lite-media-wrapper, .xl-tile-lite-content-wraper, .gradient) {
  grid-area: 1 / 1;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] .xl-tile-lite-content-wraper {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  z-index: 2;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] .xl-tile-lite-content {
  position: relative !important;
  inset: auto !important;
  width: min(100%, 36rem) !important;
  height: auto !important;
  transform: none !important;
}

/* Original gradient geometry was gated on the source JavaScript module attribute. */

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] > .gradient {
  display: block !important;
  height: 100% !important;
  align-self: stretch !important;
  z-index: 1 !important;
  pointer-events: none;
  opacity: .67;
  background: linear-gradient(90deg, rgba(0, 0, 0, .9), transparent 75%) !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] > .xl-tile-lite-media-wrapper {
  z-index: 0 !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"].align-right > .gradient {
  background: linear-gradient(270deg, rgba(0, 0, 0, .9), transparent 75%) !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] :is(.xl-tile-lite-image, .hme-image, .hme-image__wrapper, .hme-image__wrapper img) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

@media (max-width: 800px) {
  /* Honda uses a separate text surface beneath these images on smaller screens. */

  .showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] {
    display: block !important;
  }

  .showroom-content[data-showroom-scope] [data-showroom-layout="honda-image-tile"] > .gradient {
    display: none !important;
  }
}

.showroom-content[data-showroom-scope] .tabular-module-content-inner[data-showroom-layout="tab-panel"] {
  margin-block: 2rem !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-tabs"] .two-col-layout {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)) !important;
  gap: 2rem !important;
}

.showroom-content[data-showroom-scope] [data-showroom-layout="honda-tabs"] :is(.image-column, .content-column, .image-column img) {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
}

/* Actions use .prettybutton / .prettybutton2 from the public site, including its responsive rules. */

.showroom-content [data-showroom-action="1"] {
  pointer-events: auto;
}

.showroom-content[data-showroom-scope][data-showroom-theme="1"] img,
.showroom-content[data-showroom-scope][data-showroom-theme="1"] video {
  max-width: 100%;
}

.showroom-section {
  --showroom-section-space: clamp(2.5rem, 5vw, 4.5rem);
  display: flow-root;
  margin-block: 0 var(--showroom-section-space);
  min-width: 0;
  width: 100%;
}

.showroom-section.showroom-spacing-compact {
  --showroom-section-space: clamp(1.5rem, 3vw, 2.5rem);
}

.showroom-section.showroom-spacing-spacious {
  --showroom-section-space: clamp(3.5rem, 7vw, 6rem);
}

.showroom-section.showroom-alignment-center {
  text-align: center;
}

.showroom-section.showroom-alignment-start {
  text-align: start;
}

.showroom-section.showroom-width-reading,
.showroom-section.showroom-width-wide,
.showroom-section.showroom-width-full {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.showroom-section.showroom-alignment-center {
  margin-inline: auto;
}

.showroom-section > :first-child,
.showroom-section .grid-element > :first-child {
  margin-top: 0;
}

.showroom-section > :last-child,
.showroom-section .grid-element > :last-child {
  margin-bottom: 0;
}

.showroom-section > p + p,
.showroom-section .grid-element > p + p {
  margin-top: 1em;
}

.showroom-section > :is(h2, h3, h4, h5, h6) {
  margin-bottom: 1rem;
}

.showroom-section.showroom-treatment-introduction > p {
  font-size: 1.125em;
  line-height: 1.6;
}

.showroom-section.showroom-treatment-introduction > h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
}

.showroom-section > .content-grid {
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 0;
}

.showroom-section > .content-grid > .grid-element {
  min-width: 0;
  padding: 0;
}

.showroom-section.showroom-grid-alignment-top > .content-grid > .grid-element.text {
  justify-content: flex-start;
}

.showroom-section.showroom-grid-alignment-middle > .content-grid > .grid-element.text {
  justify-content: center;
}

.showroom-section img, .showroom-section video {
  max-width: 100%;
  height: auto;
}

.showroom-section .grid-element > img {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

.showroom-section > .content-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showroom-section > .content-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showroom-section > .content-grid.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .showroom-section > .content-grid.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .showroom-section > .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Restore semantic list markers removed by legacy resets, within new sections only. */

.showroom-section ul.showroom-list {
  list-style: disc outside;
  padding-inline-start: 1.5em;
  margin-block: 1em;
}

.showroom-section ol.showroom-list {
  list-style: decimal outside;
  padding-inline-start: 1.5em;
  margin-block: 1em;
}

.showroom-section .showroom-list > li {
  display: list-item;
  padding: 0;
  margin-block: .35em;
}

/* Stacked media retains the source section's full-width vertical composition. */

.showroom-section > .showroom-stacked-media {
  width: 100%;
  margin-block: clamp(1.5rem, 3vw, 3rem);
}

.showroom-section > .showroom-stacked-media img,
.showroom-section > .showroom-stacked-media video {
  display: block;
  width: 100%;
  height: auto;
}

.showroom-content .showroom-media-placeholder {
  display: block;
  padding: 1.5rem;
  border: 1px dashed #8d949b;
  background: #f5f6f7;
  color: #454b52;
  text-align: center;
}

/* Captured full-screen stories must size to the available column, not the viewport. */

.showroom-content [data-showroom-layout="cinematic"],
.showroom-content [data-showroom-layout="cinematic"] :is(.wl-teaserfullscreen-wrapper, .wl-teaserfullscreen-wrapper--container, .wl-teaserfullscreen-wrapper__container-media, picture, img) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.showroom-content [data-showroom-layout="cinematic"] .wl-teaserfullscreen-wrapper {
  width: 100% !important;
  left: auto !important;
  transform: none !important;
}

.showroom-content [data-showroom-layout="cinematic"] .wl-teaserfullscreen-wrapper--container {
  gap: 0 !important;
}

.showroom-content [data-showroom-layout="cinematic"] :is(picture, img) {
  display: block;
  width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

.showroom-content [data-showroom-layout="cinematic"] .wl-teaserfullscreen-wrapper--container__content {
  padding: clamp(1rem, 4vw, 4rem) !important;
  align-self: start;
  min-width: 0;
}

.showroom-content [data-showroom-layout="cinematic"] .wl-headline {
  font-size: clamp(1.5rem, 3.5vw, 3.5rem) !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere;
}

/* Overlay copy participates in sizing, so longer translations cannot be clipped. */

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] > :is(.gridwithbackground_media-container, .gridwithbackground__content--overlay) {
  grid-area: 1 / 1;
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0;
  width: 100% !important;
}

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] > .gridwithbackground__content--overlay {
  overflow: visible !important;
  padding-block: 1.5rem;
  transform: none !important;
  margin: 0 !important;
}

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] > .gridwithbackground_media-container {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
}

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] > .gridwithbackground_media-container :is(div, picture, img) {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
}

.showroom-content [data-showroom-tooltip-note="1"] {
  font-size: .85em;
  white-space: normal;
}

.showroom-content .gridwithbackground__wrapper[data-showroom-layout="text-surface"] > .gridwithbackground__content--overlay > .aem-Grid {
  margin-inline: 0 !important;
  width: 100% !important;
}

/* Published production showroom runtime. */

/* A full-width sticky model menu belongs in normal flow. Floating it makes
   Firefox move the imported formatting context below the menu's scrolled
   position, adding space and changing focus/scroll coordinates on interaction. */

#second.modelpage:not(.second-level-menu-vertical):has(
    > :is(#showroom-content, .content_inner) .mw-showroom-embed,
    > :is(#showroom-content, .content_inner) .showroom-content[data-showroom-runtime]
  )
  > .left {
  float: none;
}

/* Imported pages own their responsive layout. The model shell must not put
   them inside its capped text column or add a second set of page gutters. */

:is(#showroom-content, .content_inner):has(> .right .mw-showroom-embed, > .right .showroom-content[data-showroom-runtime]) {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  padding-block-start: 0;
  min-height: 0;
}

:is(#showroom-content, .content_inner):has(> .right .mw-showroom-embed, > .right .showroom-content[data-showroom-runtime])
  > .right {
  float: none;
  width: 100%;
  min-width: 0;
  margin-inline: 0;
}

/* The model introduction template emits an empty heading before native imports. */

:is(#showroom-content, .content_inner):has(> .right .mw-showroom-embed, > .right .showroom-content[data-showroom-runtime])
  > .right
  > h2:empty {
  display: none;
}

.mw-showroom-embed {
  position: relative;
  width: 100%;
  min-width: 0;
}

.mw-showroom-content {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

/* Uploaded model photos form a compact media strip before an imported page,
   instead of inheriting the old narrow-column thumbnails and negative margin.
   Keep this separate from galleries inside the imported showroom. */

.model-intro-gallery[data-content-gallery] {
  --showroom-source-gallery-card-width: 240px;
  --showroom-source-gallery-mobile-card-width: 200px;
  --showroom-source-gallery-desktop-gap: 16px;
  --showroom-source-gallery-mobile-gap: 16px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 40px max(24px, calc((100% - 1280px) / 2));
  background: #fff;
}

.model-intro-gallery [data-content-gallery-track] {
  padding-bottom: 0 !important;
}

.model-intro-gallery [data-content-gallery-item] {
  display: block;
  aspect-ratio: 8 / 5;
  border-radius: 4px;
  overflow: hidden !important;
  background: #fff;
  color: inherit;
  transition: outline-color 150ms ease;
}

.model-intro-gallery [data-content-gallery-item] > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-intro-gallery [data-content-gallery-item]:is(:hover, :focus-visible) {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

@media (max-width: 680px) {
  .model-intro-gallery[data-content-gallery] {
    padding: 24px 16px;
  }
}

/* Reusable Content Gallery: shared by public pages, previews and both editors. */

[data-content-gallery] {
  --showroom-source-gallery-columns: 1;
  --showroom-source-gallery-gap: var(--showroom-source-gallery-desktop-gap, 24px);
  --showroom-source-gallery-peek: 0px;
  --showroom-source-gallery-width: calc(
    (
        100% - var(--showroom-source-gallery-peek) - (var(--showroom-source-gallery-columns) - 1) *
          var(--showroom-source-gallery-gap)
      ) /
      var(--showroom-source-gallery-columns)
  );
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

[data-content-gallery][data-gallery-columns="2"] {
  --showroom-source-gallery-columns: 2;
}

[data-content-gallery][data-gallery-columns="3"] {
  --showroom-source-gallery-columns: 3;
}

[data-content-gallery][data-gallery-columns="4"] {
  --showroom-source-gallery-columns: 4;
}

[data-content-gallery][data-gallery-peek="true"] {
  --showroom-source-gallery-peek: 8%;
}

[data-content-gallery] > [data-content-gallery-intro] {
  margin-bottom: 2rem;
  min-width: 0;
}

[data-content-gallery][data-gallery-intro="none"] > [data-content-gallery-intro] {
  display: none;
}

[data-content-gallery][data-gallery-intro="left"],
[data-content-gallery][data-gallery-intro="right"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

[data-content-gallery][data-gallery-intro="right"] {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

[data-content-gallery][data-gallery-intro-width="half"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

[data-content-gallery][data-gallery-intro="right"] > [data-content-gallery-intro] {
  grid-column: 2;
  grid-row: 1;
}

[data-content-gallery][data-gallery-intro="right"] > [data-content-gallery-viewport] {
  grid-column: 1;
  grid-row: 1;
}

[data-content-gallery-viewport] {
  min-width: 0;
  max-width: 100%;
}

[data-content-gallery-track] {
  display: flex !important;
  flex-flow: row nowrap !important;
  gap: var(--showroom-source-gallery-gap) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  position: relative !important;
  transform: none !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
  list-style: none !important;
  scrollbar-width: thin;
  scrollbar-color: currentColor transparent;
  overscroll-behavior-x: contain;
  box-sizing: border-box;
}

[data-content-gallery-track] > [data-content-gallery-item] {
  flex: 0 0 var(--showroom-source-gallery-width, 100%) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
  transform: none !important;
  scroll-snap-align: start !important;
  list-style: none !important;
  box-sizing: border-box;
}

[data-content-gallery-item] > img,
[data-content-gallery-item] > picture,
[data-content-gallery-item] > picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

[data-content-gallery-item] > [data-gallery-label] {
  font-size: 0.85em;
  margin: 1.25rem 0 0.5rem;
}

[data-content-gallery-item] > h3 {
  margin: 1rem 0;
}

/* Navigation styles live in the controller's shadow root so captured source
   selectors cannot alter generated buttons or their containers. */

[data-content-gallery-track]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[data-content-gallery-track][data-content-gallery-looping] {
  overflow-anchor: none;
  scroll-snap-type: none !important;
}

/* Explicit component settings work identically for authored and imported cards. */

[data-content-gallery][data-gallery-sizing="fixed"] {
  --showroom-source-gallery-width: min(100%, var(--showroom-source-gallery-card-width, 438px));
}

@media (max-width: 991px) {
  [data-content-gallery][data-gallery-columns] {
    --showroom-source-gallery-columns: 1;
    --showroom-source-gallery-gap: var(--showroom-source-gallery-mobile-gap, 16px);
  }

  [data-content-gallery][data-gallery-mobile-columns="2"] {
    --showroom-source-gallery-columns: 2;
  }

  [data-content-gallery][data-gallery-sizing="fixed"] {
    --showroom-source-gallery-width: min(
      100%,
      var(--showroom-source-gallery-mobile-card-width, 320px)
    );
  }
}

@media (max-width: 760px) {
  [data-content-gallery][data-gallery-intro] {
    display: block;
  }
}

@media print {
  [data-content-gallery] {
    --showroom-source-gallery-display: block;
  }

  [data-content-gallery-track] {
    display: block !important;
    overflow: visible !important;
  }

  [data-content-gallery-track] > [data-content-gallery-item] {
    break-inside: avoid;
    margin-bottom: 24px !important;
  }

  [data-content-gallery] [data-content-gallery-controls] {
    display: none !important;
  }

  [data-content-gallery-track] > [data-content-gallery-clone] {
    display: none !important;
  }
}

/* Chaptered Showroom: all content stays visible in editors and without the controller. */

[data-showroom-chapters] {
  --showroom-chapters-offset: 96px;
  --showroom-chapters-accent: var(--primary-color, currentColor);
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

[data-showroom-chapters] > [data-showroom-chapters-content] {
  min-width: 0 !important;
  width: 100% !important;
}

[data-showroom-chapters] > [data-showroom-chapters-content] > [data-showroom-chapter] {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
  transform: none !important;
  margin: 0 0 48px !important;
  overflow: visible !important;
}

[data-showroom-chapter],
[data-showroom-chapter-section] {
  scroll-margin-top: var(--showroom-chapters-offset, 96px);
}

[data-showroom-chapters][data-showroom-chapters-ready]
  > [data-showroom-chapters-content]
  > [data-showroom-chapter][hidden] {
  display: none !important;
}

[data-showroom-chapters][data-showroom-chapters-ready] > [data-showroom-chapters-nav] {
  position: sticky !important;
  top: var(--showroom-chapters-offset) !important;
  align-self: start !important;
  max-height: calc(100dvh - var(--showroom-chapters-offset) - 24px) !important;
  overflow-y: auto !important;
}

@media (min-width: 992px) {
  [data-showroom-chapters][data-showroom-chapters-ready] {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr) !important;
    gap: clamp(24px, 4vw, 64px) !important;
    align-items: start !important;
  }
}

@media (max-width: 991px) {
  [data-showroom-chapters][data-showroom-chapters-ready] > [data-showroom-chapters-nav] {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    margin-bottom: 24px !important;
  }
}

@media print {
  [data-showroom-chapters][data-showroom-chapters-ready] {
    display: block !important;
  }

  [data-showroom-chapters][data-showroom-chapters-ready]
    > [data-showroom-chapters-content]
    > [data-showroom-chapter][hidden] {
    display: block !important;
  }

  [data-showroom-chapters-nav],
  [data-showroom-chapters-footer] {
    display: none !important;
  }
}

/* Authored image overlays: ordinary editable content, with no public JavaScript.
   Both grid items contribute height, so long copy grows the hero instead of clipping.
   Container queries also stack cards placed in narrow desktop columns. */

[data-image-overlay="1"] {
  display: grid;
  position: relative;
  isolation: isolate;
  container: image-overlay / inline-size;
  width: 100%;
  max-width: 100%;
  margin-block: 1.5rem;
  --image-overlay-shade: 0, 0, 0;
}

[data-image-overlay="1"] > [data-image-overlay-media] {
  grid-area: 1 / 1;
  display: grid;
  min-width: 0;
  position: relative;
  align-self: stretch;
}

[data-image-overlay="1"] > [data-image-overlay-media] > :is(a, picture),
[data-image-overlay="1"] > [data-image-overlay-media] > a > picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

[data-image-overlay="1"] > [data-image-overlay-media] img {
  display: block;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

[data-image-overlay="1"] > [data-image-overlay-media]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(var(--image-overlay-shade), var(--image-overlay-shade-opacity, 0.62)),
    rgba(var(--image-overlay-shade), 0) 85%
  );
}

[data-image-overlay="1"] > [data-image-overlay-content] {
  grid-area: 1 / 1;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  width: 58%;
  max-width: 48rem;
  align-self: center;
  justify-self: start;
  padding: clamp(20px, 4cqi, 64px);
  color: #fff;
  overflow-wrap: anywhere;
}

/* Match public #second heading specificity (including .storefront/.modelsview)
   in every renderer. Inline rich-text colors still win; buttons are untouched. */

:is([data-image-overlay="1"], #second [data-image-overlay="1"])
  > [data-image-overlay-content]
  :is(h1, h2, h3, h4, h5, h6, p) {
  color: inherit;
}

[data-image-overlay="1"] > [data-image-overlay-content] > :first-child {
  margin-block-start: 0;
}

[data-image-overlay="1"] > [data-image-overlay-content] > :last-child {
  margin-block-end: 0;
}

[data-image-overlay="1"] > [data-image-overlay-content] :is(.prettybutton, .prettybutton2) {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Extend the existing secondary-button theme to non-.right content containers.
   Existing site button selectors keep precedence over this low-specificity fallback. */

:where([data-image-overlay-content]:not(.right, .right *)) .prettybutton2 {
  background: var(--secondary, #000);
  color: #fff;
}

[data-image-overlay-align="center"] > [data-image-overlay-content] {
  justify-self: center;
  text-align: center;
}

[data-image-overlay-align="right"] > [data-image-overlay-content] {
  justify-self: end;
  text-align: right;
}

[data-image-overlay-vertical="top"] > [data-image-overlay-content] {
  align-self: start;
}

[data-image-overlay-vertical="bottom"] > [data-image-overlay-content] {
  align-self: end;
}

[data-image-overlay-tone="dark"] {
  --image-overlay-shade: 255, 255, 255;
}

[data-image-overlay-tone="dark"] > [data-image-overlay-content] {
  color: #222;
}

[data-image-overlay-align="right"] > [data-image-overlay-media]::after {
  background: linear-gradient(
    270deg,
    rgba(var(--image-overlay-shade), var(--image-overlay-shade-opacity, 0.62)),
    rgba(var(--image-overlay-shade), 0) 85%
  );
}

[data-image-overlay-align="center"] > [data-image-overlay-media]::after {
  background: rgba(var(--image-overlay-shade), var(--image-overlay-shade-opacity, 0.35));
}

/* Explicit gradient colors are independent of the chosen text tone. */

[data-image-overlay-shade="dark"] {
  --image-overlay-shade: 0, 0, 0;
}

[data-image-overlay-shade="light"] {
  --image-overlay-shade: 255, 255, 255;
}

[data-image-overlay-align="center"]:is(
    [data-image-overlay-shade="dark"],
    [data-image-overlay-shade="light"]
  )
  > [data-image-overlay-media]::after {
  background: radial-gradient(
    ellipse at center,
    rgba(var(--image-overlay-shade), var(--image-overlay-shade-opacity, 0.35)),
    rgba(var(--image-overlay-shade), 0)
  );
}

[data-image-overlay-shade="none"] > [data-image-overlay-media]::after {
  display: none;
}

[data-image-overlay-background="dark"] > [data-image-overlay-content] {
  background: rgba(0, 0, 0, var(--image-overlay-background-opacity, 0.5));
}

[data-image-overlay-background="light"] > [data-image-overlay-content] {
  background: rgba(255, 255, 255, var(--image-overlay-background-opacity, 0.5));
}

[data-image-overlay="1"] > [data-image-overlay-content] > [data-image-overlay-copy] {
  opacity: var(--image-overlay-text-opacity, 1);
}

[data-image-overlay-content] > [data-image-overlay-copy]:first-child > :first-child {
  margin-block-start: 0;
}

[data-image-overlay-content] > [data-image-overlay-copy]:last-child > :last-child {
  margin-block-end: 0;
}

@container image-overlay (max-width: 700px) {
  [data-image-overlay="1"] > [data-image-overlay-content] {
    grid-area: 2 / 1;
    width: 100%;
    max-width: none;
    padding: 24px;
    color: var(--primary, #222);
    background: var(--image-overlay-mobile-background, #f4f4f4);
  }

  [data-image-overlay="1"] > [data-image-overlay-media] img {
    height: auto !important;
  }

  [data-image-overlay="1"] > [data-image-overlay-media]::after {
    display: none;
  }
}

@media (max-width: 700px), print {
  [data-image-overlay="1"] > [data-image-overlay-content] {
    grid-area: 2 / 1;
    width: 100%;
    max-width: none;
    padding: 24px;
    color: var(--primary, #222);
    background: var(--image-overlay-mobile-background, #f4f4f4);
  }

  [data-image-overlay="1"] > [data-image-overlay-media] img {
    height: auto !important;
  }

  [data-image-overlay="1"] > [data-image-overlay-media]::after {
    display: none;
  }
}

/* Opt-in styles for editorial patterns inserted by either supported editor. */
.editorial-pattern {
    clear: both;
    max-width: 960px;
    margin: 32px 0;
    line-height: 1.6;
    overflow-wrap: break-word;
}
.editorial-pattern h2,
.editorial-pattern h3,
.editorial-pattern p,
#second .right .editorial-pattern h2,
#second .right .editorial-pattern h3,
#second .right .editorial-pattern p {
    float: none;
    width: auto;
    height: auto;
    margin: 0 0 16px;
}
.editorial-pattern h2 { line-height: 1.3; }
.editorial-pattern h3 { line-height: 1.4; }
.editorial-pattern .editorial-question + .editorial-question { margin-top: 24px; }
.editorial-pattern ul,
.editorial-pattern ol,
#second .right .editorial-pattern ul,
#second .right .editorial-pattern ol {
    margin: 0 0 16px;
    padding: 0 0 0 1.5em;
    line-height: 1.6;
}
.editorial-pattern ul { list-style: disc outside; }
.editorial-pattern ol { list-style: decimal outside; }
.editorial-pattern li,
#second .right .editorial-pattern li {
    display: list-item;
    margin: 0 0 8px;
    padding: 0;
    background: none;
    list-style-type: inherit;
    line-height: 1.6 !important;
}
.editorial-pattern li::before,
#second .right .editorial-pattern li::before {
    content: none !important;
    display: none !important;
}
.editorial-pattern a[href] { text-decoration: underline; text-underline-offset: 3px; }
.editorial-pattern a:focus-visible,
.editorial-table-scroll:focus-visible { outline: 2px solid var(--primary, #222); outline-offset: 3px; }
.editorial-table-scroll { max-width: 100%; overflow-x: auto; }
.editorial-pattern table { width: 100%; margin: 0; border-collapse: collapse; }
.editorial-pattern caption { padding: 0 0 12px; text-align: left; font-weight: 600; }
.editorial-pattern th,
.editorial-pattern td,
#second .right .editorial-pattern th,
#second .right .editorial-pattern td { padding: 12px 16px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.editorial-pattern thead th,
.editorial-pattern tbody tr:nth-child(odd) { background: var(--tableHighlight, #f5f3f2); }
