/* Sim's Corner: WordPress image alignment and captions (article content only) */
.simscorner .article-content img { max-width: 100%; height: auto; }
/* Floats never sit beside another float, so text is never squeezed into a
   narrow column between two images. */
.simscorner .alignleft  { float: left;  max-width: 48%; margin: 0.3em 1.5em 1em 0; }
.simscorner .alignright { float: right; max-width: 48%; margin: 0.3em 0 1em 1.5em; }
/* Images alongside text start below any earlier image, so text is never
   squeezed into a narrow column between two images. */
.simscorner .sc-text-float img.alignleft,
.simscorner .sc-text-float img.alignright { clear: both; }
/* Pairs and groups of images: side by side, as on the original site. */
.simscorner .sc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5em;
	clear: both;
	margin: 1em 0;
}
.simscorner .sc-row > * {
	float: none;
	flex: 0 1 auto;
	max-width: calc(50% - 0.75em);
	margin: 0;
}
.simscorner .sc-row img { float: none; margin: 0; }
@media (max-width: 600px) {
	.simscorner .sc-row > * { max-width: 100%; }
}
.simscorner .sc-clear { clear: both; height: 0.5em; }
.simscorner .aligncenter { display: block; margin: 1em auto; clear: both; }
.simscorner .wp-caption { max-width: 100%; }
.simscorner .wp-caption.aligncenter { text-align: center; }
.simscorner .wp-caption img { display: block; margin: 0 auto; }
.simscorner .wp-caption-text { font-size: 0.85em; line-height: 1.4; margin: 0.5em 0 0; font-style: italic; }
.simscorner .full-column::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
	.simscorner .alignleft, .simscorner .alignright { float: none; display: block; margin: 1em auto; }
}

/* Titles: no wider than two-thirds of the content area */
#content.simscorner .article h1 { max-width: 66.666%; }
@media (max-width: 600px) { #content.simscorner .article h1 { max-width: none; } }

/* Section intro: left-aligned heading and intro text */
#content.simscorner .simscorner-intro { float: none; clear: both; width: auto; margin: 0 0 2.5em; padding: 0; text-align: left; }
#content.simscorner .simscorner-intro h1 { float: none; width: auto; margin: 0 0 0.4em; padding: 0; font-size: 2.6em; line-height: 1.1; text-align: left; }
#content.simscorner .simscorner-intro p { float: none; width: auto; max-width: 42em; margin: 0; padding: 0; text-align: left; }

/* Listing teaser */
#content.simscorner .teaser p { margin: 0 0 0.9em; }
#content.simscorner .teaser .continue-reading { margin-top: 0.4em; }

/* Centred image with an italic caption paragraph underneath: styled like a
   WordPress caption box, the width of the image, caption tight below. */
#content.simscorner .sc-figure {
	display: table;
	clear: both;
	margin: 1.5em auto 2em;
	padding: 4px 4px 0;
	background: #f3f3f3;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 3px 3px 0 0;
	text-align: center;
}
#content.simscorner .sc-figure > p {
	margin: 0;
	padding: 0;
	line-height: 0;
}
#content.simscorner .sc-figure img {
	display: block;
	margin: 0 auto;
	float: none;
}
#content.simscorner .sc-figure p.sc-caption {
	display: table-caption;
	caption-side: bottom;
	margin: 0;
	padding: 6px 8px 8px;
	background: #f3f3f3;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 3px 3px;
	font-size: 1rem;
	line-height: 1.35;
	font-style: italic;
	text-align: center;
	color: #000;
}
