.article {
    text-align: left;
}


.article h1 {
    font-size: 3rem;
    letter-spacing: -0.15rem;
    padding: 0 5% 25px;
}

.article h2 {
    font-size: 1.75rem;
    padding: 0 5% 50px;
    font-weight: normal;
    letter-spacing: -0.075rem;
}

.article h3 {
    font-size: 1.5em;
    padding: 50px 5% 20px;
}


.article article h3 {
    font-size: 1.5em;
    font-weight: normal;
    padding: 1em 0;
}

.article article h4 {
    font-size: 1.2em;
    font-weight: normal;
    padding: 1em 0;
}


.article .category {
    display: flex;
    border: solid 1px var(--border-alpha);
    background-color: #000A;
    padding: 5px 12px 5px 10px;
    border-radius: 5px;
    float: right;
    margin: 10px 12px 0 0;
    pointer-events: none;
}

.article .category i {
    width: 18px;
    height: 1rem;
    vertical-align: -9px;
    margin-right: 7px;
}


.article .copyright {
    display: inline-block;
    background: #00000055;
    font-size: 0.75em;
    text-shadow: 0 1px 3px var(--background-primary-color);
    vertical-align: top;
    padding: 0.3em 1em;
    border-radius: 10px 0 10px 0;
}


.article .back-btn {
    margin: 50px 5% 0;
}

.article .back-btn i {
    margin-bottom: 2px;
    margin-right: 3px;
}

.article .back-btn .btn {
    background-color: var(--background-modal);
    border: solid 2px var(--border-alpha);
}

.article .back-btn .btn:hover {
    border-color: var(--text-secondary-color);
}


.article .display-article.article1 {
    overflow-x: unset;
    white-space: unset;
    padding: 0 5%;
    margin: 0 -5px;
}

.article .display-article.article1 li {
    width: calc((100%/4) - 10px);
}



.article .page-header .cover {
    overflow: hidden;
}

.article .page-header .no-cover {
    height: 120px;
}


.article .toppage-buttons {
    padding: 0 5% 10px;
}


.article .views {
    padding: 0 5% 25px;
}

.article .views .count {
    padding: 0 5px;
    margin: 0;
}


.article .content-box {
    width: 95%;
    max-width: unset;
    padding: 25px 2.5%;
}


.article article {
    line-height: 1.5;
}


.article article p {
    padding: 5px 0;
}


.article article a {
    color: var(--highlight-color);
}

.article article a:hover {
    text-decoration: underline;
}


.article article img {
    border-radius: 5px;
    min-width: unset;
    right: unset !important;
    cursor: -webkit-pointer;
    cursor: -moz-pointer;
    cursor: -o-pointer;
    cursor: -ms-pointer;
    cursor: pointer;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.article article img:hover {
    -webkit-filter: drop-shadow(0 0 10px var(--background-secondary-color));
    -moz-filter: drop-shadow(0 0 10px var(--background-secondary-color));
    -o-filter: drop-shadow(0 0 10px var(--background-secondary-color));
    -ms-filter: drop-shadow(0 0 10px var(--background-secondary-color));
    filter: drop-shadow(0 0 10px var(--background-secondary-color));
}

.article article img {
    height: auto;
    width: auto;
    max-height: 500px;
    max-width: 100%;
}



.article article iframe {
    border: none;
    border-radius: 10px;
    max-width: 100%;
}


.article ul {
    margin-inline-start: 0;
    margin: 0.25em 0 1em;
}


.article .tags {
    padding: 0 5%;
}


.article .links {
    padding: 10px 5%;
}


.article .posted {
    color: var(--text-secondary-color);
    font-size: 0.75rem;
    line-height: 30px;
    padding: 0 calc(5% - 10px);
}

.article .posted p {
    padding-right: 5px;
    margin: auto;
}

.article .posted .written-by,
.article .posted .written-on {
    display: inline-flex;
    margin: 5px 10px;
    vertical-align: middle;
}

.written-by .photo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 7px;
}


.article .related {
    padding: 0 calc(5% - 5px);
}

.article .related ul > li {
    display: inline-block;
    width: calc(100% / 4);
}

.article .related ul ul li {
    width: calc(100% - 10px);
}

.article .related h3 {
    padding: 0 0 10px;
}


.article .ql-video {
    border-radius: 10px;
}


.preview {
    background-color: var(--background-secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    line-height: 50px;
    z-index: 2;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
}

.preview a {
    display: block;
}

.preview b {
    line-height: 1;
}

.preview a > * {
    padding: 0 5px;
}



@media only screen and (min-width: 1200px) {

    .article .page-header .cover {
        border-radius: 10px 10px 0 0;
        margin-top: 20px;
    }

}


@media only screen and (max-width: 800px) {

    .article .related > li {
        width: calc(100% / 2);
    }

    .article .display-article.article1 li {
        width: calc((100%/2) - 10px);
    }

    .article .related ul > li {
        width: calc(100% / 2);
    }

}


@media only screen and (max-width: 600px) {

    .article h1 {
        font-size: 2rem;
    }

    .article h2 {
        font-size: 1.25rem;
    }

}


@media only screen and (max-width: 300px) {

    .article .related > li {
        width: 100%;
    }

    .article .display-article.article1 li {
        width: 100%;
    }

    .article .related ul > li {
        width: 100%;
    }

}
