/* ============================================================
   Photo and text rows (The Caravan's room by room, The Park's places):
   stacked on phones and tablets; side by side from 961px, the photo
   swapping sides each row. The rows are one section rhythm apart.
   (prototype: .rooms-rows, .row)
   ============================================================ */

.rows__list {
	display: grid;
	gap: var(--space-section);
}

.row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}

.row__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-line);
}

.row__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center var(--photo-y, 50%);
	transition: transform 1.4s var(--ease);
}

@media (hover: hover) {
	.row:hover .row__media img {
		transform: scale(1.04);
	}
}

.row__copy {
	display: grid;
	gap: 18px;
	max-width: 600px;
}

.row__title {
	font-size: var(--size-h2);
	line-height: 1.08;
}

.row__text {
	font-size: 15px;
	line-height: 1.85;
}

@media (min-width: 961px) {
	.row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(40px, 7vw, 110px);
	}

	.row:nth-child(even) .row__media {
		order: 2;
	}

	.row__media {
		max-height: 640px;
		aspect-ratio: 4 / 5;
	}

	.row__copy {
		max-width: 520px;
	}
}
