/* Room photography shares one interaction across listing cards and room popups. */
.room-gallery{position:relative;min-width:0;overflow:hidden;background:#eeedeb;isolation:isolate}
.room-gallery-track{position:absolute;inset:0;display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom;cursor:grab;-webkit-overflow-scrolling:touch}
.room-gallery-track::-webkit-scrollbar{display:none}
.room-gallery-track:focus-visible{outline:2px solid #fff;outline-offset:-5px}
.room-gallery-slide{position:relative;flex:0 0 100%;width:100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.room-gallery .room-gallery-slide>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-width:none;object-fit:cover;transform:none;scale:1;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.room-gallery.is-dragging .room-gallery-track{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.room-gallery.is-dragging,.room-gallery.is-dragging *{cursor:grabbing!important;user-select:none}
.room-gallery-controls{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px;padding:8px 12px;pointer-events:none;z-index:2;isolation:isolate}
.room-gallery-controls::before{content:"";position:absolute;inset:auto 0 0;height:112px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,transparent 0%,#130c0c26 32%,#130c0c80 72%,#130c0cad 100%)}
.room-gallery-controls[hidden]{display:none!important}
.room-gallery-arrow{position:static;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#fff;line-height:1;font-family:var(--sans);font-size:27px;pointer-events:auto;transform:none;transition:background .22s var(--ease),opacity .22s var(--ease)}
.room-gallery-arrow>span{display:block;transform:none;transition:none}
.room-gallery-arrow:hover:not(:disabled){background:#ffffff18;color:#fff}
.room-gallery-arrow:focus-visible{outline:2px solid #fff;outline-offset:3px}
.room-gallery-arrow:disabled{opacity:.42;cursor:default}
.room-gallery-count{position:static;display:block;min-width:53px;padding:0;border:0;background:none;color:#fff;font:12px/1.5 var(--sans);letter-spacing:.05em;text-align:center;transform:none;font-variant-numeric:tabular-nums;text-shadow:0 1px 8px #0006}
.rooms-page .catalogue-card>.room-gallery.catalogue-photo{height:auto;aspect-ratio:3/2;flex:none;padding:0;width:100%}
.room-dialog .room-gallery--popup{align-self:stretch;min-height:590px;height:auto;aspect-ratio:auto;overflow:hidden}
.room-dialog .room-gallery--popup .room-gallery-slide>img{min-height:0;height:100%}
@media(max-width:760px){
 .room-gallery-controls{height:60px;padding:6px 8px}
 .room-gallery-controls::before{height:100px}
 .room-gallery-arrow{font-size:25px}
 .room-gallery-count{font-size:11px;min-width:49px}
 .room-dialog .room-gallery--popup{height:clamp(280px,76vw,420px);min-height:0;aspect-ratio:auto}
}
@media(prefers-reduced-motion:reduce){
 .room-gallery-track{scroll-behavior:auto}
 .room-gallery-arrow{transition:none}
}
