.c-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    word-break: break-word;
}

.c-content > * { min-width: 100%; }
.c-content > * + * { margin-top: 32px; }

.c-content a:not(.c-btn) { text-decoration: underline; }
.c-content a:not(.c-btn):hover { color: var(--color-accent); }

.c-content h2,
.c-content h3 {
    font-weight: 500;
}

.c-content h2 + *,
.c-content h3 + * { margin-top: 8px; }

.c-content p { line-height: 32px; }

.c-content > p:first-child::first-letter {
    float: left;
    height: 42px;
    margin-top: 12px;
    margin-right: 8px;
    color: var(--color-accent);
    font-size: 62px;
    line-height: 42px;
}

.c-content > p:first-child::after {
    content: "";
    display: table;
    clear: both;
}

.c-content ul,
.c-content ol { padding-left: 24px; }

.c-content blockquote {
    padding-left: 16px;
    border-left: 2px solid var(--color-accent);
    color: var(--color-muted);
}

.c-content table { width: 100%; border-collapse: collapse; }

.c-content th,
.c-content td {
    padding: 16px;
    border-top: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.c-content thead th {
    border-bottom: 2px solid var(--color-line);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.c-content figcaption,
.kg-card figcaption {
    width: 100%;
    padding: 8px 16px 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.c-content img,
.c-content video {
    display: block;
    max-width: 100%;
    height: auto;
}

.c-content img { cursor: zoom-in; }
.c-content a img { cursor: pointer; }

.c-tags { overflow: hidden; }

.c-tags a {
    float: left;
    margin: 0 8px 8px 0;
    padding: 8px 20px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    transition: 0.5s;
}

.c-tags a:hover { color: #778da6; text-decoration: none; }

.c-share { display: flex; }
.c-share__item { flex: 1; text-align: center; }
.c-share__item:not(:last-child) { border-right: 4px solid var(--color-white); }

.c-share__link {
    display: block;
    padding: 8px;
    background: #000;
    color: var(--color-white);
}

.c-share__link:hover { color: var(--color-white); opacity: 0.8; }

.c-share__icon {
    vertical-align: middle;
    fill: currentColor;
}

.c-related {
    margin-bottom: -32px;
    padding: 32px 0 0;
    background: var(--color-surface);
}

@media (min-width: 64em) {
    .c-related { padding: 48px 0 32px; }
}

.c-related__title {
    margin-bottom: 32px;
    font-family: var(--font-serif);
    font-size: 19px;
    text-align: center;
}

@media (min-width: 64em) {
    .c-related__title { margin-bottom: 48px; font-size: 24px; }
}

.c-related .c-post-card {
    padding: 16px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
}

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; justify-content: center; }
.kg-gallery-row:not(:first-of-type) { margin-top: 16px; }
.kg-gallery-image:not(:first-of-type) { margin-left: 16px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

a.kg-bookmark-container {
    display: flex;
    min-height: 148px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    text-decoration: none;
    transition: 0.5s;
}

a.kg-bookmark-container:hover { color: var(--color-accent); }

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.kg-bookmark-title { font-size: 16px; font-weight: 500; }

.kg-bookmark-description {
    display: -webkit-box;
    max-height: 48px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kg-bookmark-metadata {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 12px;
}

.kg-image { margin-right: auto; margin-left: auto; }

.c-content .kg-width-wide,
.c-content .kg-width-full {
    width: 100%;
    max-width: 100%;
}

.c-content .kg-width-wide img,
.c-content .kg-width-full img { width: 100%; }

.kg-toggle-card .kg-toggle-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.kg-toggle-card .kg-toggle-heading-text {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.kg-toggle-card .kg-toggle-card-icon {
    display: flex;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.kg-toggle-card .kg-toggle-card-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon svg { transform: rotate(180deg); }

.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }

.kg-toggle-card .kg-toggle-content { margin-top: 16px; }

@media (max-width: 39.99em) {
    .c-content img { max-width: 100%; }
}

.c-zoom {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 16px;
    overflow: hidden;
    border: 0;
    outline: none;
    background: var(--color-white);
    cursor: zoom-out;
}

.c-zoom[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-zoom::backdrop { background: var(--color-white); }

.c-zoom__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
    .c-zoom,
    .c-zoom::backdrop {
        opacity: 0;
        transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
    }

    .c-zoom[open],
    .c-zoom[open]::backdrop { opacity: 1; }

    @starting-style {
        .c-zoom[open],
        .c-zoom[open]::backdrop { opacity: 0; }
    }
}
