.FoyerEditorTheme__ltr {
    text-align: left;
}

.FoyerEditorTheme__rtl {
    text-align: right;
}

.FoyerEditorTheme_oneLine .FoyerEditorTheme__paragraph br {
    display: none;
}

/* for pages -- the default font size is 18px */
.FoyerEditorTheme__pageMode .FoyerEditorTheme__paragraph {
    font-size: 18px;
}

.FoyerEditorTheme__pageMode p,
.FoyerEditorTheme__pageMode ul,
.FoyerEditorTheme__pageMode ol {
    line-height: 32px;
    font-size: 18px;
}

.FoyerEditorTheme__pageMode h3,
.FoyerEditorTheme__pageMode h2,
.FoyerEditorTheme__pageMode h1,
.FoyerEditorTheme__pageMode h4,
.FoyerEditorTheme__pageMode h5,
.FoyerEditorTheme__pageMode h6 {
    font-family: "Metropolis", "Helvetica", "Arial", sans-serif;
    font-weight: 500;
    line-height: 1.167;
    letter-spacing: 0em;
}

.FoyerEditorTheme__pageMode img {
    max-width: 100%;
    border-radius: 3px;
    margin: auto;
    display: block;
}

.blogPostContent img {
    border: 1px solid lightgray;

    /* ensure images don't lose aspect ratio (when given specific height) */
    max-height: max-content;
}

.FoyerEditorTheme__paragraph {
    line-height: 1.4375em;
    margin: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
}

.FoyerEditorTheme_oneLine .FoyerEditorTheme__paragraph,
.FoyerEditorTheme_oneLine__placeholder {
    position: relative;
    margin: 0;
    display: inline-flex;
    white-space: pre;
    align-items: center;
    width: 100%;
    min-height: 24px;
}

.FoyerEditorTheme__quote {
    margin: 0;
    margin-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    opacity: 0.7;
    border-left-color: rgb(206, 208, 212);
    border-left-width: 4px;
    border-left-style: solid;
    padding-left: 16px;
}

.FoyerEditorTheme__h1 {
    font-size: 42px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__h2 {
    font-size: 34px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__h3 {
    font-size: 30px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__h4 {
    font-size: 24px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__h5 {
    font-size: 20px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__h6 {
    font-size: 18px;
    font-weight: 400;
    margin: 16px 0;
}

.FoyerEditorTheme__indent {
    --lexical-indent-base-value: 40px;
}

.FoyerEditorTheme__textBold {
    font-weight: bold;
}

.FoyerEditorTheme__textItalic {
    font-style: italic;
}

.FoyerEditorTheme__textUnderline {
    text-decoration: underline;
}

.FoyerEditorTheme__textStrikethrough {
    text-decoration: line-through;
}

.FoyerEditorTheme__textUnderlineStrikethrough {
    text-decoration: underline line-through;
}

.FoyerEditorTheme__textSubscript {
    font-size: 0.8em;
    vertical-align: sub !important;
}

.FoyerEditorTheme__textSuperscript {
    font-size: 0.8em;
    vertical-align: super;
}

.FoyerEditorTheme__textCode {
    background-color: #88888822;
    border-radius: 3px;
    padding: 1px 0.25rem;
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 94%;
}

.FoyerEditorTheme__templateString {
    border-radius: 3px;
    padding: 2px;
    background: #88888822;
}

.FoyerEditorTheme__link {
    color: rgb(33, 111, 219);
    text-decoration: none;
}

.FoyerEditorTheme__link:hover {
    text-decoration: underline;
    cursor: pointer;
}

.FoyerEditorTheme__code {
    background-color: #88888822;
    font-family: Menlo, Consolas, Monaco, monospace;
    display: block;
    padding: 8px 8px 8px 52px;
    line-height: 1.53;
    font-size: 13px;
    margin: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow-x: auto;
    position: relative;
    tab-size: 2;
}

.FoyerEditorTheme__code:before {
    content: attr(data-gutter);
    position: absolute;
    background-color: #88888833;
    left: 0;
    top: 0;
    border-right: 1px solid #88888844;
    padding: 8px;
    color: #777;
    white-space: pre-wrap;
    text-align: right;
    min-width: 25px;
}

.FoyerEditorTheme__table {
    border-collapse: collapse;
    border-spacing: 0;
    overflow-y: auto;
    overflow-x: auto;
    table-layout: fixed;
    width: max-content;
    margin: 30px 0;
    display: block;
    width: 100%;
}

.FoyerEditorTheme__table th p,
.FoyerEditorTheme__table td p {
    margin: 0;
}

.FoyerEditorTheme__table th {
    font-weight: normal;
    vertical-align: middle;
}

.FoyerEditorTheme__tableSelection *::selection {
    background-color: transparent;
}

.FoyerEditorTheme__tableSelected {
    outline: 2px solid rgb(60, 132, 244);
}

.FoyerEditorTheme__tableCell {
    border: 1px solid #bbb !important;
    /* important should be temporary -- i needed to add this because rendered posts within .post for some reason had an inline "border" style added to them */
    width: 75px;
    min-width: 75px;
    vertical-align: top;
    text-align: start;
    padding: 6px 8px;
    position: relative;
    outline: none;
}

.FoyerEditorTheme__tableCellSortedIndicator {
    display: block;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #999;
}

.FoyerEditorTheme__tableCellResizer {
    position: absolute;
    right: -4px;
    height: 100%;
    width: 8px;
    cursor: ew-resize;
    z-index: 10;
    top: 0;
}

.FoyerEditorTheme__tableCellHeader {
    background-color: #0000000a;
    text-align: start;
}

.FoyerEditorTheme__tableCellSelected {
    background-color: #c9dbf0;
}

.FoyerEditorTheme__tableCellPrimarySelected {
    border: 2px solid rgb(60, 132, 244);
    display: block;
    height: calc(100% - 2px);
    position: absolute;
    width: calc(100% - 2px);
    left: -1px;
    top: -1px;
    z-index: 2;
}

.FoyerEditorTheme__tableCellEditing {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.FoyerEditorTheme__tableAddColumns {
    position: absolute;
    top: 0;
    width: 20px;
    background-color: #eee;
    height: 100%;
    right: 0;
    animation: table-controls 0.2s ease;
    border: 0;
    cursor: pointer;
}

.FoyerEditorTheme__tableAddColumns:after {
    background-image: url(../images/icons/plus.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.FoyerEditorTheme__tableAddColumns:hover {
    background-color: #c9dbf0;
}

.FoyerEditorTheme__tableAddRows {
    position: absolute;
    bottom: -25px;
    width: calc(100% - 25px);
    background-color: #eee;
    height: 20px;
    left: 0;
    animation: table-controls 0.2s ease;
    border: 0;
    cursor: pointer;
}

.FoyerEditorTheme__tableAddRows:after {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.FoyerEditorTheme__tableAddRows:hover {
    background-color: #c9dbf0;
}

@keyframes table-controls {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.FoyerEditorTheme__tableCellResizeRuler {
    display: block;
    position: absolute;
    width: 1px;
    background-color: rgb(60, 132, 244);
    height: 100%;
    top: 0;
}

.FoyerEditorTheme__tableCellActionButtonContainer {
    display: block;
    right: 5px;
    top: 6px;
    position: absolute;
    z-index: 4;
    width: 20px;
    height: 20px;
}

.FoyerEditorTheme__tableCellActionButton {
    background-color: #eee;
    display: block;
    border: 0;
    border-radius: 20px;
    width: 20px;
    height: 20px;
    color: #222;
    cursor: pointer;
}

.FoyerEditorTheme__tableCellActionButton:hover {
    background-color: #ddd;
}

.FoyerEditorTheme__characterLimit {
    display: inline;
    background-color: #ffbbbb !important;
}

.FoyerEditorTheme__ol1 {
    padding: 0;
    margin: 0;
    list-style-position: outside;
}

.FoyerEditorTheme__ol2 {
    padding: 0;
    margin: 0;
    list-style-type: upper-alpha;
    list-style-position: outside;
}

.FoyerEditorTheme__ol3 {
    padding: 0;
    margin: 0;
    list-style-type: lower-alpha;
    list-style-position: outside;
}

.FoyerEditorTheme__ol4 {
    padding: 0;
    margin: 0;
    list-style-type: upper-roman;
    list-style-position: outside;
}

.FoyerEditorTheme__ol5 {
    padding: 0;
    margin: 0;
    list-style-type: lower-roman;
    list-style-position: outside;
}

.FoyerEditorTheme__ul {
    padding: 0;
    margin: 0;
    list-style-position: outside;
}

.FoyerEditorTheme__listItem {
    margin: 0 32px;
}

.FoyerEditorTheme__listItemChecked,
.FoyerEditorTheme__listItemUnchecked {
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 24px;
    padding-right: 24px;
    list-style-type: none;
    outline: none;
}

.FoyerEditorTheme__listItemChecked {
    text-decoration: line-through;
}

.FoyerEditorTheme__listItemUnchecked:before,
.FoyerEditorTheme__listItemChecked:before {
    content: '';
    width: 16px;
    height: 16px;
    top: 2px;
    left: 0;
    cursor: pointer;
    display: block;
    background-size: cover;
    position: absolute;
}

.FoyerEditorTheme__listItemUnchecked[dir='rtl']:before,
.FoyerEditorTheme__listItemChecked[dir='rtl']:before {
    left: auto;
    right: 0;
}

.FoyerEditorTheme__listItemUnchecked:focus:before,
.FoyerEditorTheme__listItemChecked:focus:before {
    box-shadow: 0 0 0 2px #a6cdfe;
    border-radius: 2px;
}

.FoyerEditorTheme__listItemUnchecked:before {
    border: 1px solid #999;
    border-radius: 2px;
}

.FoyerEditorTheme__listItemChecked:before {
    border: 1px solid rgb(61, 135, 245);
    border-radius: 2px;
    background-color: #3d87f5;
    background-repeat: no-repeat;
}

.FoyerEditorTheme__listItemChecked:after {
    content: '';
    cursor: pointer;
    border-color: #fff;
    border-style: solid;
    position: absolute;
    display: block;
    top: 6px;
    width: 3px;
    left: 7px;
    right: 7px;
    height: 6px;
    transform: rotate(45deg);
    border-width: 0 2px 2px 0;
}

.FoyerEditorTheme__nestedListItem {
    list-style-type: none;
}

.FoyerEditorTheme__nestedListItem:before,
.FoyerEditorTheme__nestedListItem:after {
    display: none;
}

.FoyerEditorTheme__tokenComment {
    color: slategray;
}

.FoyerEditorTheme__tokenPunctuation {
    color: #999;
}

.FoyerEditorTheme__tokenProperty {
    color: #905;
}

.FoyerEditorTheme__tokenSelector {
    color: #690;
}

.FoyerEditorTheme__tokenOperator {
    color: #9a6e3a;
}

.FoyerEditorTheme__tokenAttr {
    color: #07a;
}

.FoyerEditorTheme__tokenVariable {
    color: #e90;
}

.FoyerEditorTheme__tokenFunction {
    color: #dd4a68;
}

.FoyerEditorTheme__mark {
    background: rgba(255, 212, 0, 0.14);
    border-bottom: 2px solid rgba(255, 212, 0, 0.3);
    padding-bottom: 2px;
}

.FoyerEditorTheme__markOverlap {
    background: rgba(255, 212, 0, 0.3);
    border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}

.FoyerEditorTheme__mark.selected {
    background: rgba(255, 212, 0, 0.5);
    border-bottom: 2px solid rgba(255, 212, 0, 1);
}

.FoyerEditorTheme__markOverlap.selected {
    background: rgba(255, 212, 0, 0.7);
    border-bottom: 2px solid rgba(255, 212, 0, 0.7);
}

.FoyerEditorTheme__embedBlock {
    user-select: none;
}

.FoyerEditorTheme__embedBlockFocus {
    outline: 2px solid rgb(60, 132, 244);
}

.FoyerEditorTheme__layoutContaner {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}

.FoyerEditorTheme__layoutItem {
    border: 1px dashed #ddd;
    padding: 8px 16px;
}

/* this is for the table of contents plugin*/
.table-of-contents .heading2 {
    margin-left: 10px;
}

.table-of-contents .heading3 {
    margin-left: 20px;
}

.selected-heading {
    color: #3578e5;
    position: relative;
}

.selected-heading-wrapper::before {
    content: ' ';
    position: absolute;
    display: inline-block;
    left: -30px;
    top: 4px;
    z-index: 10;
    height: 4px;
    width: 4px;
    background-color: #3578e5;
    border: solid 4px white;
    border-radius: 50%;
}

.normal-heading {
    cursor: pointer;
    line-height: 20px;
}

.table-of-contents {
    color: #65676b;
    position: fixed;
    top: 200px;
    right: -35px;
    padding: 10px;
    width: 250px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    z-index: 1;
    height: 300px;
}

.first-heading {
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.headings {
    list-style: none;
    margin-top: 0;
    margin-left: 10px;
    padding: 0;
    overflow: scroll;
    width: 200px;
    height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.headings::-webkit-scrollbar {
    display: none;
}

.headings::before {
    content: ' ';
    position: absolute;
    height: 220px;
    width: 4px;
    right: 240px;
    margin-top: 5px;
    background-color: #ccd0d5;
    border-radius: 2px;
}

.normal-heading-wrapper {
    margin-left: 32px;
    position: relative;
}

/* TableCellResizer */
.TableCellResizer__resizer {
    position: absolute;
}

/* table actions */
.table-cell-action-button-container {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.table-cell-action-button {
    background-color: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    position: relative;
    border-radius: 15px;
    color: #222;
    display: inline-block;
    cursor: pointer;
}

.action-button {
    background-color: #eee;
    border: 0;
    padding: 8px 12px;
    position: relative;
    margin-left: 5px;
    border-radius: 15px;
    color: #222;
    display: inline-block;
    cursor: pointer;
}

.action-button:hover {
    background-color: #ddd;
    color: #000;
}

.action-button-mic.active {
    animation: mic-pulsate-color 3s infinite;
}

button.action-button:disabled {
    opacity: 0.6;
    background: #eee;
    cursor: not-allowed;
}

.dropdown {
    z-index: 1000;
    display: block;
    position: fixed;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    min-height: 40px;
    background-color: #fff;
}

.dropdown .item {
    margin: 0 8px 0 8px;
    padding: 8px;
    color: #050505;
    cursor: pointer;
    line-height: 16px;
    font-size: 15px;
    display: flex;
    align-content: center;
    flex-direction: row;
    flex-shrink: 0;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    border: 0;
    max-width: 250px;
    min-width: 100px;
}

.dropdown .item.fontsize-item,
.dropdown .item.fontsize-item .text {
    min-width: unset;
}

.dropdown .item .active {
    display: flex;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.dropdown .item:first-child {
    margin-top: 8px;
}

.dropdown .item:last-child {
    margin-bottom: 8px;
}

.dropdown .item:hover {
    background-color: #eee;
}

.dropdown .item .text {
    display: flex;
    line-height: 20px;
    flex-grow: 1;
    min-width: 150px;
}

.dropdown .item .icon {
    display: flex;
    width: 20px;
    height: 20px;
    user-select: none;
    margin-right: 12px;
    line-height: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.dropdown .divider {
    width: auto;
    background-color: #eee;
    margin: 4px 8px;
    height: 1px;
}

@media screen and (max-width: 1100px) {
    .dropdown-button-text {
        display: none !important;
    }

    .dialog-dropdown>.dropdown-button-text {
        display: flex !important;
    }

    .font-size .dropdown-button-text {
        display: flex !important;
    }

    .code-language .dropdown-button-text {
        display: flex !important;
    }
}

.draggable-block-menu {
    border-radius: 4px;
    padding: 2px 1px;
    cursor: grab;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.draggable-block-menu:active {
    cursor: grabbing;
}

.draggable-block-menu:hover {
    background-color: #efefef;
}

.draggable-block-target-line {
    pointer-events: none;
    background: deepskyblue;
    height: 4px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    will-change: transform;
}

/* Collapsible */

.Collapsible__container {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 8px;
}

.Collapsible__title {
    cursor: pointer;
    padding: 5px 5px 5px 20px;
    position: relative;
    font-weight: bold;
    list-style: none;
    outline: none;
}

.Collapsible__title::marker,
.Collapsible__title::-webkit-details-marker {
    display: none;
}

.Collapsible__title:before {
    border-style: solid;
    border-color: transparent;
    border-width: 4px 6px 4px 6px;
    border-left-color: #000;
    display: block;
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
}

.Collapsible__container[open]>.Collapsible__title:before {
    border-color: transparent;
    border-width: 6px 4px 0 4px;
    border-top-color: #000;
}

.Collapsible__content {
    padding: 0 5px 5px 20px;
}

.Collapsible__collapsed .Collapsible__content {
    display: none;
    user-select: none;
}

/* for FoyerEditor descriptions in forms */
.form-description img {
    max-width: 100%;
    border: none;
    display: inline;
}

/* For resizing */
.editor .editor-image .image-resizer {
    display: block;
    width: 7px;
    height: 7px;
    position: absolute;
    background-color: rgb(60, 132, 244);
    border: 1px solid #fff;
}

.editor .editor-image .image-resizer.image-resizer-n {
    top: -6px;
    left: 48%;
    cursor: n-resize;
}

.editor .editor-image .image-resizer.image-resizer-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.editor .editor-image .image-resizer.image-resizer-e {
    bottom: 48%;
    right: -6px;
    cursor: e-resize;
}

.editor .editor-image .image-resizer.image-resizer-se {
    bottom: -2px;
    right: -6px;
    cursor: nwse-resize;
}

.editor .editor-image .image-resizer.image-resizer-s {
    bottom: -2px;
    left: 48%;
    cursor: s-resize;
}

.editor .editor-image .image-resizer.image-resizer-sw {
    bottom: -2px;
    left: -6px;
    cursor: sw-resize;
}

.editor .editor-image .image-resizer.image-resizer-w {
    bottom: 48%;
    left: -6px;
    cursor: w-resize;
}

.editor .editor-image .image-resizer.image-resizer-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

/* For other image editing */
.editor span.editor-image {
    cursor: default;
    display: inline-block;
    position: relative;
    user-select: none;
}

.editor .editor-image img {
    max-width: 100%;
    cursor: default;
}

.editor .editor-image img.focused {
    outline: 2px solid rgb(60, 132, 244);
    user-select: none;
}

.editor .editor-image img.focused.draggable {
    cursor: grab;
}

.editor .editor-image img.focused.draggable:active {
    cursor: grabbing;
}

.editor .editor-image .image-caption-container .tree-view-output {
    margin: 0;
    border-radius: 0;
}

.editor .editor-image .image-caption-container {
    display: block;
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
    border-top: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 100px;
    color: #000;
    overflow: hidden;
}

.editor .editor-image .image-caption-button {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 30%;
    padding: 10px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    min-width: 100px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.editor .editor-image .image-caption-button:hover {
    background-color: rgba(60, 132, 244, 0.5);
}

.editor .editor-image .image-edit-button:hover {
    background-color: rgba(60, 132, 244, 0.1);
}