/* Motion galleries: shared controls, seven distinct spatial compositions. */
.mm-gallery[data-motion]{--pf-scene-time:800ms;--pf-scene-ease:cubic-bezier(.25,.65,.2,1);--pf-scene-height:clamp(440px,48vw,650px);--pf-perspective:1400px;--pf-print-shadow:0 12px 24px rgb(26 24 21 / .12)}
.pf-motion-stage{position:relative;height:var(--pf-scene-height);overflow:hidden;perspective:var(--pf-perspective);touch-action:pan-y;background:var(--pf-surface);isolation:isolate}
.pf-motion-scene{position:absolute;inset:0;transform-style:preserve-3d;transition:transform var(--pf-slow) ease}
.pf-motion-card{position:absolute;left:15%;top:9%;width:70%;height:82%;padding:0;border:0;background:transparent;cursor:zoom-in;transform-style:preserve-3d;backface-visibility:hidden;transition:transform var(--pf-scene-time) var(--pf-scene-ease),opacity var(--pf-slow) ease;will-change:transform}
.pf-motion-card img{width:100%;height:100%;object-fit:contain;display:block;user-select:none}
.pf-motion-card:not(.is-current){cursor:pointer}
.pf-motion-stage[data-mode=slideshow]{background:transparent}
.pf-motion-stage[data-mode=slideshow] .pf-motion-card{left:8%;width:84%;top:5%;height:90%;transition:opacity 400ms ease}
.pf-motion-stage[data-mode=prints]{background:var(--pf-surface)}
.pf-motion-stage[data-mode=prints] .pf-motion-card{left:22%;width:56%;top:12%;height:73%;padding:var(--s4) var(--s4) var(--s8);background:var(--white);box-shadow:var(--pf-print-shadow)}
.pf-motion-stage[data-mode=orbit],.pf-motion-stage[data-mode=tunnel]{background:var(--pf-dark)}
.pf-motion-stage[data-mode=orbit] .pf-motion-card{left:30%;width:40%;top:6%;height:88%}
.pf-motion-stage[data-mode=tunnel] .pf-motion-card{left:27%;width:46%;top:10%;height:80%;background:var(--pf-dark);box-shadow:var(--pf-print-shadow)}
.pf-motion-stage[data-mode=atlas]{background:var(--pf-surface)}
.pf-motion-stage[data-mode=atlas] .pf-motion-card{left:26%;width:48%;top:4%;height:80%;padding:var(--s3);background:var(--pf-paper);box-shadow:var(--pf-print-shadow)}
.pf-motion-stage[data-mode=book]{background:var(--pf-surface)}
.pf-motion-stage[data-mode=book] .pf-motion-card{left:20%;width:60%;height:82%;padding:var(--s6);background:var(--white);box-shadow:var(--pf-print-shadow)}
.pf-motion-controls{display:flex;align-items:center;justify-content:center;gap:var(--s4);padding:var(--s6) 0 var(--s8);flex-wrap:wrap}
.pf-motion-controls button{min-height:48px;padding:var(--s3) var(--s4);border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:15px;border-radius:var(--pf-radius);cursor:pointer;transition:background var(--pf-fast)}
.pf-motion-controls :is(.pf-motion-prev,.pf-motion-next){width:48px;padding:0;font-size:25px;border-radius:50%}
.pf-motion-controls button:hover{background:rgb(179 151 103 / .16)}
.pf-motion-controls button:disabled{opacity:.5;cursor:default}
.pf-motion-count{min-width:74px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
.pf-motion-reduce{margin-left:var(--s4)}
.pf-all-photos{border-top:1px solid var(--pf-gold);padding-top:var(--s3)}
.pf-all-photos summary{min-height:48px;padding:var(--s3) 0;cursor:pointer;font-size:16px;text-decoration:underline;text-underline-offset:5px}
.pf-all-photos summary:focus-visible{outline:3px solid var(--pf-gold);outline-offset:3px}
.pf-all-photos .pf-photos{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--s3);padding:var(--s6) 0;overflow:visible}
.pf-all-photos .pf-photo,.pf-all-photos .pf-photo:nth-child(n){width:100%;height:auto;grid-column:auto!important;transform:none;padding:0;border:0;box-shadow:none;flex:none;opacity:1;aspect-ratio:1}
.pf-all-photos .pf-photo img{width:100%;height:100%;object-fit:contain;background:var(--pf-surface)}
.pf-turning-leaf{backface-visibility:visible}
.pf-motion-off .pf-motion-card,.pf-motion-off .pf-motion-scene{transition:none!important}
.pf-preview-art.pf-arrive{animation:pf-preview-enter 1100ms var(--pf-scene-ease) both}
@keyframes pf-preview-enter{from{opacity:.35;transform:perspective(1200px) translateY(32px) rotateX(8deg)}to{opacity:1;transform:perspective(1200px) translateY(0) rotateX(0)}}
@media(max-width:650px){.mm-gallery[data-motion]{--pf-scene-height:430px}.pf-motion-stage{margin-inline:-12px}.pf-motion-card{left:8%;width:84%;top:12%;height:76%}.pf-motion-stage[data-mode=slideshow]{height:300px}.pf-motion-stage[data-mode=slideshow] .pf-motion-card{left:2%;width:96%;height:94%;top:3%}.pf-motion-stage[data-mode=prints] .pf-motion-card{left:9%;width:76%;padding:var(--s2) var(--s2) var(--s6)}.pf-motion-stage[data-mode=orbit] .pf-motion-card{left:17%;width:66%;top:8%;height:84%}.pf-motion-stage[data-mode=tunnel] .pf-motion-card{left:16%;width:68%;height:78%;top:14%}.pf-motion-stage[data-mode=atlas] .pf-motion-card{left:15%;width:70%;height:80%;top:0}.pf-motion-stage[data-mode=book] .pf-motion-card{left:10%;width:76%;padding:var(--s3)}.pf-motion-controls{gap:var(--s3);padding-block:var(--s4) var(--s6)}.pf-motion-reduce{margin-left:0;flex-basis:calc(50% - 6px)}.pf-motion-controls .pf-motion-next{margin-right:calc((100% - 194px)/2)}.pf-motion-controls .pf-motion-prev{margin-left:calc((100% - 194px)/2)}.pf-all-photos .pf-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2)}}
@media(prefers-reduced-motion:reduce){.pf-motion-card,.pf-motion-scene{transition:none!important}.pf-preview-art.pf-arrive{animation:none!important}}

.pf-motion-stage:not(.pf-motion-ready) .pf-motion-card{transition:none}


.pf-motion-stage[data-mode=fan]{background:var(--pf-surface)}.pf-motion-stage[data-mode=fan] .pf-motion-card{padding:12px;background:var(--pf-paper);box-shadow:var(--pf-print-shadow)}

.mm-gallery[data-motion]{--pf-surface:#e9eee4;--pf-dark:#18372b;--pf-paper:#fffdf7;--white:#fffdf7;--pf-gold:#b7c9af;--pf-radius:24px;--pf-fast:200ms;--pf-slow:450ms;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s6:24px;--s8:32px;--pf-scene-height:clamp(330px,43vw,580px);margin-block:28px;}
.spa-page .mm-gallery[data-motion]{--pf-surface:#efdce4;--pf-dark:#59364a;--pf-gold:#cfa6b9;}
.document-column .mm-gallery[data-motion]{--pf-scene-height:400px;}
.mm-gallery .pf-motion-card img{margin:0;max-height:none;border-radius:0;object-fit:contain;}
.mm-gallery .pf-motion-stage{border-radius:18px;margin-inline:0;}
.mm-gallery .pf-motion-controls{padding:18px 0;gap:12px;}
.mm-gallery .pf-all-photos .photo-tile:nth-child(n){grid-row:auto;grid-column:auto;aspect-ratio:1;}
.mm-gallery .pf-all-photos .photo-tile:nth-child(n) img{height:100%;margin:0;max-height:none;object-fit:contain;}
.mm-gallery .pf-all-photos .photo-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));}
@media(max-width:650px){.mm-gallery[data-motion],.document-column .mm-gallery[data-motion]{--pf-scene-height:360px;}.mm-gallery .pf-motion-controls .pf-motion-prev,.mm-gallery .pf-motion-controls .pf-motion-next{margin-inline:0;}.mm-gallery .pf-motion-reduce{flex-basis:auto;font-size:12px;}.mm-gallery .pf-motion-count{min-width:50px;font-size:13px;}}

.pf-motion-controls .pf-motion-play{width:auto;min-width:90px;padding-inline:18px;border-radius:24px;}
