/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content
  .attachment-gallery.attachment-gallery--2
  > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment,
.trix-content
  .attachment-gallery.attachment-gallery--4
  > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}

.trix-content {
  li {
    list-style-type: circle;
    list-style-position: inside;
    margin-left: 1em;
  }
}

trix-editor {
  blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 1em;
    margin: 0.5em 0;
    color: #6b7280;
  }

  ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 0.25rem;
  }

  ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    padding-left: 0.25rem;
  }

  li {
    list-style-position: outside;
  }

  h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0.5em 0;
  }

  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5em 0;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5em 0;
  }
}

/* Hide file attachment button in Trix toolbar for all description editors */
.description-editor .trix-button-group--file-tools,
.todo-description-editor .trix-button-group--file-tools,
.strategic-goal-description-editor .trix-button-group--file-tools {
  display: none !important;
}
