.tile-button {
    display: inline-flex;
    align-items: center;
    width: 320px;
    height: 240px;
    border-radius: 0;
    border: none;
    padding: 40px;
    text-align: left;
    font-size: 65px;
    font-weight: bold;
    font-style: italic;
    line-height: 110%;
    color: #ffffff;
    background-color: #f6875f;
    overflow: hidden;
}

.tile-button a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.tile-button a:hover {
    color: #ffffff;
    text-decoration: none;
}

.textus-tab-content {
    margin-bottom: 3em;
}

.textus-tab-content .tab-pane {
    padding: 2em 3em;
    border: 1px #e64626 solid;
}

.textus-tab-content .textus-tab-pane {
    padding: 2em 3em;
    border: 2px solid black;
}

.textus-tab-content .textus-tab-pane table {
    width: 100%;
}

.textus-tab-content .textus-tab-pane table td {
    max-width: 140px;
    word-wrap: break-word;
}

.textus-tab-content .textus-tab-pane table td img {
    max-height: 400px;
}

.nav.nav-tabs-small .nav-item .nav-link {
    font-size: 16px;
    color: #707070;
    border: 1px #707070 solid;
    border-bottom: none;
}

/* Control styles */
.custom-control-label:after,
.custom-control-label:before {
    top: 0.35em;
}

/* Post list styles */
.post-list {
    margin-bottom: 1em;
}

.post-list-item {
    margin-bottom: 1em;
}

.post-list-item-head {
    margin-bottom: 1em;
}

.post-list-item-title,
.post-list-item-author {
    display: inline-block;
    font-size: 24px;
}

.post-list-item-author {
    margin-left: 2em;
}

/* Utility styles */
.line-below {
    border-bottom: 2px solid #e64626;
    padding-bottom: 10px;
}

.margin-top-2 {
    margin-top: 2em;
}

.wp-block-columns {
    text-align: center;
    margin-bottom: 0;
}

.choices[data-type*="select-one"] {
    max-width: 50%;
    margin-bottom: 0;
}

#table-filters {
    max-width: 100%;
    width: 100%;
    display: grid;
}

body
    .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

.block-editor-block-inspector .components-base-control:where(:not(:last-child)),
.block-editor-block-inspector
    .components-radio-control:where(:not(:last-child)) {
    margin-bottom: 0px !important;
}

.annotation-img {
    min-width: 250px !important;
    max-height: none !important;
}

.loading {
    max-width: 100px !important;
    max-height: 100px !important;
    min-width: 100px !important;
    max-height: 100px !important;
    cursor: wait;
}

.annotation-table-pagination {
    margin-top: 10px;
}

.glycerine-table {
    font-family: sans-serif;
}

.horizontal-center {
    display: flex;
    justify-content: center;
}

.annotation-table {
    width: 100%;
    font-family: sans-serif;
}

.annotation-table th,
.annotation-table td {
    border: 1px solid black;
}

.texts-panels {
    width: 100%;
    margin-top: 10px;
}

.texts-dropdown {
    padding: 20px;
    background: #d3d3d3;
    border-radius: 8px;
}

#pagination {
    display: flex;
    justify-content: center;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.table-annotation {
    border-left: 3px solid #dfdfdf;
    padding: 0;
    border-radius: 3px;
    margin: 6px 0 6px 24px;
    width: 100%;
}

.table-annotation .property {
    padding-left: 6px;
    gap: 10px;
    display: flex;
    align-items: center;
}

.table-annotation .property .value {
    margin-bottom: 0;
}

.wp-block-post-title {
    display: none;
}

* {
    box-sizing: border-box;
}

.mySlides {
    display: none;
}

.mySlidesFeatured {
    width: 100%;
}

/* Base styles */
.btn-primary {
    font-size: 24px !important;
    color: white !important;
}

.e-headertext {
    color: black;
}

.vertical-center {
    display: flex;
    align-items: center;
}

/* Header styles */
.midbar {
    position: relative;
    box-shadow: 0 3px 6px #00000029;
    margin-bottom: 20px;
}

.main-brand {
    text-align: center;
}

.main-logo {
    display: inline-block;
    width: 70%;
    padding-top: 5px;
}

.main-logo img {
    width: 100%;
}

.main-logo .main-logo-image {
    display: none;
}

.main-logo .main-logo-image-white {
    display: block;
}

@media (min-width: 992px) {
    .main-logo .main-logo-image {
        display: block;
    }

    .main-logo .main-logo-image-white {
        display: none;
    }

    .mobile-only {
        display: none;
    }
}

/* Navigation styles */
.navbar-nav .nav-link {
    font-size: 23px;
    font-weight: normal;
}

.search-archive-button {
    background-color: #000000;
    color: #ffffff;
    font-size: 24px;
    padding: 0.5em 0.5em;
}

.search-archive-button i {
    color: #e64626;
}

a.search-archive-button:hover {
    color: #ffffff;
}

/* Button styles */
.btn {
    font-size: 24px;
    font-weight: bold;
}

.btn .fa {
    margin-right: 0.6em;
}

.btn-outline-primary {
    color: #333;
}

.btn-outline-primary .fa {
    color: #e64626;
}

.btn-outline-primary:hover .fa {
    color: #ffffff;
}

.tile-button {
    display: inline-flex;
    align-items: center;
    width: 320px;
    height: 240px;
    border-radius: 0;
    border: none;
    padding: 40px;
    text-align: left;
    font-size: 65px;
    font-weight: bold;
    font-style: italic;
    line-height: 110%;
    color: #ffffff;
    background-color: #f6875f;
    overflow: hidden;
}

.tile-button a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.tile-button a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Tab styles */
.nav.nav-tabs .nav-item .nav-link {
    font-size: 24px;
    background-color: #cccccc;
    color: black;
    border: 2px solid black;
    border-bottom: none;
}

.nav.nav-tabs .nav-item .nav-link.active {
    background-color: #e64626;
    color: #ffffff;
    border: 1px #e64626 solid;
    border-bottom: none;
}

.tab-content {
    margin-bottom: 3em;
}

.textus-tab-content .textus-tab-pane {
    padding: 2em 3em;
    border: 2px solid black;
}

.tab-content .tab-pane table.table tr:nth-child(odd) {
    background-color: #ffffff;
}

.tab-content .tab-pane table.table td {
    border-top: none;
    border-bottom: none;
    max-width: 140px;
    word-wrap: break-word;
}

.nav.nav-tabs-small .nav-item .nav-link {
    font-size: 16px;
    color: #707070;
    border: 1px #707070 solid;
    border-bottom: none;
}

/* Control styles */
.custom-control-label:after,
.custom-control-label:before {
    top: 0.35em;
}

/* Post list styles */
.post-list {
    margin-bottom: 1em;
}

.post-list-item {
    margin-bottom: 1em;
}

.post-list-item-head {
    margin-bottom: 1em;
}

.post-list-item-title,
.post-list-item-author {
    display: inline-block;
    font-size: 24px;
}

.post-list-item-author {
    margin-left: 2em;
}

/* Source embed */
.text-source {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1em;
}

.text-source iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.text-source img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
}

.text-source .source-embed-text {
    font-size: 24px;
    font-weight: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 30%;
}

/* File embed */
.text-files-container .tab-content .tab-pane {
    position: relative;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Utility styles */
.line-below {
    border-bottom: 2px solid #e64626;
    padding-bottom: 10px;
}

.margin-top-2 {
    margin-top: 2em;
}

.modal-content {
    position: relative;
    border: none !important;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.custom-control.custom-checkbox .custom-control-label.custom-label-top:before,
.custom-control.custom-checkbox .custom-control-label.custom-label-top:after {
    top: 0.2em !important;
}

.comment-list {
    padding: 1rem;
    border: 2px solid black;
    background-color: white;
}

@media (min-width: 992px) {
    #jsPrimaryMenu .navbar-nav .nav-link {
        border-left: 0;
    }

    #jsPrimaryMenu .navbar-nav > .nav-item > .nav-link {
        border-left: 1px solid #333;
    }
}

.navbar-nav .nav-item {
    position: relative !important;
}

table.center {
    margin-left: auto;
    margin-right: auto;
}

#success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

/* Glycerine plugin css code */

#annotation-search {
    width: 100%;
}

.annotation-table {
    width: 100%;
}

.annotation-table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.annotation-table-pagination .page-number {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: 0.3rem;
    line-height: 1.25;
    color: #e64626;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.annotation-table-pagination .page-number:disabled {
    color: #fff !important;
    background-color: #e64626 !important;
    border-color: #e64626 !important;
    cursor: not-allowed;
}

.annotation-table-column-filters .column-filter-label {
    font-size: 16px;
}

.annotation-tag {
    background-color: #e4e5e5;
    color: #515c66;
    border-radius: 16px;
    padding: 0 0.5rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

body
    .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

#annotation-table-body > tr > td {
    border: 1px solid rgba(232, 241, 248, 0.7);
    border-width: 0 0 1px 0;
}

#annotation-search {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.image-entry {
    border: 1px solid rgb(204, 204, 204);
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loadingWheel {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    display: none;
}

.spinner {
    display: inline-block;
    border: 16px solid lightgray;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 90px;
    height: 90px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #3498db;
    font-size: 22px;
    font-weight: bolder;
}

.glycerine-iframe {
    width: 100%;
    height: 650px;
    margin-bottom: 1rem;
}
.wp-block-navigation__submenu-container {
    z-index: 10 !important;
}

.wp-block-navigation:not(.has-text-color)
    .wp-block-navigation__submenu-container {
    z-index: 10 !important;
}

.contribute-form .contribute-grid {
    display: grid;
    margin-left: 2rem;
    margin-right: 2rem;
    gap: 16px 20px;
}

.contribute-form label {
    display: block;
    font-weight: 600;
    margin: 0;
}

/* Inputs */
.contribute-form .cf7-input,
.contribute-form .cf7-textarea,
.contribute-form .wpcf7 input[type="file"] {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.contribute-form .cf7-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Submit button */
.contribute-form .cf7-submit {
    display: inline-block;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    background: #e64626;
    color: #fff;
}

.contribute-form .contribute-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.nav-tabs .nav-item {
    padding: 0 !important;
}

.tile-img {
    max-width: 100%;
}

.paginationjs .paginationjs-pages li {
    padding-left: 0 !important;
    padding-bottom: 0 !important;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 1em;
    padding: 10px;
    box-sizing: border-box;
}

.facet-container {
    padding-top: 0.5em;
    padding-bottom: 1em;
    font-size: 23px;
    margin-bottom: 1em;
}

.controller-container {
    max-width: 80%;
    margin: 0 auto;
}

.type-filter {
    float: right;
    font-size: 23px;
    padding-right: 15px;
}

.entity-tile {
    background-color: #d45135;
    color: white;
    flex-shrink: 0;
    padding: 20px 10px;
    line-height: 120%;
    min-height: 130px;
}

.classics-tile {
    max-width: 100%;
    background-color: #0054a3;
    color: white;
    flex-shrink: 0;
    padding: 40px 30px;
    line-height: 120%;
}

.tile-title {
    font-family: Antwerp, Georgia, serif;
    font-size: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 120%;
}

.tile-title a {
    color: white;
    text-decoration: none;
}

.tile-title a:hover {
    color: white;
    text-decoration: underline;
}

.tile-title::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 50%;
    left: -10px;
}

.tile-info {
    font-size: 1em;
    padding-top: 1rem;
}

/* Choice styles override */
.choices .choices__inner .choices__list--multiple .choices__item {
    font-size: inherit;
    font-weight: 600;
    background-color: #f1eee9;
    border: none;
    color: inherit;
    padding: 2px 10px;
}

.choices
    .choices__inner
    .choices__list--multiple
    .choices__item[data-deletable] {
    padding-right: 1em;
}

.choices[data-type*="select-multiple"] .choices__button,
.choices[data-type*="text"] .choices__button {
    min-width: initial;
    height: initial;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: initial;
    color: inherit;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);
    filter: invert(1);
    border-left: none;
}

@media (min-width: 640px) {
    .choices__list--dropdown .choices__item--selectable,
    .choices__list[aria-expanded] .choices__item--selectable {
        padding-right: 20px;
    }
}

@media (max-width: 1199px) {
    #text-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #text-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    #text-tiles {
        grid-template-columns: 1fr;
    }
}

/* Dual slider styles override */
.rs-container {
    font-family: inherit;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.rs-container .rs-bg,
.rs-container .rs-selected {
    border: none;
    height: 2px;
    top: 0.7em;
}

.rs-container .rs-bg {
    background-color: rgba(0, 0, 0, 0.2);
}

.rs-container .rs-selected {
    background-color: #e64626;
}

.rs-container .rs-scale span ins {
    display: none;
}

.rs-container .rs-scale span::before {
    background-color: transparent;
}

.rs-container .rs-pointer {
    background-color: #e64626;
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    top: 0.4em;
}

.rs-container .rs-pointer:before,
.rs-container .rs-pointer:after {
    content: none;
}

.rs-container .rs-pointer .rs-tooltip {
    color: inherit;
    min-width: 0;
    height: auto;
    padding: 0;
    font-size: 80%;
    background: transparent;
    border: none;
    transform: translate(-50%, -1.7em);
    left: 0.5em;
}

/* Network graph */
#network-container {
    width: 100%;
    height: 700px;
    border: 2px solid black;
    background-color: white;
    position: relative;
}

#network-tooltip {
    position: absolute;
    background-color: #fff;
    max-width: 200px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

#network-tooltip p {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 15px;
}

#network-controls {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 100;
}

#legendDiv {
    position: absolute;
    max-width: 20%;
    padding: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 100;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    background-color: white;
}

.network-button {
    display: block;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    cursor: pointer;
}

ul li {
    list-style-type: none !important;
}
