/* Bai viet don: khoang cach anh <-> chu, va kieu chu cho mo ta anh + nguon.
   Gutenberg khong dat margin cho .wp-block-image nen chu dinh sat anh. */

.single-post .entry-content .wp-block-image,
.single-post .entry-content .wp-block-columns {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* Trong mot cap anh, hai cot da co blockGap rieng -> khong cong them margin. */
.single-post .entry-content .wp-block-columns .wp-block-image {
	margin-top: 0;
	margin-bottom: 0;
}

/* Mo ta anh va nguon: nghieng, xam nhat hon chu than bai, can giua. */
.single-post .entry-content figcaption.wp-element-caption,
.single-post .entry-content .tta-img-source {
	margin-left: auto;
	margin-right: auto;
	max-width: 42rem;
	text-align: center;
	font-style: italic;
	font-size: 0.88em;
	line-height: 1.5;
	color: #6f6f76;
}

.single-post .entry-content figcaption.wp-element-caption {
	margin-top: 0.6rem;
	margin-bottom: 0;
}

/* Nguon dung chung cho ca cap anh: mot dong can giua ngay duoi hai anh. */
.single-post .entry-content .tta-img-source {
	margin-top: 0.6rem;
	margin-bottom: 2rem;
}

/* Khoi anh di ngay truoc dong nguon chung thi bo khoang cach duoi,
   de dong nguon nam sat cap anh thay vi troi lo lung giua hai doan. */
.single-post .entry-content .wp-block-columns:has(+ .tta-img-source),
.single-post .entry-content .wp-block-image:has(+ .tta-img-source) {
	margin-bottom: 0;
}

/* Nguon ben trong mo ta cu (bai 1) van nghieng nhu phan con lai. */
.single-post .entry-content figcaption.wp-element-caption em {
	font-style: italic;
}

@media (max-width: 600px) {

	.single-post .entry-content .wp-block-image,
	.single-post .entry-content .wp-block-columns {
		margin-top: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.single-post .entry-content .tta-img-source {
		margin-bottom: 1.5rem;
	}
}
