.article-container {
    font-family: 'Newsreader', 'Times New Roman', Times, serif;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 20px;
    box-sizing: content-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.header {
    font-size: 14px;
    color: red;
    font-weight: bold;
}

.title {
    font-size: 26px;
    font-weight: bold;
    margin-top: 5px;
    text-align: left;
}

.subtitle {
    font-size: 16px;
    font-style: italic;
    margin-top: 40px;
    margin-bottom: 15px;
}

.content {
    column-count: 3;
    column-gap: 20px;
    column-fill: balance;
    text-align: justify;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 750px;
}

.content p {
    margin: 0 0 15px 0;
    text-align: justify;
}

.dropcap {
    font-size: 32px;
    font-weight: bold;
    float: left;
    margin-right: 5px;
}

.image-container {
    display: none;
    justify-content: space-between;
    align-items: flex-end;
    margin: 20px 0;
    gap: 10px;
}

.image-container img {
    width: 50%;
    height: auto;
    border-radius: 5px;
}

.author {
    font-size: 14px;
    font-style: italic;
    color: gray;
    text-align: right;
    align-self: flex-end;
    margin-top: 30px;
}

.reference {
    font-size: 13px;
    font-style: normal;
    color: gray;
    text-align: left;
    align-self: flex-start; /* override align-items: center */
    margin-top: 5px;
}

.reference-cross {
    font-size: 14px;
    color: black;
    vertical-align: super;
    /* Aligns dagger slightly higher */
    margin-right: 2px;
}

.article-end::after {
    content: "■";
    font-size: 14px;
    margin-left: 10px;
    color: red;
    float: right
}

.rust-highlight {
    background-color: rgba(236, 121, 71, 0.4);
    color: rgb(0, 0, 0);
    padding: 1px 1px;
    border-radius: 3px;
    font-weight: regular;
    font-style: regular;
    /* Ensures text breaks inside a column */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pull-quote {
    font-weight: regular;
    font-size: 18px;
    font-style: italic;
    padding: 15px 20px;
    text-align: center;
    margin: 30px 0;
    break-inside: avoid-column;
}

.pull-quote::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;         /* Thin top line */
    background-color: gray;
    margin-bottom: 10px;
}

.pull-quote::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;        /* Thick bottom line */
    background-color: gray;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .content {
        column-count: 1;
    }
    .image-container {
        flex-direction: column; /* Stack images on mobile */
        align-items: center;
    }
    .image-container img {
        width: 100%;
    }
}

.katex {
    font-size: 100% !important;
    font-family: 'Newsreader', 'Latin Modern Math', 'Times New Roman', serif !important;
}