.entry-content {
    font-size: 1.3rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.entry-content blockquote {
    margin: 12px 0;
    padding: 8px 20px;
    border-left: 5px solid #ccc;
    font-style: italic;
}

.entry-content dl,
.entry-content ol,
.entry-content ul {
    padding: 0 40px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 400;
    line-height: 1.2;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid #ccc;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content img:not(.amr-article-ref__thumb):not(.left):not(.right) {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    object-fit: contain;
}

.entry-content a img.amr-editor-image {
    margin-right: auto;
    margin-left: auto;
}

.entry-content .amr-article-ref {
    font-family: Kanit, sans-serif;
    margin: 26px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.entry-content .amr-article-ref__link {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 168px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 38, 52, .10);
    color: #0b63c7;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.entry-content .amr-article-ref__link:hover,
.entry-content .amr-article-ref__link:focus {
    border-color: #b7d5f4;
    box-shadow: 0 12px 28px rgba(26, 38, 52, .16);
    color: #07549e;
    text-decoration: none;
    transform: translateY(-1px);
}

.entry-content .amr-article-ref__thumb {
    width: clamp(180px, 36%, 300px);
    flex: 0 0 clamp(180px, 36%, 300px);
    max-width: 40%;
    min-height: 168px;
    display: block;
    object-fit: cover;
}

.entry-content .amr-article-ref__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px;
}

.entry-content .amr-article-ref__title {
    display: block;
    color: #075eb5;
    font-family: Kanit, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.entry-content .amr-article-ref__detail {
    display: block;
    margin-top: 9px;
    color: #56616f;
    font-family: Kanit, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .entry-content .amr-article-ref__link,
    .amr-editor__surface .amr-article-ref__link {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: 0;
    }

    .entry-content .amr-article-ref__thumb,
    .amr-editor__surface .amr-article-ref__thumb {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .entry-content .amr-article-ref__body,
    .amr-editor__surface .amr-article-ref__body {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        padding: 14px 16px;
    }

    .entry-content .amr-article-ref__title,
    .amr-editor__surface .amr-article-ref__title {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .entry-content .amr-article-ref__link,
    .amr-editor__surface .amr-article-ref__link {
        min-height: 0;
    }

    .entry-content .amr-article-ref__thumb,
    .amr-editor__surface .amr-article-ref__thumb {
        aspect-ratio: 16 / 9;
    }

    .entry-content .amr-article-ref__body,
    .amr-editor__surface .amr-article-ref__body {
        padding: 14px;
    }

    .entry-content .amr-article-ref__detail,
    .amr-editor__surface .amr-article-ref__detail {
        font-size: 14px;
    }
}

.entry-content img.right {
    float: right;
    margin-left: 15px;
}

.entry-content img.left {
    float: left;
    margin-right: 15px;
}

.entry-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
}

.entry-content .amr-table-responsive {
    width: 100%;
    max-width: 100%;
    margin: 18px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content table,
.entry-content .amr-editor-table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 9px 12px;
    border: 1px solid #d8d8d8;
    vertical-align: top;
}

.entry-content th {
    background: #f6f8fa;
    font-weight: 700;
}

.entry-content caption {
    padding: 8px 0;
    caption-side: top;
    color: #333;
    font-weight: 700;
    text-align: left;
}

.entry-content figure {
    display: inline-block;
    margin: 10px 20px;
    padding: 10px;
    background: rgba(0, 0, 0, .05);
    outline: solid 1px #ccc;
    text-align: center;
}

.entry-content figure > figcaption {
    display: block;
    text-align: center;
}
