/* Complete photographs below the two opening banners. */
.rooms .room-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.rooms .room-photo { overflow: visible; }
.rooms .room-photo:hover img { transform: none; }
.rooms .room-photo > .room-view-label {
  position: static;
  display: block;
  text-align: right;
  background: transparent;
  padding: 16px 0 0;
}
.rooms .room-panel { translate: 0 var(--photo-drift, 0px); }

.photo-journey {
  --frame-height: clamp(250px, 54svh, 610px);
  background: var(--plum);
  color: var(--paper);
  position: relative;
}
.journey-stage { padding: 90px 7%; }
.journey-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
.journey-heading h2 { font-size: clamp(46px, 4.4vw, 68px); margin-top: 20px; }
.journey-instructions { display: grid; justify-items: end; gap: 20px; }
.journey-hint { font-size: 8px; letter-spacing: 1.8px; }
.journey-instructions a { font-size: 10px; padding-bottom: 6px; border-bottom: 1px solid #f4f0e75c; }
.journey-instructions a span { margin-left: 20px; }
.journey-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 70px 7%; }
.journey-item { min-width: 0; }
.photo-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  translate: 0 var(--photo-drift, 0px);
}
.photo-frame { display: flex; justify-content: center; align-items: center; }
.photo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70svh;
  object-fit: contain;
  aspect-ratio: auto;
}
.photo-caption { display: flex; align-items: center; gap: 18px; padding-top: 20px; }
.photo-caption > span { font-size: 8px; letter-spacing: 1px; color: #e1d5df; }
.photo-caption > span:last-child { margin-left: auto; font-size: 16px; }
.photo-caption strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; font-weight: 400; }
.journey-controls { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 55px; }
.journey-caption { font: italic 25px 'Cormorant Garamond', Georgia, serif; }
.journey-meter, .journey-navigation { display: none; }

/* Scrolling the page moves the rail. No wheel or touch gestures are intercepted. */
.photo-journey.is-scroll-driven { height: var(--journey-height); }
.is-scroll-driven .journey-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 32px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.is-scroll-driven .journey-heading { margin: 0 7%; align-items: center; }
.is-scroll-driven .journey-heading h2 { font-size: clamp(40px, 3.4vw, 58px); margin-top: 14px; }
.is-scroll-driven .journey-window { width: 100%; overflow: clip; padding: 8px 0; }
.is-scroll-driven .journey-track {
  position: relative;
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(35px, 5vw, 100px);
  padding: 0 var(--journey-end-padding, 7vw) 0 var(--journey-start-padding, 7vw);
  transform: translate3d(var(--journey-x, 0px), 0, 0);
  will-change: transform;
}
.is-scroll-driven .journey-item {
  flex: 0 0 auto;
  width: min(73vw, calc(var(--frame-height) * var(--photo-ratio)));
}
.is-scroll-driven .photo-card { translate: none; }
.is-scroll-driven .photo-frame { height: var(--frame-height); }
.is-scroll-driven .photo-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.is-scroll-driven .photo-caption { padding-top: 16px; }
.is-scroll-driven .journey-controls { margin: 0 7%; }
.is-scroll-driven .journey-meter { display: block; height: 1px; background: #ffffff38; flex: 1; max-width: 320px; }
.journey-meter > span { display: block; width: 100%; height: 100%; background: #e4d3b5; transform: scaleX(var(--journey-progress, 0)); transform-origin: left; }
.is-scroll-driven .journey-navigation { display: flex; align-items: center; gap: 10px; }
.journey-count { margin-right: 15px; font-size: 10px; letter-spacing: 2px; min-width: 56px; }
.journey-navigation button { background: none; color: inherit; border: 1px solid #ffffff5c; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; }
.journey-navigation button:hover { background: #ffffff14; }
.journey-navigation button:disabled { opacity: .35; cursor: default; }

@media (max-width: 899px) {
  .journey-stage { padding: 70px 7%; }
  .journey-heading { align-items: flex-start; gap: 30px; }
  .journey-instructions { justify-items: start; }
  .journey-hint { display: none; }
  .journey-track { grid-template-columns: 1fr; gap: 70px; }
  .photo-frame img { max-height: 76svh; }
  .photo-caption { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .journey-heading { display: block; margin-bottom: 45px; }
  .journey-instructions { margin-top: 26px; }
  .journey-heading h2 { font-size: 48px; }
  .journey-track { gap: 60px; }
  .photo-caption { gap: 12px; }
  .photo-caption strong { font-size: 23px; }
  .journey-caption { font-size: 23px; }
  }
@media (prefers-reduced-motion: reduce) {
  .rooms .room-panel,
  .photo-card { translate: none !important; }
  .journey-track { transform: none !important; }
}

/* Room photographs rotate without changing the frame or cropping an image. */
.room-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #c9bec0;
  margin: 55px 0 40px;
}
.room-controls .room-tabs { flex: 1; min-width: 0; margin: 0; border: 0; }
.room-autoplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 77px;
  padding: 10px 12px;
  border: 1px solid #b9abaf;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}
.room-autoplay:hover { background: #ffffff42; }
.room-autoplay-icon { width: 11px; text-align: center; font-size: 10px; }
.rooms .room-photo > .room-picture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1800 / 1035;
  padding: 0;
  background: transparent;
}
.rooms .room-picture img { width: 100%; height: 100%; object-fit: contain; }
.rooms .room-picture .room-image-outgoing {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.room-picture.is-changing .room-image-outgoing { animation: room-crossfade 600ms ease both; }
.room-description.is-changing { animation: room-copy-in 450ms ease both; }
@keyframes room-crossfade { from { opacity: 1; } to { opacity: 0; } }
@keyframes room-copy-in { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 700px) {
  .room-controls { flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-bottom: 12px; }
  .room-controls .room-tabs { flex: 1 1 100%; }
  .room-autoplay { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .room-picture.is-changing .room-image-outgoing { animation: none; opacity: 0; }
  .room-description.is-changing { animation: none; }
}
