#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  width: var(--page);
  margin: auto;
  min-height: 200px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  align-self: start;
}
.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #100e13;
}
.card .asset-unavailable {
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: #1c151d;
}
.info {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filename {
  font-size: 1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  line-height: 1.4;
  min-height: 2.8em;
}
.share-btn {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.875rem;
  width: 100%;
  font-weight: 650;
}
.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.copy-fallback {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 0.875rem;
  padding: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 6px;
}
.page-creations main > footer {
  width: var(--page);
  margin: 3rem auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 540px) {
  #gallery {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
