/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Action Text style overrides */
.trix-content {
  text-align: left;
}

.trix-content .attachment__caption {
  display: none;
}

.trix-content .attachment--preview {
  text-align: left;
}

/* Preserve text alignment when explicitly set */
.trix-content [style*="text-align: left"] {
  text-align: left !important;
}

.trix-content [style*="text-align: center"] {
  text-align: center !important;
}

.trix-content [style*="text-align: right"] {
  text-align: right !important;
}

.trix-content [style*="text-align: justify"] {
  text-align: justify !important;
}

/* Custom alignment button styles */
.trix-button--icon-align-left::before {
  content: "◀";
}

.trix-button--icon-align-center::before {
  content: "■";
}

.trix-button--icon-align-right::before {
  content: "▶";
}

.trix-button-group--text-tools {
  margin-left: 0.5vw;
}
