/* Horizontal slide: one photo at a time in a fixed 16:9 frame, whole and justified to the right. */
.pd-slider{position:relative;margin:var(--top) 0 0 7.5vw;width:calc(100% - 7.5vw - 9vw - var(--sw))}
.pd-track{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:0}
.pd-track::-webkit-scrollbar{display:none}
.pd-slide{flex:0 0 100%;height:100%;margin:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:flex-start;justify-content:flex-end}
.pd-slide img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

/* Controls under the frame: PREV, the counter and NEXT */
.pd-slider-ui{position:absolute;left:0;top:100%;margin-top:.8vw;display:flex;gap:1.6em;align-items:baseline;text-transform:uppercase;white-space:nowrap}
.pd-slider-ui button{background:none;border:0;padding:0;font:inherit;color:inherit;text-transform:uppercase;cursor:pointer}
.pd-slider-ui button:hover{font-weight:700}

/* Desktop: a fixed page with no scroll, same frame as the Exhibitions page; the controls fit under it. */
@media(min-width:801px){
html,body{height:100%;overflow:hidden}
.pd-slider{position:fixed;top:calc(var(--ab) + var(--top));left:7.5vw;margin:0;width:calc(100vw - 7.5vw - 9vw - var(--sw));height:min(calc((100vw - 7.5vw - 9vw - var(--sw)) * 9 / 16),calc(100vh - var(--ab) - var(--top) - 2vw - 2.4em))}
}

/* Phone: the slide comes first, fitted to the visible screen under the menu strip. */
@media(max-width:800px){
.pd-slider{margin:3vw 4vw 12vw;width:auto;height:min(115vw,calc(100vh - var(--pd-min,70px) - 22vw))}
.pd-slider-ui{margin-top:2.5vw}
}
@supports(height:100svh){
@media(max-width:800px){.pd-slider{height:min(115vw,calc(100svh - var(--pd-min,70px) - 22vw))}}
}

@media(prefers-reduced-motion:reduce){.pd-track{scroll-behavior:auto}}
