.attachments .attachment-preview {
  display: block;
  overflow: hidden;
  width: min(240px, 100%);
  border-radius: 12px;
  background: #eceae3;
  text-decoration: none;
}

.attachment-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}
