#post-current-search-wrapper {
    text-align: center;
}
#post-current-search {
    margin: 0 auto 1em auto;
    display: inline-block;
}

#post-current-search a {
    margin: 0 2em;
}
#post-current-search a,
#post-current-search div {
    display: inline-block;
}
#post-current-search a:not(.enabled) {
    color: silver;
    cursor: text;
}

#post-view-wrapper #sidebar {
    line-height: 1.33em;
}

#post-view-wrapper #sidebar .box {
    margin-bottom: 1.5em;
    text-align: left;
}

@media all and (min-width: 62.5em) {
    #post-view-wrapper {
        display: -webkit-flex;
        display: flex;
    }

    #post-view-wrapper #sidebar {
        min-width: 15em;
        margin-right: 1em;
        -webkit-flex: 1;
        flex: 1;
    }

    #post-view-wrapper #post-view {
        -webkit-flex: 5;
        flex: 5;
    }
}

@media all and (max-width: 62.5em) {
    #post-view-wrapper {
        display: -webkit-flex;
        -webkit-flex-direction: column;
        display: flex;
        flex-direction: column;
    }
    #post-view-wrapper #sidebar {
        order: 2;
        margin-bottom: 1em;
        text-align: center;
    }
    #post-view-wrapper #sidebar .box {
        display: inline-block;
        width: 15em;
        vertical-align: top;
    }
    #post-view-wrapper #post-view {
        margin: 0 auto;
        width: 100%;
        order: 1;
    }
}

#post-view-wrapper .favorites li {
    display: inline-block;
    margin: 0 0.25em 0.25em 0;
}

#sidebar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#sidebar .other-info li {
    display: block;
    word-break: break-all;
    padding-left: 1em;
    text-indent: -1em;
}

#sidebar .tags li {
    display: block;
    word-break: break-all;
    padding-left: 20px;
    text-indent: -20px;
}
#sidebar .tags .tag-wrapper {
    max-width: 100%;
    position: relative;
    display: inline-block;
}
#sidebar .tags li a.tag-edit {
    margin-left: 20px;
}
#sidebar .tags li .tag-name {
    margin-right: 0.8em;
}
#sidebar .tags li .usages {
    color: silver;
}

#sidebar .author-box img {
    float: left;
    margin-right: 0.5em;
}
#sidebar .author-box .author-name {
    font-weight: bold;
}

#sidebar .other-info {
    margin-top: 1em;
    line-height: 150%;
}

#sidebar .fit-mode a {
    opacity: .25;
}
#sidebar .fit-mode a.active {
    opacity: 1;
}

#sidebar .essential {
    display: -webkit-flex;
    -webkit-justify-content: space-around;
    display: flex;
    justify-content: space-around;
    margin-bottom: 2em;
}
#sidebar .essential li {
    display: block;
    margin: 0 0.25em;
    vertical-align: top;
}
#sidebar .essential li i.fa {
    font-size: 200%;
}
#sidebar .essential li a {
    display: block;
    text-align: center;
    font-size: 87%;
}

#post-view #post-edit-target {
    padding: 1em;
    width: 50%;
    min-width: 30em;
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 1em 0.5em rgba(255, 255, 255, 0.8);
    z-index: 2;
    display: none;
}
#post-edit-target .form-wrapper {
    min-width: 100%;
}
#post-view>* {
    z-index: -1;
}

#post-edit-target .advanced-trigger .form-input {
    overflow: auto; /* fix browser's outline around the link being cut due to overflow: hidden; */
}
#post-edit-target .file-handler {
    margin: 0.5em 0;
}

#post-view-wrapper .post-history-wrapper {
    padding: 1em 0;
    display: none;
    word-break: break-all;
}

.post-content {
    position: relative;
    margin-bottom: 0.5em;
}
.post-content .object-wrapper {
    max-width: 100%;
    position: relative;
}
.post-content .object-wrapper img,
.post-content .object-wrapper object,
.post-content .object-wrapper iframe,
.post-content .object-wrapper video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: 0;
}
.post-content .object-wrapper video {
    background: black;
}

.post-notes-target {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.post-notes {
    position: relative;
    width: 100%;
    height: 100%;
}

.post-note-edit {
    pointer-events: auto;
    display: none;
    position: fixed;
    z-index: 3;
    background: white;
    border: 1px solid black;
    padding: 1em;
    left: 30%;
    top: 20%;
}
.post-note-edit textarea {
    width: 25em;
    height: 5em;
    display: block;
}
.post-note-edit .actions {
    pointer-events: none;
}
.post-note-edit button {
    pointer-events: auto;
    margin-top: 0.5em;
}
.post-note-edit .actions button:not(:last-child) {
    margin-right: 0.5em;
}

.post-note {
    outline: 0;
    pointer-events: auto;
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.3);
    font-size: 12pt;
}
.post-note:focus {
    border-color: rgba(255, 0, 0, 0.3);
    background-color: rgba(255, 225, 225, 0.3);
}
.post-note .text-wrapper {
    position: absolute;
    display: none;
    z-index: 1;
    top: calc(100%);
    left: -1px;
    padding-top: 0.5em;
    cursor: pointer;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}
.post-note .text {
    padding: 0.5em;
    background: lemonchiffon;
    border: 1px solid black;
}
.post-note:hover .text-wrapper {
    display: block;
}

.post-note .text p:first-of-type {
    margin-top: 0;
}
.post-note .text p:last-of-type {
    margin-bottom: 0;
}
