.center-block-50 {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}


/* Bootstrap overrides */

/* Alias of Bootstrap's .alert-danger; useful with Django's messages framework. */
.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.breadcrumb {
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    margin: 15px 0;
}

.table.table-striped:not(.table-bordered) > tbody > tr:hover {
    background-color: lightyellow;
}


/* Messages added via Django's messages framework. */
ul#site-messages {
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
    padding: 0;
    width: 400px;
    z-index: 1000;
    list-style: none;
}
ul#site-messages > li.site-message {
    border-radius: 4px;
    margin: 0;
    padding: 0;
}


/* Breadcrumbs */
ul.breadcrumbs {
    list-style: none;
    margin: 0 -30px;
    padding: 5px 30px;
    display: flex;
    flex-direction: row;
    background-color: #f0f0f0;
    border-bottom: 1px solid lightgray;
}
ul.breadcrumbs > li {
    font-size: 16px;
    margin: 0;
    padding: 0;
}
ul.breadcrumbs > li::after {
    content: "→";
    padding: 0 5px;
}
ul.breadcrumbs > li:first-child {
    padding-left: 0;
}
ul.breadcrumbs > li:last-child {
    padding-right: 0;
}
ul.breadcrumbs > li:last-child::after {
    content: "";
    padding: 0;
}
ul.breadcrumbs > li > a {
    text-decoration: none;
}


/* AddThis */
.add-this-widget {
    margin: 10px 0;
}
.add-this-widget-placeholder {
    background-color: #eee;
    font-size: 11px;
    font-style: italic;
    line-height: 1;
    padding: 4px;
}

/* Media */
.media {
    overflow: hidden;
}
.media-file {
    height: 200px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid white;
}
.media-file:hover {
    border: 1px solid #c8c8c8;
    background-color: #f8f8f8;
}
.media-file > a:first-child {
    display: block;
    width: 100%;
    min-width: 100px;
    height: 100%;
    margin: 0;
    padding: 0;
}
.media-file > :first-child > :first-child {
    height: 100px;
}
.media-file button.media-file-remove-link {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;

    width: 24px;
    height: 24px;

    margin: 0;
    padding: 0;

    font-size: 18px;
    line-height: 1;
    text-align: center;

    color: #a94442;
    background-color: #f2dede;
    cursor: pointer;

    border: none;
    border-radius: 50%;
    box-shadow: 1px 1px 2px;
}
.media-file button.media-file-remove-link:hover {
    color: darkred;
}

/* Related articles (shown on article, essay, and narrative pages) */
.related-article {
    background-color: #efefef;
    border: 2px solid #c8c8c8;
    border-radius: 2px;
    margin-bottom: 5px;
    padding: 5px;
}
.related-article:before,
.related-article:after {
    content: " ";
    display: table;
}
.related-article:after {
    clear: both;
}
.related-article:last-child {
    margin-bottom: 0;
}
.related-article > div {
    float: left;
    position: relative;
}
.related-article-image {
    width: 25%;
    padding-right: 5px;
}
.related-article-image > a {
    background-color: #f4f4f4;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    display: block;
    min-height: 100px;
    position: relative;
}
.related-article-image > a > img {
    margin: auto;
    padding: 5px;
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.related-article-text {
    width: 75%;
    max-height: 100px;
    overflow: auto;
}
.related-article-text > a {
    display: block;
}

/* Glossary links & popups */
/* XXX: This might only be needed on article pages */
a.glossary-term-link {
    text-decoration-line: underline;
    text-decoration-style: dashed;
}
a.glossary-term-link:hover {
    text-decoration-style: solid;
}
.glossary-term-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    min-width: 240px;
    max-width: 400px;
    z-index: 10;
    background-color: #f8f8f8;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    box-shadow: 2px 2px 4px #000;
    padding: 10px;
}
.glossary-term-popup > dt {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
}
.glossary-term-popup > dd {
    font-size: 14px;
    margin: 0;
    padding: 0;
}


/* Slideshows */
.ohs-slideshow {
    background-color: #181818;
    box-shadow: 2px 2px 2px black;
    color: #c8c8c8;
    margin: 0;
    padding: 8px;
}
.ohs-slideshow::before {
    content: "Slideshow → ";
}
.ohs-slideshow a {
    color: #c8c8c8;
}
.ohs-slideshow a:hover {
    color: #f8f8f8;
}
p.ohs-slideshow {
    margin-bottom: 10px;
}
