/* Desktop keeps its photograph grid and familiar viewer controls. */
.photo-swipe-rail,.gallery-swipe-hint,.gallery-position{display:none}
#lightbox-stage{display:block;margin:0;padding:0;background:#e9e2d5}
#lightbox-stage>img{height:70vh;width:100%;object-fit:contain}
#lightbox .close{z-index:3;min-width:44px;min-height:44px}
.gallery-position{font-variant-numeric:tabular-nums;white-space:nowrap}
.photo-swipe-error[hidden]{display:none}
@media(max-width:760px){
 .guest-home .gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:4px 2px 7px;scroll-padding-inline:2px;touch-action:auto}
 .guest-home .gallery::-webkit-scrollbar,.photo-swipe-rail::-webkit-scrollbar{display:none}
 .guest-home .gallery button:nth-child(n){flex:0 0 calc(100% - 28px);height:clamp(260px,78vw,380px);scroll-snap-align:start;scroll-snap-stop:always}
 .guest-home .gallery button:only-child{flex-basis:100%}
 .guest-home .gallery button img{pointer-events:none;user-select:none;-webkit-user-select:none}
 .guest-home .gallery button:focus-visible{outline-offset:-3px}
 .gallery-meta{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:10px;font-size:12px;color:var(--supporting-ink)}
 .gallery-meta .gallery-hint{display:none}
 .gallery-meta .gallery-swipe-hint{display:block;margin:0;font-size:12px;line-height:1.7}
 .gallery-position{display:block;font-size:12px}
 #lightbox-stage.has-photo-swipe,#detail-stage.has-photo-swipe{touch-action:auto;overflow:hidden;isolation:isolate}
 .has-photo-swipe>.photo-swipe-source{display:none}
 .has-photo-swipe>.photo-swipe-rail{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;width:100%;height:36vh;min-height:200px;touch-action:auto;direction:ltr;scroll-padding:0}
 #lightbox-stage.has-photo-swipe>.photo-swipe-rail{height:62svh;min-height:230px}
 .photo-swipe-slide{position:relative;flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:center;scroll-snap-stop:always;display:grid;place-items:center;overflow:hidden}
 .photo-swipe-slide>img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
 .photo-swipe-rail:focus-visible{outline:2px solid var(--clay);outline-offset:-3px}
 .photo-swipe-error{position:absolute;inset:0;display:grid;place-content:center;max-width:100%;padding:25px;text-align:center;font-size:13px;line-height:1.7;color:var(--supporting-ink)}
 #detail-stage.has-photo-swipe>button,#lightbox:has(.has-photo-swipe) .previous,#lightbox:has(.has-photo-swipe) .next{display:none}
 #lightbox:has(.has-photo-swipe)>.gallery-swipe-hint,#room-dialog:has(.has-photo-swipe)>.gallery-swipe-hint{display:block;font-size:12px;color:var(--supporting-ink);text-align:center;margin:10px 0 6px}
 #lightbox #photo-count{display:inline-block;min-height:24px;font-size:12px}
 #lightbox>p:not(.gallery-swipe-hint){margin:14px 0 8px;font-size:14px;line-height:1.6}
 #detail-thumbnails{scrollbar-width:none}
 #detail-thumbnails::-webkit-scrollbar{display:none}
}
@media(prefers-reduced-motion:reduce){.gallery,.photo-swipe-rail{scroll-behavior:auto}}
