.card-preview {
  scroll-margin-block-start: 12px;
  padding: clamp(14px, 3vw, 20px);
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
}
.card-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-preview h2 { margin: 0; font-size: 1.1rem; }
.card-preview-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}
.card-preview-content:not([hidden]) {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 6px;
}
.card-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(55vh, 480px);
  border-radius: 4px;
  -webkit-touch-callout: default;
}
.card-preview .card-download {
  width: min(100%, 380px);
  min-height: 46px;
  text-decoration: none;
  text-align: center;
}
.card-preview p {
  font-size: .9rem;
  line-height: 1.55;
  color: #51475e;
}
.card-preview:focus { outline: 0; }
