html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.lb-frame {
  position: relative;
}

.lb-thumb {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  width: min(220px, 64vw);
  aspect-ratio: 4/3;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.lb-thumb__photo {
  position: absolute;
  inset: 0;
  background: radial-gradient(90px circle at 66% 30%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #2f6df6, #17141a);
}

.lb-thumb__label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.55);
  color: #fff7e6;
  font: 600 11px/1 -apple-system, "Segoe UI", sans-serif;
}

dialog.lb-dialog {
  border: 0;
  margin: auto;
  position: fixed;
  inset: 0;
  width: min(80vw, 300px);
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

dialog.lb-dialog::backdrop {
  background: rgba(23, 20, 26, 0.55);
}

.lb-dialog__photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  margin-bottom: 12px;
  background: radial-gradient(90px circle at 66% 30%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #2f6df6, #17141a);
}

.lb-dialog__title {
  margin: 0 0 12px;
  font-size: 14px;
}

.lb-close {
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #ffffff;
  padding: 8px 16px;
  font: 600 12px/1 -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.lb-frame.is-demo dialog.lb-dialog {
  animation: lb-pop 2s ease-out infinite;
}

@keyframes lb-pop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  15% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lb-frame.is-demo dialog.lb-dialog {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
