input[type="checkbox"]:checked + label {
    justify-content: flex-end;
    background-color: #E5E7EB;
}

input[type="checkbox"]:checked + label span {
    background-color: black;
}

.search_highlight {
  background-color: #e0e0e0; /* light grey */
  padding: 0.1em 0.2em;       /* slightly more horizontal padding looks nicer */
  border-radius: 0.25em;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);       /* softly rounded corners */
}

/* Tailwind Override */
.trix-editor {
    width: 100%;
}

.trix-editor h1 {
    font-size: 1.25rem !important;
    line-height: 1.25rem !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trix-content h1 {
    font-size: 1.25rem !important;
    line-height: 1.25rem !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trix-editor a:not(.no-underline) {
    text-decoration: underline;
}

.trix-editor a:visited {
    color: green;
}

.trix-editor ul {
    list-style-type: disc;
    padding-left: 1rem;
}

#post_body > ol {
    list-style-type: decimal;
    padding-left: 1rem;
}

.trix-editor ol {
    list-style-type: decimal;
    padding-left: 1rem;
}

.trix-content ol {
    list-style-type: decimal;
    padding-left: 1rem;
}

.trix-editor pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 1.5em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto;
}

.trix-editor blockquote {
    border: 0 solid #ccc;
    border-left-width: 0px;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em;
}

/* Default blockquote styling */
.trix-content blockquote {
    padding: 1em;
    border-radius: 10px;
    max-width: 50%;
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    margin-left: 2em;
    margin-right: 0;
    text-align: right;
    border: 0 !important;
    float: right;
    clear: both;
}

/* Align Left */
.trix-content blockquote.left {
    background: linear-gradient(to left, #e0e0e0, #ffffff);
    margin-left: 0;
    margin-right: 2em;
    text-align: left;
    float: left;
    clear: both;
}

/* Align Right */
.trix-content blockquote.right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .trix-content blockquote {
        background: linear-gradient(#e0e0e0, #ffffff);
        max-width: 100%;
        float: none;
        margin-bottom: 1em;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        display: block;
        clear: both;
    }

    .trix-content blockquote.left,
    .trix-content blockquote.right {
        float: none;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        background: linear-gradient(#e0e0e0, #ffffff);
    }
}

.trix-content img {
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the figure container is centered */
figure.attachment {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px auto;
}

/* Ensure images inside the figure are properly displayed */
figure.attachment img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Style the caption */
figcaption.attachment__caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin-top: 5px;
}

/* .trix-content br {
  content: "";
}

.trix-content br:after {
  content: " ";
} */
