/* The transition extends over the iframe so it blends into the actual project artwork. */
#demo-room[data-project] {grid-template-rows:auto minmax(0,1fr);}
#demo-room[data-project]>header {
  position:relative; z-index:1; display:grid;
  grid-template-columns:minmax(max-content,1fr) auto minmax(0,1fr);
  align-items:center; gap:10px; padding:2px clamp(8px,2vw,34px); min-height:46px;
  box-sizing:border-box; border:0;
}
#demo-room[data-project]>header::after {
  content:"";position:absolute;inset:100% 0 auto;height:18px;pointer-events:none;
  background:linear-gradient(to bottom,var(--project-surface),color-mix(in srgb,var(--project-surface) 60%,transparent) 32%,transparent);
}
#demo-room[data-project]>header #leave-demo {
  justify-self:start; display:inline-flex; align-items:center; gap:8px; min-height:44px;
  padding:3px 6px; color:inherit; background:none; border:0; box-shadow:none;
  font:600 13px/1.2 var(--sans,Arial,sans-serif); text-decoration:none;
}
#demo-room[data-project]>header #leave-demo img {display:block;width:20px;height:20px;}
#demo-room[data-project]>header #leave-demo:is(:hover,:focus-visible) {text-decoration:underline;text-underline-offset:4px;}
@media(max-width:540px) {
  #demo-room[data-project]>header {grid-template-columns:auto minmax(0,1fr);}
  #demo-room[data-project]>header strong {justify-self:end;text-align:end;font-size:15px;}
  #demo-room[data-project]>header::after {height:12px;}
}
@media(forced-colors:active) {
  #demo-room[data-project]>header::after {display:none;}
}
