.light-photo {
  position:relative; isolation:isolate; display:block; overflow:hidden; cursor:pointer;
}
.light-photo > .room-day { display:block; }
.light-photo > img.room-night {
  position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto;
  object-fit:cover; pointer-events:none; opacity:0;
  transition:opacity .85s ease-in-out;
}
.closing-photo > img.room-night { object-fit:contain; }
.light-photo:not([data-loading]) > .light-switch:checked ~ .room-night { opacity:1; }
.light-photo[data-loading] > .room-night, .light-photo.changing-room > .room-night { transition:none; }
.light-photo > .light-switch {
  position:absolute; inset:0; z-index:3; appearance:none; opacity:0;
  margin:0; width:100%; height:100%; cursor:pointer; touch-action:manipulation;
}
.light-cue {
  position:absolute; z-index:2; right:clamp(.55rem,1.1vw,1rem); bottom:clamp(.55rem,1.1vw,1rem);
  display:inline-flex; align-items:center; gap:.45rem; border-radius:1.6rem;
  border:1px solid rgb(255 255 255 / .5); background:rgb(21 25 23 / .9);
  color:#fff; padding:.46rem .76rem; pointer-events:none; white-space:nowrap;
  font:600 .875rem/1.25 Geist,Arial,sans-serif; letter-spacing:.005em;
}
.light-cue::before {
  content:''; width:.87rem; height:.87rem; border-radius:50%;
  box-shadow:inset -.24rem -.12rem 0 currentColor;
}
.light-switch:checked ~ .light-cue::before {
  box-sizing:border-box; background:currentColor; border:.16rem solid #252b29;
  box-shadow:0 0 0 1px currentColor;
}
.light-cue .light-day-action, .light-cue .light-wait,
.light-switch:checked ~ .light-cue .light-night-action { display:none; }
.light-switch:checked ~ .light-cue .light-day-action,
.light-photo[data-loading] .light-cue .light-wait { display:inline; }
.light-photo[data-loading] .light-switch:checked ~ .light-cue .light-day-action { display:none; }
.light-photo:has(.light-switch:focus-visible) { outline:3px solid var(--os-indicator,currentColor); outline-offset:3px; }
.light-switch:focus-visible ~ .light-cue { outline:2px solid white; outline-offset:2px; }
.light-feedback {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
/* An entrance animation on the individual layers would override their lighting opacity. */
.motion-on .finish-photo.arriving .light-photo img { animation:none; }
.finish-heading > p a { color:inherit; text-decoration:underline; text-underline-offset:.2em; }
.finish-photo[data-room-study] figcaption small { font-size:.72rem; letter-spacing:.06em; }
.room-picker:not([hidden]) { display:flex; flex-wrap:wrap; margin-top:1.4rem; gap:.3rem 1.15rem; }
.room-picker button {
  min-height:44px; padding:.45rem 0; border:0; border-bottom:2px solid transparent;
  background:transparent; color:var(--os-muted); font:600 .8rem/1.35 Geist,Arial,sans-serif; cursor:pointer;
}
.room-picker button[aria-pressed="true"] { color:var(--os-text); border-bottom-color:var(--os-indicator); }
.study-figure[data-room-study] figcaption { border-bottom:0; padding-bottom:0; }
@media (min-width:1600px) {
  .builder-page .finishes .finish-photo .room-day { max-height:76svh; object-fit:cover; }
}
@media (min-width:691px) {
  .finishes-lead { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .finishes-lead .finish-photo:nth-child(2) { margin-top:0; }
}
@media (max-width:690px) { .room-picker:not([hidden]) { margin-top:.7rem; } }
@media (max-width:600px) {
  .finishes-lead, .finish-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:1.8rem; }
  .finish-grid .finish-photo { margin:0; }
}
@media (prefers-reduced-motion:reduce) { .light-photo > img.room-night { transition:none; } }
@media (forced-colors:active) {
  .light-cue { color:ButtonText; background:ButtonFace; border-color:ButtonText; }
  .light-photo:has(.light-switch:focus-visible) { outline-color:Highlight; }
}
