@import url("./common.css");

.lqip-demo {
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}

/* Figure: caption is a normal block below the media — never covered by the photo */
.lqip-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Media box: only this region gets the absolute overlay */
.lqip-media {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 300;
  background: #f1f5f9;
  overflow: hidden;
}

.lqip-placeholder {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.lqip-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lqip-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.lqip-modern {
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.lqip-modern code {
  font-size: 0.75rem;
}

.demo-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
