/**
 * Saganjuliusz — content overlay (minimal, safe)
 *
 * Do NOT force width/height on content images.
 * Only cap them so they never overflow the container.
 *
 * @package Saganjuliusz
 */

/* Safe wrapping — no anywhere, no aggressive break */
.page-content-wrap,
.single-post-wrap.entry-content,
.blog-post-wrapper .single-post-wrap.entry-content,
.entry-content {
	overflow-wrap: break-word;
	word-break: normal;
}

.page-content-wrap::after,
.single-post-wrap.entry-content::after,
.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Only cap width so images don't overflow. Never touch width/height/float. */
.page-content-wrap img,
.single-post-wrap.entry-content img,
.blog-post-wrapper .single-post-wrap.entry-content img,
.entry-content img {
	max-width: 100%;
	height: auto;
}

/* Beat only Hestia's `.card img { width: 100% }` — scoped strictly to the article body. */
.single-post-wrap.entry-content .card img,
.blog-post-wrapper .single-post-wrap.entry-content .card img,
.page-content-wrap .card img,
.entry-content .card img {
	width: auto;
	max-width: 100%;
	height: auto;
}

/* Gallery items keep their column width */
.entry-content .gallery img,
.entry-content .wp-block-gallery img {
	max-width: 100%;
	height: auto;
}

/* Media embeds — cap only */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.page-content-wrap iframe,
.page-content-wrap video,
.page-content-wrap embed {
	max-width: 100%;
}

/* Captions — small, italic, muted; no colored boxes */
.entry-content .wp-caption-text,
.entry-content .wp-block-image figcaption,
.page-content-wrap .wp-caption-text,
.page-content-wrap .wp-block-image figcaption {
	margin: 0.4em 0 0;
	font-size: 0.9em;
	font-style: italic;
	line-height: 1.45;
	color: var(--sj-muted, #6a746e);
	background: transparent;
}

/* Typography — readable body copy without touching sizes set inline */
.blog-post-wrapper .single-post-wrap.entry-content,
.page-content-wrap {
	font-size: 17px;
	line-height: 1.75;
	color: var(--sj-ink-soft, #3a433e);
}

.blog-post-wrapper .single-post-wrap.entry-content p,
.page-content-wrap p {
	margin-bottom: 1.15em;
}

.blog-post-wrapper .single-post-wrap.entry-content a,
.page-content-wrap a {
	color: var(--sj-accent, #1e6b4a);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.blog-post-wrapper .single-post-wrap.entry-content a:hover,
.page-content-wrap a:hover {
	color: var(--sj-accent-hover, #164f36);
}

/* Quiet quote treatment — no giant decorative marks */
.blog-post-wrapper .single-post-wrap.entry-content blockquote,
.blog-post-wrapper .single-post-wrap.entry-content .wp-block-quote,
.page-content-wrap blockquote,
.page-content-wrap .wp-block-quote {
	position: static;
	margin: 1.5em 0;
	padding: 0.15em 0 0.15em 1.15em;
	background: transparent;
	border: 0;
	border-left: 3px solid var(--sj-brass, #b08d4a);
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-style: italic;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.blog-post-wrapper .single-post-wrap.entry-content blockquote::before,
.page-content-wrap blockquote::before {
	content: none;
}

/* Generic Gutenberg tables (not the K100 ranking table) — scroll if too wide */
.entry-content .wp-block-table:not(.k100-table),
.page-content-wrap .wp-block-table:not(.k100-table) {
	overflow-x: auto;
	max-width: 100%;
}
