@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Noto+Sans+TC:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --p-c-width: clamp(360px, 50vw, 820px);
    --p-c-max-width: 90vw;
    --p-c-max-height: 100vh;
    --default-border-radius-value: 8px;
    --p-c-head-text-size: 20px;
    --c-btn-container-height: 15vh;
    --default-input-space-font-size: 20px;
    --p-c-container-width: clamp(90%, 95%, 95%);
    --p-c-border-width: 0.1em;
    --p-c-buttom-boder-c: trasprent;

    --default-font: Roboto;
    --chinese-font: 'Noto Sans TC', Arial;
    --coding-font: 'JetBrains Mono', monospace;
}

:root {
    /*Post Card*/
    --p-c-bg-color: 255, 255, 255;
    --p-c-bg-alpha: 0.8;
    /*--p-c-border-color: rgba(138, 138, 138, 0.16);*/
    --p-c-border-color: rgba(250, 242, 242, 0.16);
    --p-c-text-color: #0b1220;
    /*--p-c-box-inner-shadow-c: rgba(30, 58, 138, 0.12);*/
    /*--p-c-box-outer-shadow-c: rgba(30, 58, 138, 0.06);*/
    --p-c-box-inner-shadow-c: none;
    --p-c-box-outer-shadow-c: none;
    --wysiwyg-border-color: #eeeeea;
    --wysiwyg-placeholder-color: rgba(0,0,0,.45);
    --scrollbar-color: rgba(89, 89, 89, 0.8) transparent;

    --c-scrollbar-color: rgba(89, 89, 89, 0.8) transparent;

    /* Comment & Tag */
    --comment-bg-color: rgba(255, 255, 255, 0.4);
    --tag-bg-color: rgb(227, 227, 227, 0.6);

    /* Article */
    --a-width: clamp(360px, 92vw, 980px);

    --a-bg: 255, 255, 255;
    --a-bg-alpha: 1.0;
    --a-text-color: #101010;
    --a-border-color: var(--p-c-border-color);
}

@media only screen and (max-width: 767px)  {
    :root {
        --p-c-bg-alpha: 1.0;
        --p-c-buttom-boder-c: #cccccc;
    }
}

.p_header h2,
.op_info_box,
.op_info_box .op_name,
.post_date_box .delimiter,
.post_date_box .date,
.article_date_box .delimiter,
.article_date_box .date,
.post_card .p_header,
.c_label, .b_c_send_btn,
.c_item_acc_username,
.comment_item p,
.pagination .pill,
.post_card .p_body,
.article_header h1,
.article_body,
.tag_item,
.f_h1,
.wysiwyg_field[type="text"],
span {
    font-family: var(--default-font), sans-serif;
}

*.chinese {
    font-family: var(--chinese-font), sans-serif;
}

*.english {
    font-family: var(--default-font), sans-serif;
}

/*.post_card_container {*/
/*    background-color: rgba(var(--p-c-bg-color), var(--p-c-bg-alpha));*/
/*}*/


body.dark {
    /*Dark Theme*/
    --p-c-bg-color: 55, 55, 55;
    --a-bg: 55, 55, 55;
    --p-c-text-color: #ffffff;
    --a-text-color: #ffffff;
    --p-c-border-color: rgba(99, 99, 99, 0.83);
    --p-c-box-inner-shadow-c: rgba(37, 37, 37, 0.12);
    --p-c-box-outer-shadow-c: rgba(9, 16, 39, 0.06);
    --p-c-border-width: 1px;
    --p-c-buttom-boder-c: #4e4e4e;
    --wysiwyg-border-color: #535353;
    --wysiwyg-placeholder-color: rgba(255, 255, 255, 0.45);
}

body.dark {
    --toast-editor-bg: #252525;
    --toast-editor-panel-bg: #2b2b2b;
    --toast-editor-panel-hover-bg: #353535;
    --toast-editor-border-color: #4d4d4d;
    --toast-editor-text-color: #f1f1f1;
    --toast-editor-muted-color: #c9c9c9;
    --toast-editor-placeholder-color: #8f8f8f;
    --toast-editor-accent-color: #8fd0ff;
    --toast-editor-selection-bg: rgba(143, 208, 255, 0.25);
    --toast-editor-code-bg: #1f1f1f;
}

.post_card {
    width: var(--p-c-width);
    background-color: rgba(var(--p-c-bg-color), var(--p-c-bg-alpha));
    border-radius: var(--default-border-radius-value);
    border: var(--p-c-border-width) solid var(--p-c-border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 20px;
    margin-bottom: 30px;
    box-shadow:
            var(--p-c-box-inner-shadow-c) 0 12px 32px 0,
            var(--p-c-box-outer-shadow-c) 0 0 0 1px;
    color: var(--p-c-text-color);
}

.post_card .p_header {
    width: var(--p-c-container-width);
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.op_info_box {
    max-width: 30%;
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
}

.op_info_box > * {
    padding: 5px;
}

.op_info_box .op_name {
    max-width: 72%;
    text-overflow: ellipsis;
    font-weight: 450;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    /*margin-left: auto;*/
}

.op_info_box .op_avatar {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    width: 18%;
    margin-left: auto;
}

.p_body {
    width: var(--p-c-container-width);
    overflow: hidden;
    box-sizing: border-box;
    margin: 20px 0 0 0;
}

.p_body > * {
    margin-top: 10px;
}


.p_body img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    max-width: 100%;
}

.p_body iframe {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.p_body p {
    color: var(--p-c-text-color);
    line-break: normal;
}

.p_c_footer {
    width:  var(--p-c-container-width);
    height: 20%;
    display: flex;
    align-items: center;
    /*padding: 0 20px 0 20px;*/
    flex-direction: column;
}

.f_m_btn_list {
    display: flex;
    gap: 20px;
}

.f_m_btn_list button {
    background-color: #ffba00;
    color: white;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

.f_m_btn_list button:hover {
    background-color: #ffc600;
    transform: translateY(-2px);
    transition: all 0.3s ease-in-out;
}

.f_m_btn_list button img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.f_m_btn_list button i {
    font-size: 1.3em;
}

.p_c_footer .post_date_box,
.article_footer .article_date_box
{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
}

.post_date_box > * {
    padding: 5px;
}

.post_date_box .date {
    display: flex;
    color: var(--p-c-text-color);
}

@media only screen and (max-width: 767px) {
    .post_date_box .date,
    .article_date_box .date {
        font-size: 0.8em;
    }
}

.article_date_box .date {
    display: flex;
    color: var(--a-text-color);
}

.post_card_container {
    padding: 50px;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
}

@media only screen and (max-width: 767px)  {
    .post_card_container {
        padding: 20px 0 0 0;
        background-color: rgba(var(--p-c-bg-color), var(--p-c-bg-alpha));
    }

    .post_card {
        width: 100vw;
        max-width: 100vw;
        padding: 1em 14px;
        box-sizing: border-box;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-bottom: var(--p-c-buttom-boder-c) 2px solid;
    }

    .post_card .p_header {
        width: 100%;
        gap: 10px;
    }

    .p_header h2 {
        min-width: 0;
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .op_info_box {
        max-width: 5%;
        min-width: 120px;
    }

    .op_info_box .op_name {
        display: none;
    }

    .op_info_box .op_avatar {
        width: 50%;
        margin-left: auto;
    }

    .p_body {
        width: 100%;
    }

    .p_c_footer,
    .p_c_footer_main {
        width: 100%;
        padding: 8px 0 0 0;
        box-sizing: border-box;
    }

    .f_m_btn_list {
        gap: 10px;
    }

    .post_card:last-child {
        border-bottom: none;
    }

    .p_c_footer button {
        width: 40px;
        height: 40px;
    }

    .image_gallery_list {
        width: 100%;
        height: 24vh;
        gap: 10px;
    }

    .image_gallery_list.large {
        width: 100%;
        height: 42vh;
    }

    .new_comment_container {
        width: 100%;
    }

    .comment_container {
        padding: 12px;
    }

    .comment_list {
        padding: 10px 0;
    }

    .comment_item,
    .comment_element {
        width: 100%;
    }

    .comment_item {
        min-height: 140px;
        height: auto;
    }

    .c_item_acc_info_container {
        padding: 10px 12px;
    }

    .c_item_acc_username {
        font-size: 16px;
    }

    .comment_item p {
        position: static;
        padding: 8px 12px 12px 12px;
    }

    .article_container {
        padding: 20px max(0px, env(safe-area-inset-right)) 0 max(0px, env(safe-area-inset-left));
    }

    .article {
        width: 100% !important;
        max-width: 100vw !important;;
        border-radius: 0 !important;
        border-left: 0 !important;;
        border-right: 0 !important;;
        box-sizing: border-box;
    }

    .article_header {
        width: 95%;
        gap: 8px;
    }

    .article_header h1 {
        white-space: normal;
        font-size: 24px;
        width: 95%;
    }

    .article_body img {
        max-width: 100%;
    }

    .c_f_main {
        flex-direction: column;
    }

    .error_list {
        max-width: 100%;
    }

    .wysiwyg_field {
        max-width: 50vw !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .article_container {
        padding: 30px 16px 0 16px;
    }

    .article {
        width: min(100%, 920px);
    }
}

.tag_container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.tag_item {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    background-color: var(--tag-bg-color);
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.tag_item:hover {
    background-color: #73e0ff;
}

.p_c_footer_main {
    width: var(--p-c-container-width);
    height: 20%;
    display: flex;
    align-items: center;
    padding: 20px;
}

.p_c_footer.with_tag_features {
    display: contents;
}

.image_gallery_list {
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 60%;
    height: 30vh;
    overflow-x: scroll;
    overflow-y: hidden;
}

.image_gallery_list.large {
    height: 60vh;
    width: 90%;
}

.image_gallery_list {
    scrollbar-width: thin;
    scrollbar-color: var(--c-scrollbar-color);
}

.image_gallery_list img {
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.dummy_image {
    height: 100%;
    aspect-ratio: 1 / 1;
    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comment_container {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    align-items: center;
}

@starting-style { /* <-- and this line */
    .block.open {
        opacity: 0;
    }
}

.new_comment_container {
    width: 95%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.new_comment_container {
    margin: 20px 0 0 0;
}

.article .new_comment_container {
    margin: 20px 0 20px 0;
}

.comment_container.show {
    display: flex;
}

.c_label {
    font-size: var(--p-c-head-text-size);
    font-weight: bold;
}

.comment_container textarea {
    border: 2px solid #ccc;
    border-radius: 6px;
    width: 100%;
    height: 20vh;
    scrollbar-color: var(--scrollbar-color);
    resize: none;
    font-size: var(--default-input-space-font-size);
    margin-top: 20px;
    background-color: var(--comment-bg-color);
}

.comment_container textarea:hover {
    border-color: #515151;
}

.c_btn_container {
    display: flex;
}

.b_c_send_btn {
    height: 50px;
    width: 100px;
    padding: 10px;
    margin-top: 10px;
    background-color: #3498db;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.b_c_send_btn img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.comment_list {
    display: flex;
    width: 100%;
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    gap: 15px;
}

.comment_item {
    width: 90%;
    height: 150px;
    border-radius: 10px 10px 10px 10px;
    background-color: var(--comment-bg-color);
    position: relative;
    border: 1px solid #cccccc;
}

.comment_item,
.comment_element {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.c_item_header {
    display: flex;
    flex-direction: row;
}

.c_item_acc_info_container {
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    padding: 10px 20px;
}

.c_item_acc_avatar {
    position: relative;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.c_item_acc_username {
    position: relative;
    font-size: 20px;
    font-weight: bold;
    padding: 0 10px;
}

.comment_ops {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.comment_ops button {
    height: 30px;
    width: 30px;
    padding: 10px;
    border: none;
    color: white;
    background-color: #3498db;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comment_ops button.delete {
    background-color: #f33939;
}

.c_item_wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.comment_item p {
    position: absolute;
    z-index: 1;
    bottom: 25px;
    left: 0;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    white-space: pre-line;
    transition: font-size 0.5s ease;
}

.comment_card_paragraph:hover {
    font-size: 20px;
}

.post_card form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.p_form_input {
    margin-top: 10px;
    width: 60%;
}

.p_form_input::placeholder {
    color: #aaa;
}

.p_form_input:focus {
    outline: none;
    border-color: #9b9b9b;
    background-color: #ffffff;

    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.2);
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post_card form .p_c_footer {
    padding: 10px 0 0 0;
}

.vditor-preview__action {
    display: none !important;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
}

.pagination .pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: background 0.3s ease, color 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .pill:hover {
    color: #fff;
    background: #2ea8ff;
    border: 1px solid #0b9eff;
}

.pagination .pill.current {
    cursor: default;
}

.pagination .pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

body.dark .pagination .pill {
    color: #f4f7fb;
    background: rgba(39, 43, 51, 0.96);
    border-color: rgba(126, 140, 160, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .pagination .pill:hover {
    color: #ffffff;
    background: #176bff;
    border-color: #4b8cff;
}

body.dark .pagination .pill.current {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.34);
    border-color: rgba(96, 165, 250, 0.68);
}

body.dark .pagination .pill.disabled {
    color: rgba(244, 247, 251, 0.48);
    background: rgba(39, 43, 51, 0.52);
    border-color: rgba(126, 140, 160, 0.24);
}

.article_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 50px;
}

.article_container.full {
    padding: 0;
    background-color: rgb(var(--a-bg));
    width: 100%;
}

.article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--a-width);
    background-color: rgba(var(--a-bg), var(--a-bg-alpha));
    border-radius: var(--default-border-radius-value);
    /*border: 2px solid var(--a-border-color);*/
    color: var(--a-text-color);
    justify-content: center;
}

.article hr {
    width: 95%;
    height: 3px;
    background-color: rgb(119, 119, 119, 0.3);
    color: rgb(41, 41, 41);
    border-width: 0;
    border-radius: 5px;
}

.content_item .block {
    margin: 20px auto 20px 30px;
}

@media (max-width: 767px) {
    .content_item .block {
        margin: 20px 10px;
    }
}

.article_header {
    width: clamp(90%, 90%, 95%);
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

@media only screen and (min-width: 1000px) {
    .article_header {
        width: 95%;
    }
}

.article_header h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}

.article_header .wysiwyg_field {
    width: 80%;
}

.article_body {
    width: clamp(90%, 90%, 95%);
    /*max-width: 800px;*/
    /*margin: 0 auto;*/
    color: var(--a-text-color);
}

.article_body p {
    margin-top: 5px;
}

.article_body img {
    max-width: 30%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.article_body img.large {
    max-width: 95%;
}

.article_footer {
    width: clamp(90%, 90%, 95%);
}

.article_footer .wysiwyg_field {
    width: 60%;
}

.article_body ul li,
.article_body ol li {
    position: relative;
    left: 20px;
}

.article_body ul li::marker {
    content: "- ";
    font-size: 1.2em;
}

.footer_input_container {
    display: flex;
    flex-direction: column;
    width: 95%;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .article_container {
        padding: 50px 0 0;
    }
}


@media only screen and (max-width: 767px){
    .article_container {
        padding: 0;
        background: rgba(var(--a-bg), var(--a-bg-alpha));
        width: 100%;
        gap: 0;
    }

    .article {
        border: none;
        border-bottom: 2px solid var(--a-border-color);
    }
}

.c_f_main {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: row;
}

.c_f_main .block {
    padding: 0;
    margin-top: 5px;
}

.c_f_main .block {
    padding: 0;
    margin-top: 5px;
}

.wysiwyg_field {
    font: inherit;
    font-size: 16px;
    line-height: 1.6;

    padding: 12px 14px;
    border-radius: 12px;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    color: #111;
    border: 1px var(--wysiwyg-border-color) solid;
    /*box-shadow: 0 1px 15px rgba(0,0,0,0.1);*/
    transition: box-shadow .15s ease, border-color .15s ease;
}

.wysiwyg_field::placeholder {
    color: var(--wysiwyg-placeholder-color);
}

.wysiwyg_field.f_h1[type="text"] {
    font-weight: bold;
    font-size: 2em;
}

.wysiwyg_field.f_h2[type="text"] {
    font-weight: bold;
    font-size: 1.6em;
}

.post_card .wysiwyg_field {
    color: var(--p-c-text-color);
}

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

.wysiwyg_field:focus {
    outline: none;
    border-color: rgba(59,130,246,.7);
    box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}

.wysiwyg_field::selection {
    background: rgba(59,130,246,.25);
}


pre {
    max-width: 95%;
}

pre code {
    border-radius: 8px;
}

.area {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

pre > code *, pre > code {
    font-family: var(--coding-font), monospace;
}

.reveal pre code, .hljs {
    background-color: #2e2e2e !important;
    color: #DCDCDC;
    padding: 5px;
    overflow: auto;
    max-height: 400px;
    word-wrap: normal;
}
.reveal pre, .hljs {
    box-shadow: none !important;
}

.margin_top_15 {
    margin-top: 15px;
}

.flex_row {
    display: flex;
    flex-direction: row;
}

.round {
    border-radius: 50%;
}

.radius {
    border-radius: var(--default-border-radius-value);
}


.error_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px auto 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(248, 210, 210, 0.95);
    box-shadow: 0 6px 16px rgba(255, 90, 90, 0.18);
    animation: errorFadeIn 0.5s ease-out;
    max-width: 50%;
}

.error_list li {
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.error_list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff5a5a;
    font-size: 18px;
    line-height: 1;
}

.img {
    max-width: 15vw;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.drop_zone {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    height: 200px;
    padding: 1em;
    border: 2px dashed var(--p-c-border-color);
    border-radius: 4px;
    color: var(--p-c-text-color);
    cursor: pointer;
}

.drop_zone input[type='file'] {
    display: none;
}

.file_preview_list {
    width: 500px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    list-style: none;
    padding: 0;
}

.file_preview_list li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    width: 100%;
    height: 100px;
}

.file_preview_list img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}


.post_card .button {
    color: var(--p-c-text-color);
}

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


.post_card_widget {
    display: flex;
    margin-bottom: 20px;
    width: var(--p-c-width);
    flex-direction: row;
    gap: 10px;
    margin-right: auto;
}

.pill_title {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 30px;
    width: 20%;
}

.pill_title.green {
    border: 3px solid rgba(76, 175, 80, 0.41);
}

.pill_title.red {
    border: 3px solid rgba(234, 85, 85, 0.42);
}

.pill_title.yellow {
    border: 3px solid rgba(255, 232, 85, 0.4);
}

/*from content new*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Noto+Sans+TC:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --post-width: clamp(360px, 50vw, 820px);
    --post-max-width: 100%;
    --post-radius: 8px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --post-display-name-size: 1.15rem;
    --post-username-size: 1rem;
    --comment-display-name-size: 1rem;
    --comment-username-size: 0.85rem;
    --comment-input-text-size: 0.95rem;

    --article-home-width: 85vw;
    --article-border-color: rgba(250, 242, 242, 0.16);
    --article-card-min-width: 320px;
    --article-card-desp-size: clamp(1rem, 1.8vw, 1.5rem);
    --article-card-desp-hover-size: clamp(1.15rem, 2vw, 1.8rem);
    --article-card-min-height: 420px;
    --article-card-acc-home-width: clamp(10vw, 15vw, 25vw);

    --display-name-color: #000000;
    --username-color: #838383;
    --tag-bg-color: rgb(227, 227, 227, 0.6);

    --post-bg-rgb: 255, 255, 255;
    --post-bg-alpha: 0.8;
    --post-border-color: rgba(250, 242, 242, 0.16);
    --post-shadow:
            none 0 12px 32px 0,
            none 0 0 0 1px;
    --post-text-color: #0b1220;
    --post-muted-color: #596275;
    --post-inline-code-bg: rgba(15, 23, 42, 0.08);
    --post-inline-code-color: inherit;
    --tag-text-color: #333333;
    --tag-hover-bg-color: #73e0ff;

    --article-card-bg-rgb: 255, 255, 255;
    --article-card-bg-alpha: 0.8;
    --article-button-color: #494949;

    --comment-bg-color: rgba(255, 255, 255, 0.4);
    --comment-border-color: #cccccc;
    --comment-input-bg: rgba(255, 255, 255, 0.4);
    --comment-input-border-color: #cccccc;
    --comment-input-border-hover-color: #515151;
    --comment-input-text-color: #111111;
    --comment-heading-color: inherit;
    --comment-date-color: #677489;

    --action-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    --scrollbar-color: rgba(89, 89, 89, 0.8) transparent;

    --coding-font: 'JetBrains Mono', monospace;
}

body.dark {
    --post-bg-rgb: 55, 55, 55;
    --post-bg-alpha: 1;
    --article-card-bg-rgb: 55, 55, 55;
    --article-card-bg-alpha: 1;
    --post-border-color: rgba(99, 99, 99, 0.83);
    --article-border-color: rgba(99, 99, 99, 0.83);
    --article-button-color: white;
    --post-shadow:
            rgba(37, 37, 37, 0.12) 0 12px 32px 0,
            rgba(9, 16, 39, 0.06) 0 0 0 1px;
    --post-text-color: #ffffff;
    --display-name-color: #f4f4f4;
    --username-color: #bcbcbc;
    --post-muted-color: #d0d0d0;
    --post-link-color: #8fd0ff;
    --post-link-hover-color: #c2e6ff;
    --post-inline-code-bg: rgba(255, 255, 255, 0.12);
    --post-inline-code-color: #f5f5f5;
    --tag-bg-color: rgba(102, 102, 102, 0.75);
    --tag-text-color: #f5f5f5;
    --tag-hover-bg-color: #3298c5;

    --comment-bg-color: rgba(255, 255, 255, 0.08);
    --comment-border-color: rgba(120, 120, 120, 0.7);
    --comment-input-bg: rgba(255, 255, 255, 0.08);
    --comment-input-border-color: rgba(120, 120, 120, 0.7);
    --comment-input-border-hover-color: #9a9a9a;
    --comment-input-text-color: #f5f5f5;
    --comment-date-color: #d0d0d0;

    --action-shadow: rgba(0, 0, 0, 0.28) 0 10px 24px -10px;
    --scrollbar-color: rgba(160, 160, 160, 0.85) transparent;
}


@media (max-width: 767px) {
    :root {
        --post-width: 100%;
        --article-home-width: 100%;
        --article-card-min-width: 240px;
        --article-card-acc-home-width: 1000px;
    }
}

.article-home {
    display: flex;
    width: var(--article-home-width);
    flex-direction: column;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-home .pagination {
    margin-top: 40px;
}

.article-home-header {
    padding: 0 0 50px 0;
}

.article-home-title,
.article-count-label {
    color: var(--default-font-color);
}

@media (max-width: 767px) {
    .article-home {
        padding: 0 0 40px 0;
    }

    .article-home-header {
        padding: 10px 20px 20px;
    }
}

.article-card-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--article-card-min-width)), 1fr));
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 40px 20px;
}

.article-card-section.horizontal {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    justify-content: normal;
    gap: 40px 40px;
}

.article-card-section.horizontal .article-card {
    flex: 0 0 min(85vw, 360px);
}

@media (max-width: 768px) {
    .article-card-section {
        gap: 40px 16px;
        padding: 0 10px 0 10px;
    }
}

.article-card {
    width: 100%;
    min-height: var(--article-card-min-height);
    border-radius: 10px;
    background-color: rgba(var(--article-card-bg-rgb), var(--article-card-bg-alpha));
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    border: 1px solid var(--post-border-color);
    color: var(--post-text-color);
    overflow: hidden;
    transition: ease 0.3s;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card-header {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-top-left-radius: var(--default-border-radius-value);
    border-top-right-radius: var(--default-border-radius-value);
}

.article-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4)5%, rgba(0,0,0,0))90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 10px;
}

.article-card:hover .card-image-overlay {
    opacity: 1;
}

.article-card-title {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: bold;
    color: white;
}

.article-card-second-title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 20px;
    font-size: var(--article-card-desp-size);
    font-weight: bold;
    white-space: pre-line;
    transition: font-size 0.5s ease;
}

.article-card:hover .article-card-second-title {
    font-size: var(--article-card-desp-hover-size);
}

.article-card-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.article-card-body {
    padding: 12px 16px 8px;
}

.article-card-description {
    margin: 0;
    color: var(--post-text-color);
    font-size: 0.95rem;
    line-height: 1.45;
    /*max-width: 65ch;*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
}

.article-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 8px 16px 16px;
}

.article-data {
    color: var(--post-muted-color);
    font-size: 0.85rem;
}

.article-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-container {
    display: flex;
    width: var(--post-width);
    max-width: var(--post-max-width);
    margin: 0 auto;
    gap: 15px;
}

.article-layout {
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
    justify-content: start;
    align-items: start;
    gap: 28px;
}

.article {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-xl);
    border-radius: var(--post-radius);
    border: 1px solid var(--post-border-color);
    background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    box-shadow: var(--post-shadow);
    color: var(--post-text-color);
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 95%;
}

.article-kicker {
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tag-bg-color);
    color: var(--tag-text-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
}

.article-title {
    margin: 0;
    color: var(--post-text-color);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.article-summary {
    margin: 0;
    max-width: 62ch;
    color: var(--post-muted-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--post-muted-color);
    font-size: 0.92rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #ffffff;
}

.article-author-name,
.article-date {
    display: block;
}

.article-author-name {
    color: var(--post-text-color);
    font-weight: 700;
}

.article-cover {
    margin: 28px 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--post-border-color);
    aspect-ratio: 16 / 9;
    background: rgba(var(--post-bg-rgb), 0.5);
}

.article-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-body {
    width: 100%;
    color: var(--post-text-color);
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body img {
    max-width: 100%;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body p,
.article-body li {
    color: var(--post-text-color);
}

.article-body h2 {
    margin: 34px 0 10px;
    color: var(--post-text-color);
    font-size: 1.45rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.article-body p {
    margin: 12px 0;
}

.article-body ul,
.article-body ol {
    margin: 12px 0;
    /*padding-left: 1.35em;*/
}

.article-body li {
    margin: 6px 0;
}

.article-body blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--tag-hover-bg-color);
    border-radius: 0 8px 8px 0;
    background: var(--post-inline-code-bg);
    color: var(--post-text-color);
}

.article-body code {
    font-family: var(--coding-font), monospace;
    background: var(--post-inline-code-bg);
    color: var(--post-inline-code-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    border-radius: 8px;
    background: #2e2e2e;
}

.article-body pre code {
    background: transparent;
    color: #f7f7f7;
    padding: 0;
}

.article-upload-section {
    width: 50%;
    padding: 20px;
    align-items: center;
}

.article-footer {
    width: 100%;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--post-border-color);
}

.article-footer-action {
    display: flex;
    gap: 15px;
}

.article-button {
    border-radius: 0 !important;
    background-color: transparent !important;
    border-bottom: #cccccc 2px solid !important;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    color: var(--article-button-color)  !important;
    text-decoration: none !important;
}

.article-button.primary {
    border-color: #31c7ff !important;
}

.article-button.primary:hover {
    border-color: #64cdff !important;
}

.article-button.unsafe {
    border-color: #ff4848 !important;
}

.article-button.unsafe:hover {
    border-color: #f82121 !important;
}

.article-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.article-button:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.article-footer-floor {
    margin-bottom: 20px;
}

.article-comment-container {
    margin-top: 24px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid var(--post-border-color);
}

.article-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.article-comment-header .comment-container-title {
    margin: 0;
    padding: 0;
}

.article-comment-count {
    color: var(--post-muted-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.article-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--comment-border-color);
    background: var(--comment-bg-color);
}

.article-comment-label {
    color: var(--post-text-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.article-comment-input {
    width: 100% !important;
    min-height: 130px;
    height: 130px;
    box-sizing: border-box;
}

.article-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--post-muted-color);
    font-size: 0.88rem;
}

.article-comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    min-height: 10vh;
    max-height: 40vh;
    overflow-y: auto;
}

.article-aside {
    position: fixed;
    top: 110px;
    right: max(20px, calc((100vw - 1180px) / 2));
    width: 280px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}

.article-aside-panel {
    padding: 18px;
    border-radius: var(--post-radius);
    border: 1px solid var(--post-border-color);
    background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    color: var(--post-text-color);
    max-height: 40vh;
    overflow-y: auto;
}

.article-aside-panel h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0;
}

.article-aside-panel a,
.article-aside-panel p {
    display: block;
    margin: 8px 0;
    color: var(--post-muted-color);
    font-size: 0.92rem;
    line-height: 1.5;
    text-decoration: none;
}

.article-aside-panel a:hover {
    color: var(--post-link-hover-color, var(--tag-hover-bg-color));
}

@media (max-width: 900px) {
    .article-layout {
        width: min(100%, calc(100vw - 24px));
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .article-aside {
        position: static;
        width: auto;
        max-width: none;
        order: -1;
    }
}

@media (max-width: 767px) {
    .article-layout {
        width: 100%;
        padding: 0 0 40px;
        gap: 0;
    }

    .article {
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 22px 18px 28px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-cover {
        margin: 22px -18px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .article-aside {
        display: none;
    }

    .article-comment-header,
    .article-comment-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-comment-form {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    :root {
        --post-width: 100%;
    }
}

.post-container {
    display: flex;
    width: var(--post-width);
    max-width: var(--post-max-width);
    margin: 0 auto;
    gap: 15px;
    flex-direction: column;
    padding: 20px 0 60px 0;
}

.post {
    position: relative;
    background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    padding: var(--space-lg);
    border-radius: var(--post-radius);
    border: 1px solid var(--post-border-color);
    box-shadow: var(--post-shadow);
    color: var(--post-text-color);
    z-index: 0;
    box-sizing: border-box;
}

.post::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    border-radius: inherit;
    z-index: -1;
}

.post-header,
.post-body,
.post-footer,
.post-comment-container {
    width: 100%;
}

.post-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.post-title,
.post-date,
.post-data-content,
.post-comment-empty,
.comment-container-title,
.comment-date,
.comment-body,
.post-body,
.post-body p,
.post-body li {
    color: var(--post-text-color);
}

.post-author {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-author-name {
    max-width: 35ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author-display-name {
    font-size: var(--post-display-name-size);
}

.post-author-username {
    font-size: var(--post-username-size);
}

.post-body {
    padding: var(--space-md) 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    /*white-space: pre;*/
}

.markdown-content {
    /*white-space: pre-line;*/
    white-space: normal;
}

.markdown-content a {
    display: block;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.post-body p {
    margin: 8px 0;
}

.post-body ol,
.post-body ul {
    list-style-position: inside;
    margin: 10px 0;
}

.post-body li {
    margin: 4px 0;
}

.post-body code {
    font-family: var(--coding-font), monospace;
    background: var(--post-inline-code-bg);
    color: var(--post-inline-code-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    border-radius: 8px;
    background: #2e2e2e;
    margin: 12px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: none;
}

.post-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.post-footer-floor {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.post-footer-floor.no-justify {
    justify-content: normal;
}

.post-footer-action {
    display: flex;
    gap: 15px;
}

.post-tag-container {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}

.tag {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    background-color: var(--tag-bg-color);
    color: var(--tag-text-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.tag:hover {
    background-color: var(--tag-hover-bg-color);
}

.comment-container {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.comment-container.opened {
    min-height: 500px;
    max-height: none !important;
}

.post-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--scrollbar-color);
    max-height: 40vh;
}

.comment {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--comment-bg-color);
    border: 1px solid var(--comment-border-color);
    width: 100%;
    box-sizing: border-box;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.comment-author {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-author-name {
    display: flex;
    max-width: 35ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-items: center;
    gap: 5px;
}

.comment-author-display-name {
    font-size: var(--comment-display-name-size);
    text-decoration: none;
}

.comment-author-username {
    font-size: var(--comment-username-size);
}

.comment-body {
    margin-top: 6px;
    line-height: 1.5;
    word-break: break-word;
}

.comment-date {
    color: var(--comment-date-color);
    font-size: 0.875rem;
}

.comment-actions {
    display: flex;
    gap: 6px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--action-shadow);
    border: none;
    /*border-bottom: #ffffff solid 2px;*/
    width: 44px;
    height: 44px;
}

.post-button {
    width: 44px;
    height: 44px;
}

.comment-action-btn {
    width: 30px;
    height: 30px;
}

.action-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.action-button:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.action-button.primary {
    background-color: #31c7ff;
    /*border-color: #31c7ff;*/
    color: white;
    transition: background-color 0.1s ease;
}

.action-button.primary:hover {
    background-color: #64cdff;
}

.action-button.primary.post-button {
    background-color: #ffba00;
}

.action-button.primary.post-button:hover {
    background-color: #fbc129;
}

.action-button.unsafe {
    background-color: #ff4848;
    color: white;
    transition: background-color 0.1s ease;
}

.action-button.unsafe:hover {
    background-color: #f82121;
}

.action-button img,
.action-button i {
    width: 20px;
    height: 20px;
    font-size: 1.3em;
}

.action-button.comment-action-btn img,
.action-button.comment-action-btn i {
    width: 15px;
    height: 15px;
    font-size: 0.9em;
}

.new-comment-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.new-comment-input {
    border: 2px solid var(--comment-input-border-color);
    border-radius: 6px;
    width: 95%;
    height: 20vh;
    scrollbar-color: var(--scrollbar-color);
    resize: none;
    font-size: var(--comment-input-text-size);
    padding: 12px 14px;
    background: var(--comment-input-bg);
    color: var(--comment-input-text-color);
    outline: none;
    transition: border-color 0.1s ease;
}

.comment-container-title {
    padding-bottom: 5px;
    color: var(--comment-heading-color);
}

.comment-submit-button {
    height: 50px;
    width: 100px;
    padding: 10px;
    background-color: #4facf3;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.post-header,
.post-footer {
    padding-bottom: var(--space-sm);
}

.new-comment-input:hover {
    border-color: var(--comment-input-border-hover-color);
}

@media (max-width: 767px) {
    .post-container {
        background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    }

    .post {
        width: 100%;
        padding: 16px 14px;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        box-shadow: none;
        background: transparent;
    }

    .post::before {
        border-radius: 0;
    }

    .post-header {
        /*align-items: flex-start;*/
        gap: 10px;
    }

    .post-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .post-author-name {
        max-width: 22ch;
    }

    .post-footer-floor {
        gap: 12px;
        flex-wrap: wrap;
    }

    .post-footer-action {
        gap: 10px;
    }

    .post-button {
        width: 40px;
        height: 40px;
    }

    .comment-container.opened {
        min-height: 0;
    }

    .new-comment-input {
        width: 100%;
    }
}

.photo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.photo-list-item {
    margin: 0;
    flex: 0 0 auto;
    width: min(220px, 100%);
}

.photo-trigger {
    width: auto;
    max-width: min(220px, 100%);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--action-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-trigger:hover {
    transform: translateY(-3px);
}

.photo-trigger:focus-visible {
    outline: none;
}

.photo-trigger img {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1/1;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.photo-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(39, 41, 44, 0.82);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.photo-overlay.opened {
    opacity: 1;
    pointer-events: auto;
}

.photo-overlay-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: 100%;
    padding: 18px 18px 14px;
    border-radius: 20px;
}

.photo-overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(21, 21, 21, 0.75);
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.photo-overlay-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-overlay-image {
    width: 100%;
    max-height: min(78vh, 920px);
    object-fit: contain;
    border-radius: 14px;
}

.photo-overlay-caption {
    color: var(--post-text-color);
    font-size: 0.95rem;
    text-align: center;
}

.username {
    color: var(--username-color);
}

.display-name {
    color: var(--display-name-color);
}

.post-page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.post-page-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-refresh-status {
    color: var(--post-text-color);
}

.post-refresh-button {
    padding: 10px 20px;
    font-size: 16px;
    background: rgba(var(--post-bg-rgb), var(--post-bg-alpha));
    color: var(--default-font-color);
    border: none;
    border-radius: 30px;
    cursor: pointer; /* Changes cursor to a pointing hand */
    transition: background-color 0.3s ease;
}

.post-refresh-button:hover {
    background-color: #0056b3;
}

.post-refresh-button span {
    margin-right: 8px;
    display: inline-block;
}

body.dark .post-refresh-button {
    color: #ffffff;
    background: rgba(39, 43, 51, 0.96);
    border: 1px solid rgba(126, 140, 160, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .post-refresh-button:hover {
    background: #176bff;
    border-color: #4b8cff;
}

body.dark .post-refresh-status {
    color: #dbe7ff;
}

.markdown-content blockquote p::before{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 4px;
    border-radius: 8px;
    background: #66a9f3;
}

.markdown-content blockquote{
    margin: 16px 0;
    color:#535a60;
    padding:.5em .8em .5em 1em;
    position: relative;
}

/*blockquote:before {*/
/*    content: open-quote;*/
/*    font-size: 4em;*/
/*    color: #ccc;*/
/*    line-height: 0.2em;*/
/*    vertical-align: -0.5em;*/
/*}*/

