/* Keep complete imported photos inside native post-tag/category archive content.
 * Separate from the canvas stylesheet to retain the surrounding theme design.
 */
body.tag main .wp-block-post-content img:not(.emoji):not(.wp-smiley),
body.category main .wp-block-post-content img:not(.emoji):not(.wp-smiley) {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Keep full archive bodies readable within the shared BYST canvas. */
.byst-post-archive .byst-native-archive-post {
    width: 100%;
    max-width: 792px;
    min-width: 0;
    margin: 40px auto 64px;
    overflow-wrap: anywhere;
}

.byst-post-archive .byst-native-archive-featured img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.byst-post-archive .wp-block-post-content > .alignwide,
.byst-post-archive .wp-block-post-content > .alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.byst-post-archive .wp-block-post-content iframe {
    max-width: 100%;
}
