.demo-zoom-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 0 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--pink, #ee9ac2);
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
  cursor: pointer;
}
.demo-zoom-trigger span { font-size: 17px; font-weight: 400; }
.demo-zoom-trigger:hover { color: var(--text, #fbf5f9); }
.demo-zoom-trigger:focus-visible,
.demo-zoom-close:focus-visible { outline: 2px solid var(--pink, #ee9ac2); outline-offset: 3px; }
.demo-zoom-placeholder { width: 100%; pointer-events: none; }
html.demo-zoom-open { overflow: hidden; overscroll-behavior: none; }

dialog.demo-zoom-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100vw - 48px));
  height: min(760px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #51434e;
  border-radius: 18px;
  background: #151416;
  color: #fbf5f9;
  overflow: hidden;
  box-shadow: 0 28px 100px #0008;
}
dialog.demo-zoom-dialog[open] { display: flex; flex-direction: column; }
.demo-zoom-dialog::backdrop { background: #09070bd9; }
.demo-zoom-header {
  box-sizing: border-box;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 8px 24px;
  border-bottom: 1px solid #39343b;
  background: #151416;
}
.demo-zoom-header h2 {
  margin: 0;
  color: #fbf5f9;
  font: 500 17px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -.3px;
}
.demo-zoom-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 14px;
  min-width: 92px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #efb4d0;
  font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
}
.demo-zoom-close span { font-size: 24px; font-weight: 300; line-height: 1; }
.demo-zoom-close:hover { background: #ffffff0c; color: #fff; }
.demo-zoom-content {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.demo-zoom-content > .iphone.demo-expanded {
  flex: none;
  width: min(100%, calc((100dvh - 160px) * 2.040816)) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 3000 / 1470 !important;
  margin: 0 !important;
}

@media (max-width: 700px), (max-height: 500px) {
  dialog.demo-zoom-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .demo-zoom-header {
    min-height: 60px;
    gap: 12px;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }
  .demo-zoom-header h2 { font-size: 15px; }
  .demo-zoom-close { min-width: 80px; gap: 10px; font-size: 13px; }
  .demo-zoom-content { padding: 0; background: #000; }
  .demo-zoom-content > .iphone.demo-expanded {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    background: #000;
    box-shadow: none !important;
  }
  .demo-zoom-content > .iphone.demo-expanded::before,
  .demo-zoom-content > .iphone.demo-expanded::after,
  .demo-zoom-content .demo-expanded > .iphone-camera,
  .demo-zoom-content .demo-expanded > .iphone-home { display: none !important; }
  .demo-zoom-content .demo-expanded > .phone-display {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  .demo-zoom-content .demo-expanded .clock-face { border-radius: 0; }
}
