/* Maison Lune Chapters (ml-chapters): Story "Three chapters". */

/* Section padding 80 / 56 / 32. */
@media (max-width: 767px) {
	.ml-chapters {
		--ml-section-pad: 32px;
	}
}

.ml-chapters__heading {
	margin-bottom: 48px;
}

/* Three columns 384 wide, 24 apart (tablet 246, 16 apart). */
.ml-chapters__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	align-items: start;
}

.ml-chapters__item {
	min-width: 0;
}

/* Portrait photo 384 × 480, square corners. */
.ml-chapters__photo {
	aspect-ratio: 384 / 480;
	overflow: hidden;
	background: var(--ml-line);
}

.ml .ml-chapters__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* 16 under the photo: number 13/20 muted, 12 gap, title 52/57, 16 gap, text 24/36. */
.ml-chapters__number {
	margin-top: 16px;
	color: var(--ml-muted);
	font-size: 13px;
	line-height: 20px;
}

.ml-chapters__title {
	margin-top: 12px;
	color: var(--ml-heading);
	font-family: var(--ml-serif);
	font-size: 52px;
	line-height: 57px;
	font-weight: 400;
	overflow-wrap: break-word;
}

.ml-chapters__text {
	margin-top: 16px;
	color: var(--ml-text);
	font-size: 24px;
	line-height: 36px;
}

.ml-chapters__item > :first-child {
	margin-top: 0;
}

/* ---------------------------------------------------------------- */
/* Tablet (834)                                                     */
/* ---------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ml-chapters__heading {
		margin-bottom: 32px;
	}

	.ml-chapters__list {
		gap: 40px 16px;
	}

	.ml-chapters__photo {
		aspect-ratio: 246 / 308;
	}
}

/* ---------------------------------------------------------------- */
/* Phone (390): stacked, 40 apart, landscape-ish photo 350 × 263    */
/* ---------------------------------------------------------------- */

@media (max-width: 767px) {
	.ml-chapters__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ml-chapters__photo {
		aspect-ratio: 350 / 263;
	}

	.ml-chapters__title {
		font-size: 44px;
		line-height: 48px;
	}

	.ml-chapters__text {
		font-size: 18px;
		line-height: 27px;
	}
}
