/* Exhibition UI is scoped so existing portraits and page sections retain their rules. */
.site-header .museum-brand-logo { width: 190px; max-height: 80px; }
.site-header .header-inner { gap: 1rem; }
.site-header .main-nav li { display: flex; align-items: center; }
.site-header .main-nav .nav-link { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.4; }
.nav-exhibitions { appearance: none; background: none; border: 0; cursor: pointer; font-weight: 600; }
.nav-exhibitions::after { transform: scaleX(1); }
.exhibitions-hero-button { background: var(--ivory); color: var(--charcoal); border: 1px solid var(--ivory); cursor: pointer; }
.exhibitions-hero-button:hover { background: var(--ivory-dark); color: var(--charcoal); border-color: var(--ivory-dark); }
.exhibitions-access { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 0 2.5rem; padding: 1.5rem 2rem; background: var(--ivory-dark); border-left: 3px solid var(--terracotta); }
.exhibitions-access p { margin: 0; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.3; color: var(--charcoal); }
.exhibitions-access button { flex-shrink: 0; cursor: pointer; }

@media (min-width:901px) and (max-width:1250px) { .site-header .btn-header { display:none; } .site-header .nav-link { font-size:.72rem; padding-inline:.55rem; } }
@media (max-width:900px) { .site-header .museum-brand-logo { width:160px; max-height:66px; } .site-header .header-inner { justify-content:space-between; } .site-header .main-nav.open .nav-exhibitions { font-size:1.25rem; } }
@media (max-width:680px) { .exhibitions-access { padding:1.25rem; align-items:flex-start; flex-direction:column; gap:1rem; } .exhibitions-access button,.hero-actions .exhibitions-hero-button { width:100%; justify-content:center; } .site-header .museum-brand-logo { width:155px; max-height:64px; } }
/* Modal archive. All selectors stay scoped to Exposiciones. */
.exhibitions-dialog { --archive-ink:#332f29; --archive-muted:#857c70; --archive-line:#dfd8cb; --archive-accent:#b86b4c; width:min(1400px,calc(100% - 64px)); height:min(940px,calc(100dvh - 48px)); max-width:none; max-height:none; margin:auto; padding:0; border:1px solid #e9e1d2; border-radius:26px; overflow:hidden; background:#faf7f0; color:var(--archive-ink); font-family:var(--font-sans); box-shadow:0 32px 120px #0006; transform-origin:center; }
.exhibitions-dialog[open] { display:flex; flex-direction:column; }
.exhibitions-dialog:not([open]),.exhibitions-dialog [hidden] { display:none!important; }
.exhibitions-dialog::backdrop { background:rgba(18,24,19,.72); backdrop-filter:blur(8px); }
.exhibitions-modal-header { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; padding:23px 32px 22px; border-bottom:1px solid var(--archive-line); background:#fbf8f2; }
.exhibitions-modal-header > div { display:flex; align-items:center; flex-wrap:wrap; gap:0 16px; }
.exhibitions-modal-kicker { display:block; flex-basis:100%; margin-bottom:6px; font-size:9px; font-weight:600; letter-spacing:.19em; line-height:1.3; text-transform:uppercase; color:#7e766a; }
.exhibitions-modal-header h2 { margin:0; font:500 clamp(28px,2.8vw,39px)/1.05 var(--font-serif); color:var(--archive-ink); }
.exhibitions-archive-pill { padding:6px 12px; border:1px solid #dcd4c5; border-radius:30px; font-size:10px; color:#8a7d68; letter-spacing:.025em; }
.exhibitions-close { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border:1px solid var(--archive-line); border-radius:50%; color:#71695e; background:#f6f2e9; cursor:pointer; }
.exhibitions-close svg { width:17px; height:17px; }
.exhibitions-close:hover { background:#eee5d8; }
.exhibitions-modal-body { display:grid; grid-template-columns:27% minmax(0,1fr); flex:1; min-height:0; overflow:hidden; }
.exhibitions-sidebar { overflow:auto; padding:30px 25px; border-right:1px solid var(--archive-line); background:#f6f2e9; scrollbar-width:thin; scrollbar-color:#d5cbba transparent; }
.exhibitions-sidebar-title { margin:0 0 25px; color:#8a7b65; font-size:9px; line-height:1.5; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.exhibitions-filter-label { display:block; color:var(--archive-muted); font-size:10px; margin-bottom:7px; }
.exhibitions-year { appearance:none; width:100%; padding:11px 14px; border:1px solid var(--archive-line); border-radius:9px; margin-bottom:20px; background:#fffaf2; color:var(--archive-ink); font:inherit; font-size:12px; }
.exhibitions-status,.exhibitions-pdf-status { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.exhibitions-timeline { list-style:none; margin:0 0 0 5px; padding:0 0 0 19px; border-left:1px solid #dacdb8; }
.exhibitions-timeline li { position:relative; margin:0 0 16px; }
.exhibitions-timeline li::before { content:''; position:absolute; top:30px; left:-23px; width:7px; height:7px; border-radius:50%; background:#c9bba3; box-shadow:0 0 0 5px #f6f2e9; }
.exhibitions-timeline li:has([aria-current])::before { background:var(--archive-accent); }
.exhibitions-entry { display:block; position:relative; width:100%; min-height:113px; padding:22px 20px; border:1px solid #dfd6c7; border-radius:14px; background:#fbf8f2; text-align:left; color:var(--archive-ink); cursor:pointer; transition:background 160ms,border-color 160ms,box-shadow 160ms; }
.exhibitions-entry:hover { border-color:#c7a58d; background:#fffaf2; }
.exhibitions-entry[aria-current] { border-color:var(--archive-accent); background:#f1e8db; box-shadow:0 3px 14px #8e5c3010; }
.exhibitions-entry-date { display:block; font:500 9px/1.5 var(--font-sans); color:#9c876a; letter-spacing:.035em; }
.exhibitions-entry strong { display:block; padding-right:4px; margin-top:9px; font:500 clamp(18px,1.65vw,23px)/1.17 var(--font-serif); }
.exhibitions-entry-type,.exhibitions-entry-active { display:none; }
.exhibitions-detail { position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; padding:27px 28px 24px; overflow:hidden; }
.exhibitions-document-content { display:flex; flex-direction:column; flex:1; min-height:0; gap:7px; }
.exhibitions-document-content > h3 { padding-right:145px; margin:0; color:var(--archive-ink); font:500 clamp(21px,2.2vw,30px)/1.16 var(--font-serif); }
.exhibitions-detail-date { padding-right:145px; margin:0; color:#9e8a6d; font-size:9px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; }
.exhibitions-document-content > p:not(.exhibitions-detail-date) { margin:0; color:var(--archive-muted); font-size:12px; }
.exhibitions-document-navigation { position:absolute; z-index:2; right:28px; top:28px; display:flex; gap:10px; align-items:center; }
.exhibitions-document-step { display:grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid var(--archive-line); border-radius:50%; color:#8a775f; background:transparent; cursor:pointer; }
.exhibitions-document-step svg { width:15px; height:15px; }
.exhibitions-document-position { min-width:43px; font-size:10px; color:#9b8869; text-align:center; letter-spacing:.08em; }
.exhibitions-document-step:hover:not(:disabled) { background:var(--archive-accent); border-color:var(--archive-accent); color:white; }
.exhibitions-document-step:disabled { opacity:.3; cursor:default; }
.exhibitions-pdf { display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; margin-top:13px; }
.exhibitions-pdf-view { position:relative; flex:1; min-height:0; overflow:hidden; border:1px solid #e0dbd0; border-radius:18px; background:radial-gradient(ellipse at 50% 40%,#f1eee6,#e8e5dc); }
.exhibitions-pdf-stage { position:absolute; inset:0 0 70px; display:flex; align-items:safe center; justify-content:safe center; overflow:auto; padding:8px 40px; overscroll-behavior:contain; scrollbar-width:thin; }
.exhibitions-pdf-page { display:block; flex-shrink:0; background:white; box-shadow:0 5px 24px #4b433829; border-radius:2px; animation:archive-page-reveal 160ms ease-out; }
.exhibitions-pdf-page[width="0"] { display:none; }
.exhibitions-pdf-control { appearance:none; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:32px; padding:0; border:0; border-radius:50%; color:#7b7368; background:transparent; cursor:pointer; text-decoration:none; }
.exhibitions-pdf-control svg { display:block; width:16px; height:16px; pointer-events:none; }
.exhibitions-pdf-control:hover:not(:disabled) { color:var(--archive-accent); background:#f3ede2; }
.exhibitions-pdf-control:disabled { opacity:.27; cursor:default; }
.exhibitions-pdf-edge { position:absolute; z-index:2; top:calc(50% - 35px); width:38px; height:38px; border:1px solid #ded8cc; background:#faf8f2eb; box-shadow:0 2px 6px #544a3710; }
.exhibitions-pdf-edge.is-previous { left:15px; }.exhibitions-pdf-edge.is-next { right:15px; }
.exhibitions-pdf-toolbar { position:absolute; z-index:3; bottom:16px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:3px; max-width:calc(100% - 24px); padding:7px 11px; border:1px solid #e6e0d6; border-radius:40px; background:#fffefa; box-shadow:0 5px 22px #63563c19; }
.exhibitions-pdf-page-count { border:0; border-radius:7px; padding:7px 3px; min-width:52px; color:#797065; background:transparent; font:500 10px/1.4 var(--font-sans); letter-spacing:.025em; white-space:nowrap; cursor:pointer; }
.exhibitions-pdf-page-count:hover { background:#f6f0e7; }
.exhibitions-pdf-page-count:disabled { opacity:.4; cursor:default; }
.exhibitions-pdf-zoom { min-width:35px; font-size:10px; text-align:center; color:#776c5b; }
.exhibitions-pdf-separator { align-self:stretch; width:1px; background:#e9e3d9; margin:4px 6px; }
.exhibitions-pdf-jump { position:absolute; z-index:5; bottom:80px; left:24px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; max-width:calc(100% - 48px); padding:14px; border:1px solid var(--archive-line); border-radius:12px; box-shadow:0 8px 24px #0002; background:#fffdf8; }
.exhibitions-pdf-jump label { font-size:11px; }.exhibitions-pdf-jump input { width:65px; padding:9px; border:1px solid var(--archive-line); border-radius:7px; color:var(--archive-ink); background:#faf7ef; font:inherit; font-size:12px; }
.exhibitions-pdf-jump button,.exhibitions-pdf-load { padding:9px 15px; border:0; border-radius:7px; background:var(--archive-accent); color:white; font:500 12px var(--font-sans); cursor:pointer; }
.exhibitions-pdf-message { position:absolute; z-index:2; top:50%; left:50%; transform:translate(-50%,-50%); max-width:300px; width:80%; padding:23px; border:1px solid #ded5c5; border-radius:14px; background:#faf7f0f5; box-shadow:0 4px 20px #00000009; text-align:center; }
.exhibitions-pdf-message p { font-size:12px; line-height:1.7; color:#8b7b65; margin:0 0 10px; }
.exhibitions-pdf-message p:last-child { margin:0; }.exhibitions-pdf-fallback { display:inline-block; padding:9px 12px; font-size:12px; text-decoration:underline; color:var(--archive-accent); }
.exhibitions-pdf-text-button { position:absolute; top:12px; right:12px; z-index:2; width:30px; height:30px; color:#a39784; }
.exhibitions-pdf-text { position:absolute; z-index:4; top:50px; right:15px; max-height:calc(100% - 140px); width:min(360px,calc(100% - 30px)); overflow:auto; padding:20px; border:1px solid var(--archive-line); border-radius:12px; background:#fffdf7; box-shadow:0 6px 28px #0002; }
.exhibitions-pdf-text p { font-size:12px; line-height:1.8; white-space:pre-line; color:#5d574c; margin:0; }
.exhibitions-empty { display:flex; flex-direction:column; justify-content:center; flex:1; min-height:200px; max-width:32rem; margin:auto; }.exhibitions-empty h3 { font:500 28px var(--font-serif); }.exhibitions-empty p { font-size:13px; line-height:1.8; color:var(--archive-muted); }.exhibitions-empty-mark { width:35px; margin-bottom:15px; border-top:2px solid var(--archive-accent); }
.exhibitions-gallery { display:grid; gap:15px; overflow:auto; }.exhibitions-gallery figure { margin:0; }.exhibitions-gallery img { display:block; width:100%; height:auto; max-height:430px; object-fit:contain; }.exhibitions-gallery figcaption { font-size:11px; color:var(--archive-muted); }
.exhibitions-reader-expanded .exhibitions-sidebar { display:none; }.exhibitions-reader-expanded .exhibitions-modal-body { grid-template-columns:1fr; }
.exhibitions-dialog :focus-visible,[data-exhibitions-open]:focus-visible { outline:2px solid var(--archive-accent,var(--terracotta)); outline-offset:4px; }.exhibitions-detail:focus-visible,.exhibitions-pdf-stage:focus-visible { outline-offset:-4px; }
.exhibitions-dialog.is-opening { animation:exhibitions-popup-in 250ms cubic-bezier(.2,.75,.25,1) both; }.exhibitions-dialog.is-closing { animation:exhibitions-popup-out 220ms cubic-bezier(.4,0,.65,1) both; }.exhibitions-dialog.is-opening::backdrop { animation:exhibitions-backdrop-in 250ms ease-out both; }.exhibitions-dialog.is-closing::backdrop { animation:exhibitions-backdrop-out 220ms ease-in both; }
@keyframes exhibitions-popup-in { from { opacity:var(--exhibitions-motion-opacity,0); transform:var(--exhibitions-motion-transform); } to { opacity:1; transform:none; } }
@keyframes exhibitions-popup-out { from { opacity:var(--exhibitions-motion-opacity,1); transform:var(--exhibitions-motion-transform,none); } to { opacity:0; transform:translate(var(--exhibitions-origin-x,0px),var(--exhibitions-origin-y,0px)) scale(.16); } }
@keyframes exhibitions-backdrop-in { from { background-color:rgba(18,24,19,0); } to { background-color:rgba(18,24,19,.72); } }@keyframes exhibitions-backdrop-out { from { background-color:rgba(18,24,19,.72); } to { background-color:rgba(18,24,19,0); } }
@keyframes archive-page-reveal { from { opacity:.8; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .exhibitions-dialog.is-opening,.exhibitions-dialog.is-closing,.exhibitions-dialog.is-opening::backdrop,.exhibitions-dialog.is-closing::backdrop,.exhibitions-pdf-page { animation:none; }.exhibitions-entry { transition:none; } }
@media (max-width:1000px) { .exhibitions-sidebar { padding:25px 16px; }.exhibitions-entry { padding:19px 15px; }.exhibitions-detail { padding:24px 20px 20px; }.exhibitions-document-navigation { right:20px; top:24px; }.exhibitions-entry strong { font-size:20px; } }
@media (max-width:680px) {
  .exhibitions-dialog { width:calc(100% - 16px); height:calc(100dvh - 16px); border-radius:20px; }.exhibitions-modal-header { padding:17px 18px; }.exhibitions-modal-kicker { font-size:7px; letter-spacing:.12em; }.exhibitions-modal-header h2 { font-size:29px; }.exhibitions-archive-pill { font-size:8px; padding:5px 8px; }.exhibitions-modal-header > div { gap:0 10px; }.exhibitions-close { width:35px; height:35px; }
  .exhibitions-modal-body { display:flex; flex-direction:column; overflow:auto; }.exhibitions-sidebar { flex-shrink:0; padding:17px 17px 14px; border-right:0; border-bottom:1px solid var(--archive-line); overflow:visible; }.exhibitions-sidebar-title { font-size:8px; margin-bottom:12px; }
  .exhibitions-timeline { display:flex; gap:10px; padding:0 0 4px; margin:0; border-left:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; }.exhibitions-timeline li { min-width:168px; flex:0 0 168px; margin:0; scroll-snap-align:start; }.exhibitions-timeline li::before { display:none; }.exhibitions-entry { min-height:91px; padding:14px; border-radius:11px; }.exhibitions-entry-date { font-size:8px; }.exhibitions-entry strong { font-size:18px; margin-top:7px; }
  .exhibitions-detail { overflow:visible; flex:1 0 auto; padding:21px 15px 15px; min-height:500px; }.exhibitions-document-content { flex:1; min-height:440px; gap:6px; }.exhibitions-document-content > h3 { font-size:22px; padding-right:112px; min-height:26px; }.exhibitions-detail-date { font-size:8px; padding-right:110px; }.exhibitions-document-navigation { top:20px; right:15px; gap:5px; }.exhibitions-document-step { width:32px; height:32px; }.exhibitions-document-position { font-size:8px; min-width:35px; }
  .exhibitions-pdf { min-height:360px; margin-top:10px; }.exhibitions-pdf-view { min-height:360px; border-radius:14px; }.exhibitions-pdf-stage { inset:0 0 65px; padding:8px 27px; }.exhibitions-pdf-toolbar { gap:0; padding:5px 4px; bottom:12px; max-width:calc(100% - 12px); }.exhibitions-pdf-control { width:29px; height:36px; border-radius:20px; }.exhibitions-pdf-control svg { width:15px; height:15px; }.exhibitions-pdf-page-count { min-width:44px; font-size:9px; }.exhibitions-pdf-zoom { min-width:30px; font-size:9px; }.exhibitions-pdf-separator { margin:5px 3px; }.exhibitions-pdf-edge { width:32px; height:40px; }.exhibitions-pdf-edge.is-previous { left:7px; }.exhibitions-pdf-edge.is-next { right:7px; }
  .exhibitions-pdf-text-button { top:6px; right:6px; }.exhibitions-reader-expanded .exhibitions-sidebar { display:none; }.exhibitions-reader-expanded .exhibitions-detail { min-height:100%; }.exhibitions-reader-expanded .exhibitions-pdf-view { min-height:calc(100dvh - 215px); }
}

@media (max-width:380px) { .exhibitions-pdf-toolbar .exhibitions-pdf-control[aria-label="Página anterior"], .exhibitions-pdf-toolbar .exhibitions-pdf-control[aria-label="Página siguiente"] { display:none; } .exhibitions-pdf-toolbar { gap:0; } }

/* Book reader: paper, paired leaves and quiet controls, within the archive palette. */
.exhibitions-book-reader { gap:10px; margin-top:10px; }
.exhibitions-reader-heading { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:12px; }
.exhibitions-reader-heading-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.exhibitions-reader-fullscreen-button { border:1px solid var(--archive-line); background:#fcf9f3; white-space:nowrap; }
.exhibitions-reader-fullscreen-button[aria-pressed="true"] { color:var(--archive-accent); background:#f0e6d8; border-color:#ceab91; }
.exhibitions-reader-heading .exhibitions-pdf-control { gap:7px; width:auto; height:34px; padding:0 12px; border-radius:8px; font:500 11px var(--font-sans); }
.exhibitions-reader-thumbnails-toggle { border:1px solid var(--archive-line); background:#fcf9f3; }
.exhibitions-reader-thumbnails-toggle[aria-expanded="true"] { color:var(--archive-accent); background:#f0e6d8; border-color:#ceab91; }
.exhibitions-reader-modes { display:flex; align-items:center; padding:3px; border:1px solid var(--archive-line); border-radius:10px; background:#eee9df; }
.exhibitions-reader-modes .exhibitions-pdf-control { height:29px; color:#8b8070; }
.exhibitions-reader-modes .exhibitions-pdf-control[aria-pressed="true"] { background:#fffdf8; color:#6c4935; box-shadow:0 1px 5px #4f39241a; }
.exhibitions-book-reader .exhibitions-pdf-view { background:radial-gradient(ellipse at 50% 44%,#f4f0e7 0%,#e7e0d3 85%); }
.exhibitions-book-reader .exhibitions-pdf-stage { inset:0 0 79px; padding:18px 44px; overflow:hidden; overflow-anchor:none; touch-action:pan-y pinch-zoom; }
.exhibitions-book-reader .exhibitions-pdf-stage.is-zoomed { overflow:auto; scrollbar-gutter:stable both-edges; }
.exhibitions-reader-book { position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; isolation:isolate; box-shadow:0 16px 30px -13px #473b3466,0 2px 5px #473b3420; }
.exhibitions-book-reader .exhibitions-pdf-page { margin:0; border-radius:1px; box-shadow:none; animation:none; }
.exhibitions-reader-book::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; border:1px solid #51422b16; box-shadow:3px 3px 0 #f6f2e8,4px 4px 0 #cfc7b8,5px 5px 0 #f6f2e8; }
.exhibitions-reader-book.is-spread::before { content:""; position:absolute; z-index:2; top:0; bottom:0; left:50%; width:40px; transform:translateX(-50%); background:linear-gradient(90deg,transparent,#372c1c0d 35%,#372c1c29 49%,#fff9 51%,#fff1 70%,transparent); pointer-events:none; }
.exhibitions-reader-turn { position:absolute; z-index:1; overflow:clip; contain:strict; pointer-events:none; }
.exhibitions-reader-turn canvas { display:block; }
.exhibitions-book-reader .exhibitions-pdf-edge { top:calc(50% - 40px); }
.exhibitions-book-reader .exhibitions-pdf-toolbar { gap:3px; padding:7px 12px; bottom:17px; }
.exhibitions-book-reader .exhibitions-pdf-control { min-width:32px; }
.exhibitions-book-reader .exhibitions-pdf-page-count { min-width:68px; font-variant-numeric:tabular-nums; }
.exhibitions-book-reader .exhibitions-pdf-jump { bottom:83px; }
.exhibitions-reader-loading { position:absolute; z-index:4; top:16px; left:50%; transform:translateX(-50%); padding:7px 14px; border:1px solid #d7c9b3; border-radius:20px; background:#fffaf0ed; color:#7b5b40; font-size:10px; box-shadow:0 3px 12px #493d2612; pointer-events:none; white-space:nowrap; }
.exhibitions-reader-footer { display:flex; align-items:center; flex-shrink:0; gap:12px; min-height:24px; padding:0 3px; }
.exhibitions-reader-hint { flex:1; color:#8b7d69; font-size:10px; }
.exhibitions-reader-progress { --reader-progress:0%; appearance:none; width:110px; height:4px; margin:8px 0; border-radius:10px; background:linear-gradient(to right,#ae7558 var(--reader-progress),#e1d7c6 var(--reader-progress)); cursor:pointer; }
.exhibitions-reader-progress::-webkit-slider-thumb { appearance:none; width:13px; height:13px; border:2px solid #fffaf0; border-radius:50%; background:#ae7558; box-shadow:0 1px 4px #5c402c44; }
.exhibitions-reader-progress::-moz-range-thumb { width:10px; height:10px; border:2px solid #fffaf0; border-radius:50%; background:#ae7558; }
.exhibitions-reader-progress:disabled { opacity:.4; cursor:default; }
.exhibitions-reader-progress-label { min-width:40px; font-size:10px; text-align:right; font-variant-numeric:tabular-nums; color:#8b7d69; }
.exhibitions-reader-thumbnails { position:absolute; z-index:5; inset:0 auto 0 0; display:flex; flex-direction:column; width:152px; border-right:1px solid #d5c9b6; background:#f7f2e8; box-shadow:5px 0 16px #4736270a; }
.exhibitions-reader-thumbnails-heading { display:flex; align-items:center; justify-content:space-between; padding:10px 8px 10px 16px; color:#8b785e; font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.exhibitions-reader-thumbnails-list { min-height:0; flex:1; overflow:auto; overflow-anchor:none; padding:3px 15px 18px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cdbca5 transparent; }
.exhibitions-reader-thumbnail { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:100%; padding:9px 7px 6px; margin-bottom:10px; border:1px solid transparent; border-radius:8px; background:transparent; color:#8d7c65; cursor:pointer; }
.exhibitions-reader-thumbnail:hover { background:#eee4d4; }
.exhibitions-reader-thumbnail[aria-current] { border-color:#ba805d; background:#eadfcf; color:#79543b; }
.exhibitions-reader-thumbnail-paper { display:grid; place-items:center; width:100%; height:142px; min-height:142px; background:#fffdf7; border:1px solid #dfd6c6; box-shadow:0 2px 5px #43352012; }
.exhibitions-reader-thumbnail-paper canvas { display:block; width:auto; height:auto; max-width:100%; max-height:140px; }
.exhibitions-reader-thumbnail-number { font-size:10px; font-variant-numeric:tabular-nums; }
.exhibitions-book-reader .has-thumbnails .exhibitions-pdf-stage { left:152px; }
.exhibitions-book-reader .has-thumbnails .exhibitions-pdf-edge.is-previous { left:163px; }
.exhibitions-book-reader .has-thumbnails .exhibitions-pdf-toolbar { left:calc(50% + 76px); max-width:calc(100% - 172px); }
.exhibitions-book-reader .has-thumbnails .exhibitions-pdf-jump { left:170px; }

@media (max-width:1100px) {
  .exhibitions-reader-hint { font-size:9px; }
  .exhibitions-reader-progress { width:80px; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-stage { left:0; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-edge.is-previous { left:15px; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-toolbar { left:50%; max-width:calc(100% - 24px); }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-jump { left:24px; }
  .exhibitions-reader-thumbnails { box-shadow:10px 0 25px #44341f22; }
}
@media (max-width:680px) {
  .exhibitions-book-reader { min-height:460px; gap:8px; }
  .exhibitions-book-reader .exhibitions-pdf-view { min-height:390px; }
  .exhibitions-book-reader .exhibitions-pdf-stage { inset:0 0 72px; padding:18px 26px; }
  .exhibitions-reader-heading .exhibitions-pdf-control { padding-inline:9px; font-size:10px; }
  .exhibitions-book-reader .exhibitions-pdf-toolbar { gap:0; bottom:13px; padding:5px; }
  .exhibitions-book-reader .exhibitions-pdf-toolbar .exhibitions-pdf-control { min-width:29px; }
  .exhibitions-book-reader .exhibitions-pdf-page-count { min-width:59px; }
  .exhibitions-reader-hint { font-size:9px; max-width:180px; }
  .exhibitions-reader-footer { gap:8px; }
  .exhibitions-reader-progress { width:65px; }
  .exhibitions-reader-progress-label { min-width:30px; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-stage { left:0; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-edge.is-previous { left:7px; }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-toolbar { left:50%; max-width:calc(100% - 12px); }
  .exhibitions-book-reader .has-thumbnails .exhibitions-pdf-jump { left:24px; }
  .exhibitions-reader-thumbnails { width:144px; box-shadow:10px 0 25px #44341f33; }
  .exhibitions-reader-expanded .exhibitions-book-reader .exhibitions-pdf-view { min-height:calc(100dvh - 294px); }
}
@media (max-width:380px) {
  .exhibitions-reader-heading .exhibitions-pdf-control { padding-inline:8px; gap:5px; }
  .exhibitions-reader-hint { max-width:150px; }
}

/* Keep the same reader and current page when entering or leaving fullscreen. */
.exhibitions-dialog .exhibitions-book-reader.is-fullscreen { box-sizing:border-box; width:100%; height:100%; min-height:0; margin:0; padding:18px 24px 10px; background:#faf7f0; }
.exhibitions-dialog .exhibitions-book-reader.is-fullscreen .exhibitions-pdf-view { min-height:0; }
.exhibitions-book-reader:fullscreen { width:100vw; height:100dvh; }
.exhibitions-book-reader::backdrop { background:#faf7f0; }
.exhibitions-dialog.exhibitions-reader-fullscreen { position:fixed; inset:0; width:100%; height:100dvh; margin:0; border:0; border-radius:0; }
.exhibitions-reader-fullscreen .exhibitions-modal-header,
.exhibitions-reader-fullscreen .exhibitions-sidebar,
.exhibitions-reader-fullscreen .exhibitions-document-navigation,
.exhibitions-reader-fullscreen .exhibitions-document-content > :not(.is-fullscreen) { display:none; }
.exhibitions-reader-fullscreen .exhibitions-modal-body { display:flex; }
.exhibitions-reader-fullscreen .exhibitions-detail { flex:1; padding:0; }
.exhibitions-reader-fullscreen .exhibitions-document-content { gap:0; }
@media (max-width:680px) {
  .exhibitions-reader-heading { flex-wrap:wrap; gap:8px; }
  .exhibitions-reader-heading-actions { margin-left:auto; }
  .exhibitions-dialog .exhibitions-book-reader.is-fullscreen { padding:10px 10px 6px; }
}
