/* ---------- 5. rooms: "Room by room." and the row of interior pictures ---------- */

/* still */

.rooms { padding: var(--pad) 0 120px; overflow-x: clip; display: flex; flex-direction: column; gap: 72px; }
.rooms .head, .rooms__fine { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Eight pictures in a row, each at its own height and its own step down, so the row reads as
   a loose line and not a grid. */
.rooms__row { display: flex; justify-content: center; align-items: flex-start; gap: 20px; height: 520px; }
.shot { position: relative; flex: 0 0 300px; border-radius: var(--round-card); overflow: hidden; background: var(--panel); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: var(--round-pill);
  background: rgba(244, 238, 230, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
}
.shot--1 { height: 400px; margin-top: 60px; }
.shot--2 { height: 460px; margin-top: 0; }
.shot--3 { height: 420px; margin-top: 90px; }
.shot--4 { height: 500px; margin-top: 20px; }
.shot--5 { height: 400px; margin-top: 100px; }
.shot--6 { height: 470px; margin-top: 0; }
.shot--7 { height: 420px; margin-top: 70px; }
.shot--8 { height: 450px; margin-top: 30px; }

@media (max-width: 1023px) {
  /* Standing still on a narrow screen: the row is scrolled sideways by hand. */
  html:not(.motion) .rooms__row { justify-content: flex-start; height: auto; padding: 0 var(--gutter) 8px; overflow-x: auto; }
  .shot { flex-basis: 240px; }
}

@media (max-width: 640px) {
  .rooms { gap: 44px; padding-bottom: 80px; }
  .shot { flex-basis: 220px; }
  .shot figcaption { font-size: 13px; }
}

/* moving */

/* The row starts from its left end and js/rooms.js carries it sideways as the reader scrolls past. */
.motion .rooms__row { justify-content: flex-start; will-change: transform; }

/* moving, on a phone */

/* The row travels sideways, as on a wide screen. */
.motion.phone .rooms__row { padding: 0; overflow: visible; }
