/* Bounded first-five fixes. Shared motion, approved media and Alila colors stay unchanged. */
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) .pl-lightbox__inner {
  grid-template-columns: minmax(0, 1fr);
}
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) .pl-lightbox__inner > img {
  max-width: 100%;
  max-width: min(100%, 94vw, 1600px);
  min-width: 0;
}
/* Settled failures on dark facts/CTA surfaces only; Alila's passing light theme is excluded. */
body:is([data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) .pl-facts dt {
  color: #fff;
  opacity: 1;
}
body:is([data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) #enquire {
  background-color: color-mix(in srgb, var(--pl-accent) 70%, var(--pl-deep));
}
body:is([data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"]) #phase10-gallery .pl-heading > p {
  color: #52615c;
}
@media (max-width: 720px) {
  body[data-pls-reveal-family="g-vinton"] #highlights .pl-proof-list > article:nth-child(3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-pls-reveal-family="g-vinton"] #highlights .pl-proof-list > article:nth-child(3) > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Two contrasting inset bands remain visible inside clipped media/control bounds. */
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) :is(a, button, summary, [role="tab"], [tabindex]):focus-visible {
  outline: 2px solid #10261f;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 4px #fff;
}
/* A child image cannot paint over its own inner white band. */
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="d-aleena"], [data-pls-reveal-family="mekarsari-unggul"]) :is(a, button, [role="tab"]):focus-visible > img {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Alila: validated contrast on translucent and gradient surfaces. */
body[data-pls-reveal-family="alila-2"] .pl-facts > div { background-color: #123d30; }
body[data-pls-reveal-family="alila-2"] :is(.pl-facts dt, .pl-hero__name, .pc-live-status > div > span, .pl-hero__visual > figcaption, #enquire > p) { color: #fff; }

/* C5: keep the Close and complete caption rows outside the contained image track. */
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="mekarsari-unggul"]) dialog.pl-lightbox > .pl-lightbox__inner {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
body:is([data-pls-reveal-family="alila-2"], [data-pls-reveal-family="middleton"], [data-pls-reveal-family="g-vinton"], [data-pls-reveal-family="mekarsari-unggul"]) dialog.pl-lightbox > .pl-lightbox__inner > img {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
