/* La demeure — Figma xSsqy1E5RhWrurGuUKIJNx, sections 11:809–11:1097.
   Keep these corrections local to this page and preserve imported editorial content. */
.dlp-demeure .mosaic--mosaic3 > .media:first-child {
  align-self: end;
}
.dlp-demeure .mosaic--mosaic3 > :nth-child(3) {
  align-self: stretch;
}
.dlp-demeure .variant-rooms > .split {
  grid-template-columns: minmax(0, 410fr) minmax(0, 968fr);
  gap: clamp(35px, 7.395833vw, 142px);
  align-items: center;
}
.dlp-demeure .mosaic--rooms {
  grid-template-rows: auto;
}
.dlp-demeure .mosaic--rooms > .rooms-playlist {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: auto;
  min-height: 352px;
  aspect-ratio: 968 / 463;
  border: 0;
  border-radius: 10px;
}
.dlp-demeure .mosaic--rooms > .media:first-child {
  grid-row: 2;
}
.dlp-demeure .section--gallery,
.dlp-demeure .section--benefits,
.dlp-demeure .section--text_media.bg-pale:not(.variant-rooms),
.dlp-demeure .section--logos {
  padding-top: 0;
}
.dlp-demeure .section--gallery .centered-heading {
  max-width: 666px;
  margin: 0 auto 35px;
}
.dlp-demeure .section--gallery .carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.dlp-demeure .section--gallery .carousel-track {
  gap: 35px;
  padding-bottom: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
}
.dlp-demeure .section--gallery .carousel-track::-webkit-scrollbar {
  display: none;
}
.dlp-demeure .section--gallery .gallery-item {
  flex: 0 0 457.5px;
}
.dlp-demeure .section--gallery .gallery-item > img {
  aspect-ratio: 457.5 / 303;
}
.dlp-demeure .section--gallery .gallery-item figcaption {
  padding: 30px 30px 35px;
  font-size: 16px;
  line-height: 20px;
}
.dlp-demeure .section--gallery .gallery-item figcaption h3 {
  margin-bottom: 15px;
}
.dlp-demeure .section--gallery .button-row:empty {
  display: none;
}
.dlp-demeure .carousel-position {
  display: block;
  appearance: none;
  width: 301px;
  max-width: calc(100% - 40px);
  height: 5px;
  padding: 0;
  margin: 35px auto 0;
  border: 0;
  border-radius: 5px;
  background: var(--dlp-light);
  cursor: pointer;
}
.dlp-demeure .carousel-position::-webkit-slider-thumb {
  appearance: none;
  width: 25%;
  height: 5px;
  border-radius: 5px;
  background: var(--dlp-green);
}
.dlp-demeure .carousel-position::-moz-range-thumb {
  width: 75px;
  height: 5px;
  border: 0;
  border-radius: 5px;
  background: var(--dlp-green);
}
.dlp-demeure .section--map > .split {
  grid-template-columns: minmax(0, 507fr) minmax(0, 912fr);
  gap: clamp(35px, 5.260417vw, 101px);
}
.dlp-demeure .section--map .media,
.dlp-demeure .section--map .media-image {
  aspect-ratio: 912 / 816;
  min-height: 0;
  height: auto;
}
.dlp-demeure .team-grid {
  align-items: start;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 35px;
  max-width: 1180px;
  margin-inline: auto;
}
.dlp-demeure .team-grid .partner {
  grid-column: span 2;
  min-width: 0;
  padding: 0;
}
.dlp-demeure .team-grid .partner:nth-child(1) {
  grid-column: 3 / span 2;
}
.dlp-demeure .team-grid .partner:nth-child(4) {
  grid-column: 1 / span 2;
}
.dlp-demeure .team-grid .partner:nth-child(9) {
  grid-column: 3 / span 2;
}
.dlp-demeure .team-grid .partner > img,
.dlp-demeure .team-grid .media-placeholder--logo {
  width: 100%;
  height: auto;
  aspect-ratio: 208 / 252;
  border-radius: 1000px;
  margin-bottom: 25px;
}
.dlp-demeure .team-grid .partner p {
  color: var(--dlp-accent);
}
@media (min-width: 901px) {
  .dlp-demeure .team-grid:has(> .partner:nth-child(6):last-child) > .partner:nth-child(1) { grid-column: 5 / span 2; }
  .dlp-demeure .team-grid:has(> .partner:nth-child(6):last-child) > .partner:nth-child(2) { grid-column: 1 / span 2; }
  .dlp-demeure .team-grid:has(> .partner:nth-child(6):last-child) > .partner:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .dlp-demeure .variant-rooms > .split,
  .dlp-demeure .section--map > .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .dlp-demeure .section--gallery .gallery-item {
    flex-basis: min(457.5px, 80vw);
  }
  .dlp-demeure .section--gallery .carousel-track {
    gap: 20px;
    padding-inline: var(--dlp-gutter);
  }
  .dlp-demeure .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }
  .dlp-demeure .team-grid .partner:nth-child(n) {
    grid-column: auto;
  }
}

/* Opening mosaic: anchor the bird to its photos, not the section's text height. */
.dlp-demeure .demeure-intro-mosaic { position: relative; overflow: visible; }
.dlp-demeure .demeure-intro-bird {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 39.470656%;
  width: 21.173763%;
  pointer-events: none;
}
.dlp-demeure .demeure-intro-bird img { display: block; width: 100%; height: auto; }
.dlp-demeure .section--text_media > .demeure-intro-scroll-marker {
  display: block;
  top: 0;
  left: 50%;
  width: min(1.666667vw, 32px);
  transform: translateX(-50%);
}
.dlp-demeure .section--hero + .section--text_media:has(.demeure-intro-mosaic)::before {
  content: '';
  position: absolute;
  top: min(3.125vw, 60px);
  left: calc(50% - 1px);
  width: 2px;
  height: min(4.817708vw, 92.5px);
  background: repeating-linear-gradient(to bottom, var(--dlp-green) 0 6px, transparent 6px 11px);
  pointer-events: none;
}
.dlp-demeure .section--text_media > .demeure-intro-flower {
  top: min(31.145833vw, 598px);
  left: auto;
  right: max(-6.009642vw, -115.385135px);
}
@media (max-width: 900px) {
  .dlp-demeure .section--text_media:has(.demeure-intro-mosaic) { padding-block: 110px 50px; }
  .dlp-demeure .section--text_media:has(.demeure-intro-mosaic) > .container { width: calc(100% - 30px); gap: 25px; }
  .dlp-demeure .section--text_media > .demeure-intro-scroll-marker { width: 24px; }
  .dlp-demeure .section--hero + .section--text_media:has(.demeure-intro-mosaic)::before { top: 44px; width: 1px; left: calc(50% - .5px); height: 40px; }
  .dlp-demeure .section--text_media > .demeure-intro-flower { display: none; }
}

/* Keep the kitchen illustration attached to the photo junction. */
.dlp-demeure .demeure-kitchen-mosaic { position: relative; overflow: visible; }
.dlp-demeure .demeure-kitchen-pot {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 36.478711%;
  width: 27.169595%;
  pointer-events: none;
}
.dlp-demeure .demeure-kitchen-pot img { width: 100%; height: auto; }
@media (max-width: 1200px) {
  .dlp-demeure .demeure-park-flower { display: none; }
}
@media (max-width: 600px) {
  .dlp-demeure .demeure-kitchen-pot { display: none; }
}
