.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}

.demo-grid figure {
  margin: 0;
  background: #fff;
  border: 2px solid var(--line);
  padding: 12px;
  box-shadow: 6px 6px 0 var(--line);
}

.demo-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.demo-grid .portrait img {
  aspect-ratio: 4 / 5;
}

.demo-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.demo-grid figcaption span,
.demo-note {
  color: var(--muted);
}

.demo-note {
  max-width: 820px;
  margin-top: 22px;
  font-size: 13px;
}

.tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  background: #fff;
}

.tip b,
.tip span {
  display: block;
}

.tip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.tip a {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 760px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .tip {
    align-items: flex-start;
    flex-direction: column;
  }
}
