.room-visit .room-swipe-strip {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  background: var(--stay-depth, #24211d);
  user-select: none;
}

.room-visit .room-swipe-strip::-webkit-scrollbar { display: none; }
.room-visit .room-swipe-strip:focus-visible { outline-offset: -4px; }
.room-visit .room-swipe-strip.room-swipe-dragging { cursor: grabbing; scroll-snap-type: none; }

.room-visit .room-swipe-strip > img {
  position: static;
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--room-photo-fit, cover);
  object-position: var(--room-photo-position, center);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  pointer-events: none;
}

/* Share a single footer so the photo title and navigation never obscure one another. */
.room-visit .model-reference.room-swipe-gallery:not(.room-swipe-comparing) > figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 30px clamp(12px, 2.2vw, 30px) clamp(12px, 1.7vw, 22px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(0deg, rgb(21 18 15 / 86%), rgb(21 18 15 / 57%) 53%, transparent);
  color: #fffaf1;
  text-shadow: 0 1px 4px #17130e;
  text-align: start;
  pointer-events: none;
}

.room-visit .room-swipe-gallery > figcaption > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.35;
}

.room-visit .room-swipe-gallery figcaption button { pointer-events: auto; }

.room-visit .room-swipe-pager {
  flex: none;
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
  border: 1px solid rgb(255 250 236 / 46%);
  border-radius: 3px;
  background: rgb(27 24 19 / 86%);
  color: #fffaf1;
  text-shadow: none;
  pointer-events: auto;
}

.room-visit .room-swipe-arrow {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.room-visit .room-swipe-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room-visit .room-swipe-arrow[aria-disabled="true"] { opacity: .38; cursor: default; }
.room-visit .room-swipe-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

.room-visit .room-swipe-count {
  display: block;
  min-width: 4ch;
  color: inherit;
  font: 550 12px/1 var(--mono, monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

.room-visit .room-swipe-strip[hidden],
.room-visit .room-swipe-pager[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .room-visit .room-swipe-strip { cursor: grab; }
  .room-visit .room-swipe-arrow:not([aria-disabled="true"]):hover { background: rgb(255 250 236 / 15%); }
}

@media (forced-colors: active) {
  .room-visit .room-swipe-pager { border-color: ButtonText; }
  .room-visit .room-swipe-gallery > figcaption > span { background: Canvas; color: CanvasText; text-shadow: none; }
}
