/* Component "moments" (session 23, specs/23 R6): "An evening at the house". Portrait photo, caption under it (serif name, one
   soft line). Phones: a snap rail, the next card peeking; it only scrolls sideways (overflow-y hidden), so a vertical swipe moves
   the page (the 10-04 "double scroll"). From 1100 px: one filmstrip, every other card dropped by --l-moment-drop, read left to
   right like the evening goes. Tokens from rmh-landing.css only. */
:is(#rmh-landing, .rmh-lc) .rmh-l-moments { --l-moment-drop: clamp(32px, 3.4vw, 56px); }
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 18px; margin: 0; padding: 0; list-style: none;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	margin-inline: calc(-1 * var(--l-gutter)); padding-inline: var(--l-gutter); scroll-padding-inline: var(--l-gutter);
}
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__list::-webkit-scrollbar { display: none; }
/* the rail is a tab stop (axe scrollable-region-focusable): arrow keys scroll it; a visible ring like the buttons' */
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__list:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 4px; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment { scroll-snap-align: start; min-width: 0; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment figure { margin: 0; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment__frame { overflow: hidden; border-radius: 2px; background: var(--l-sand); aspect-ratio: 3 / 4; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment__img {
	display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--l-ease);
}
:is(#rmh-landing, .rmh-lc) .rmh-l-moment:hover .rmh-l-moment__img { transform: scale(1.03); }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment figcaption { display: grid; gap: 6px; padding-top: 16px; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moment__name {
	font-family: var(--l-serif); font-size: clamp(21px, 1.7vw, 25px); line-height: 1.2; color: var(--l-ink); text-wrap: balance;
}
:is(#rmh-landing, .rmh-lc) .rmh-l-moment__line { font-size: 15px; line-height: 1.55; color: var(--l-ink-soft); text-wrap: pretty; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__credit { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--l-ink-soft); }
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__cta { margin-top: 32px; }
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__cta .rmh-l-btn:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 4px; box-shadow: 0 0 0 6px var(--l-white); }

@media (min-width: 600px) and (max-width: 1099px) {
	:is(#rmh-landing, .rmh-lc) .rmh-l-moments__list { grid-auto-columns: 42%; gap: 24px; }
}
@media (min-width: 1100px) {
	:is(#rmh-landing, .rmh-lc) .rmh-l-moments__list {
		grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-columns: auto; gap: clamp(20px, 2vw, 32px);
		overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: var(--l-moment-drop);
	}
	:is(#rmh-landing, .rmh-lc) .rmh-l-moment:nth-child(even) { transform: translateY(var(--l-moment-drop)); }
	:is(#rmh-landing, .rmh-lc) .rmh-l-moments__credit,
	:is(#rmh-landing, .rmh-lc) .rmh-l-moments__cta { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	:is(#rmh-landing, .rmh-lc) .rmh-l-moment__img { transition: none; }
	:is(#rmh-landing, .rmh-lc) .rmh-l-moment:hover .rmh-l-moment__img { transform: none; }
}
/* session 31: the button and a quiet text link side by side ("See every experience", once /experiences/ is live) */
:is(#rmh-landing, .rmh-lc) .rmh-l-moments__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (min-width: 1100px) {
	:is(#rmh-landing, .rmh-lc) .rmh-l-moments__cta { justify-content: center; }
}
