.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;
}

/* 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: 4px;
    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: 4px;
    min-height: 100px;
    padding: 4px;
    /* Flexbox layout to center image within <a> vertically & horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-article-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.related-article-text {
    width: 75%;
    max-height: 100px;
    overflow: auto;
}
