/*!
 * Copyright 2022 youngmonkeys.org
 *
 * Licensed under the ezyplatform, Version 1.0.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://youngmonkeys.org/licenses/ezyplatform-1.0.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

.next-previous-posts-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.previous-post-wrapper,
.next-post-wrapper {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e2e2e3;
    border-radius: 8px;
    padding: 11px 16px 13px;
    transition: border-color .25s;
}

.next-post-wrapper {
    text-align: end;
}

.next-post-wrapper .next-title,
.previous-post-wrapper .previous-title {
    font-size: 14px;
    color: #3c3c43;
    opacity: 80%;
}

.next-post-wrapper .next-content,
.previous-post-wrapper .previous-content {
    color: #0068e1;
}

.post-table-of-contents-wrapper {
    padding: 30px 10px 20px 10px;
    position: fixed;
    max-height: 80vh;
    overflow-y: auto;
}

#post-table-of-contents {
    margin-top: 20px;
}

#post-table-of-contents .toc-parent {
    gap: 10px;
}

.table-of-contents-title {
    color: #000;
    text-align: center;
}

#post-table-of-contents .nav-link {
    color: #000;
    font-size: 16px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#post-table-of-contents .nav-link.active {
    color: #2074a1;
    border-left: 3px solid #2074a1;
}

.modal-image .modal-body {
    padding: 0;
}

.modal-image img {
    width: 100%;
    max-height: 90vh;
    object-fit: cover;
}
