/*
 * Action Text content styles
 * Styles for rendered rich text content (read-only view)
 */

/* Attachment styles for Action Text */
.tiptap-content .attachment {
  display: inline-block;
  position: relative;
  max-width: 100%;
}

.tiptap-content .attachment a {
  color: inherit;
  text-decoration: none;
}

.tiptap-content .attachment__caption {
  text-align: center;
  font-size: 0.875em;
  color: var(--muted-foreground);
  margin-top: 0.5em;
}

.tiptap-content .attachment--preview {
  width: 100%;
  text-align: center;
}

.tiptap-content .attachment--file {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--card);
}

.tiptap-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1em 0;
}

.tiptap-content .attachment-gallery .attachment {
  flex: 1 1 calc(33.333% - 0.5em);
  max-width: calc(33.333% - 0.5em);
}

.tiptap-content .attachment-gallery.attachment-gallery--2 .attachment {
  flex-basis: calc(50% - 0.5em);
  max-width: calc(50% - 0.5em);
}
