.nds-article {
	--nds-image-ratio: 4 / 3;
	--nds-image-radius: 6px;
	--nds-section-gap: 1.75rem;
	--nds-gallery-gap: 1rem;
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
    margin-bottom: var(--nds-section-gap);
	color: #222;
	background: #fff;
	line-height: 1.85;
	overflow-wrap: anywhere;
}

/* G2 fallback and classic child themes: only the opted-in article's direct header. */
.nds-managed-post > .entry-header,
.nds-managed-post > .entryHeader {
	display: none;
}

.nds-article > * { margin: 0; }
.nds-article > * + * { margin-top: var(--nds-section-gap); }
.nds-article .nds-article-title {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.5;
	font-weight: 700;
	color: inherit;
}
.nds-article .nds-article-title::before,
.nds-article .nds-article-title::after { content: none; }
.nds-article .nds-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: #555;
}
.nds-article .nds-article-category {
	padding: 0.1em 0.65em;
	background: #f4f4f4;
	border-radius: 3px;
}
.nds-article .nds-article-intro { font-size: 1.05em; }
.nds-article .nds-article-main,
.nds-article .nds-article-photo { min-width: 0; }
.nds-article .nds-article-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: var(--nds-image-ratio);
	object-fit: cover;
	object-position: center;
	border-radius: var(--nds-image-radius);
	margin: 0;
}
.nds-article .nds-article-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nds-gallery-gap);
}
.nds-article .nds-article-gallery .nds-article-photo { margin: 0; }
.nds-article .nds-article-body > :first-child { margin-top: 0; }
.nds-article .nds-article-body > :last-child { margin-bottom: 0; }
.nds-article .nds-article-body p { margin-block: 0 1.2em; }
.nds-article .nds-article-body :is(h2, h3, h4) { margin-top: 1.8em; margin-bottom: 0.75em; line-height: 1.5; }
.nds-article .nds-article-body :is(img, video, iframe) { max-width: 100%; }
.nds-article .nds-article-body :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.nds-article .nds-article-body :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
@media (max-width: 599px) {
	.nds-article { --nds-section-gap: 1.25rem; }
	.nds-article .nds-article-gallery { grid-template-columns: minmax(0, 1fr); }
}
