/* Scoped exclusively to menu/wine documents and their existing modal. */
.document-carousel{width:min(100%,760px);margin:2rem auto 0;min-width:0;min-height:400px}
.document-track{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d97732 transparent;align-items:flex-start}
.document-page{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.document-image-button{display:block;background:none;border:0;padding:0;margin:auto;cursor:zoom-in;width:100%;color:inherit}
.document-image-button img{display:block;width:100%;height:auto;max-width:520px;margin:auto;object-fit:contain;background:#fff}
.document-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1rem;margin:1.5rem 0}
.document-controls button:not(.sketch-link){border:1px solid currentColor;border-radius:50%;width:44px;height:44px;background:transparent;color:inherit;font:inherit;font-size:24px;cursor:pointer}
.document-controls button:disabled{opacity:.3;cursor:default}.document-controls .sketch-link{font-size:20px;margin:0 0 0 .7rem}
.document-controls button:focus-visible,.document-track:focus-visible,.document-image-button:focus-visible,#toggle-wines:focus-visible{outline:2px solid #da742e;outline-offset:5px}
#wine-section{position:relative;text-align:center;margin-top:4rem}#wine-section h3{font:inherit;margin:0}#toggle-wines{font-size:clamp(24px,4vw,36px)}
#wine-pages[hidden]{display:none}#wine-pages{animation:document-reveal .3s ease}#wine-pages h4{font:inherit;font-size:clamp(24px,3vw,32px);margin:3rem 0 0}
#menu-disclosure #pdf-stage{display:block;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
#menu-disclosure #pdf-stage img{display:block;max-width:100%;width:auto;height:100%;object-fit:contain;margin:0 auto}
#menu-disclosure #pdf-stage.document-zoomed img{height:auto;width:1800px;max-width:none;margin:0}
@keyframes document-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:600px){.document-carousel{min-height:300px}.document-controls{gap:.65rem}.document-controls .sketch-link{flex-basis:100%;margin:1rem 0}.document-image-button img{max-width:100%}}
@media(prefers-reduced-motion:reduce){#wine-pages{animation:none}}
.document-carousel:not([data-ready="true"])::before{content:"";display:block;width:min(100%,520px);aspect-ratio:595.5 / 842.25;margin:auto;background:rgba(255,255,255,.4)}
.document-carousel[data-document="cardapio"]:not([data-ready="true"])::before{aspect-ratio:383.25 / 1106.25}
.document-carousel:not([data-ready="true"])::after{content:"";display:block;height:92px}
@media(max-width:600px){.document-carousel:not([data-ready="true"])::after{height:160px}}
#menu-disclosure #pdf-stage.document-zoomed img{width:max(100%,min(1100px,250vw))}
@media(min-width:900px){.document-carousel{position:relative}.document-controls>button:first-child,.document-controls>button:nth-child(3){position:absolute;top:45%}.document-controls>button:first-child{left:0}.document-controls>button:nth-child(3){right:0}}
@media(min-width:900px){
 .document-carousel[data-document="vinhos-completa"]{width:min(100%,1040px)}
 [data-document="vinhos-completa"] .document-page{flex-basis:50%;padding:0 10px}
 [data-document="vinhos-completa"] .document-controls>button:first-child{left:-48px}
 [data-document="vinhos-completa"] .document-controls>button:nth-child(3){right:-48px}
}

/* Compact preview only; wine pages and the full-resolution dialog are unchanged. */
.document-carousel[data-document="cardapio"]{--menu-preview-height:min(600px,70svh);min-height:0}
[data-document="cardapio"] .document-image-button img{width:auto;height:auto;max-width:80%;max-height:var(--menu-preview-height)}
.document-carousel[data-document="cardapio"]:not([data-ready="true"])::before{width:min(80%,calc(var(--menu-preview-height)*383.25/1106.25));max-height:var(--menu-preview-height)}
@media(max-width:600px){.document-carousel[data-document="cardapio"]{--menu-preview-height:min(440px,55svh)}}
