trix-editor {
  min-height: 100px;
  border: 1px solid #ddd;
  min-width: 100%;
}

.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

trix-toolbar {
  padding-left: 0.5rem;
  min-width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.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-button-group--file-tools { display: none !important; }
.trix-button-group--block-tools { display: none !important; }
.trix-button--icon-link { display: none !important; }

.trix-button {
    background-color: #f8f9fa;
    border: 1px solid #000;
    color: #495057;
    cursor: pointer;
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 0.375rem 0.75rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0.25rem;
}
