/* Reference 2: exhibit floor, portrait photograph and comparison arc. */
.work-meta { font:13px/1.8 SimSun,serif;letter-spacing:.04em;color:var(--work-muted);margin:0 0 8px;overflow-wrap:anywhere; }
#collection-viewer h1 { overflow-wrap:anywhere; }
#work-information { position:relative;z-index:9; }
#work-information[open] { background:#0d0d0cf5;padding:10px 14px;border:1px solid #ffffff20;box-shadow:0 10px 24px #0008; }
#work-information-content { max-height:240px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }
#work-information-content p { font-size:14px;line-height:1.9;margin:10px 0;letter-spacing:.02em;overflow-wrap:anywhere; }
#work-information-content strong { font-weight:400;color:var(--a); }
@media(min-width:801px){#collection-viewer h1 {font-size:clamp(20px,1.65vw,27px);line-height:1.45;}}
@media (min-width:1450px) {
  #collection-viewer .wordmark { margin-left:2px; }
  #collection-viewer .intro { width:395px; max-width:none; }
  #collection-viewer #stage.view-compare .photo-frame {
    margin-left:-68px; width:calc(100% + 24px);
    background:none;
  }
  /* This photograph includes its museum case. Match the reference's display
     aperture while keeping the full original available in the photo tab. */
  .qilu-detail-reference #collection-viewer #stage.view-compare .photo-zoom:has(img[src$='/08.png']) {
    inset:-18px 0 32px;
  }
  .qilu-detail-reference #collection-viewer #stage.view-compare #real-photo[src$='/08.png'] {
    width:100%; height:100%; max-width:none; max-height:none;
    object-fit:fill;
    filter:brightness(.94) contrast(1.09) saturate(1.04);
  }
  #collection-viewer .stage-arc {
    left:0; top:-1%; width:51.5%; height:95%;
    border-color:color-mix(in srgb,var(--a) 85%,#fff 15%);
    mask-image:linear-gradient(90deg,transparent 20%,#000 85%),linear-gradient(180deg,#000 34%,transparent 39%,transparent 61%,#000 66%);
    -webkit-mask-image:linear-gradient(90deg,transparent 20%,#000 85%),linear-gradient(180deg,#000 34%,transparent 39%,transparent 61%,#000 66%);
    mask-composite:intersect; -webkit-mask-composite:source-in;
  }
  #collection-viewer .compare-center { transform:translate(-16px,-3px); }
  #collection-viewer #model-view { inset:-12px 0 86px; }
  #collection-viewer #annotations { padding-left:97px; padding-bottom:80px; }
  #collection-viewer .annotation-description { font-size:15px; letter-spacing:0; white-space:nowrap; }
  #collection-viewer .annotation-focus { padding-bottom:13px; }
}
/* Photograph mode: a single museum exhibit with quiet peripheral controls. */
.photo-neighbor { display:none; }
.photo-aperture { display:contents; }
@media(min-width:801px){
 .qilu-detail-reference #collection-viewer #stage.view-photo #real-photo:not([src$='/08.png']) {
   width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;
 }
 #collection-viewer #stage.view-photo .photo-neighbor img { object-fit:cover;object-position:center; }
}
@media (min-width:801px) {
  #collection-viewer #stage.view-photo .photo-frame {
    width:min(64%,560px); height:100%; margin:0 auto;
    isolation:isolate;
    background:radial-gradient(ellipse at 50% 75%,#c9aabc0c,transparent 70%);
  }
  #collection-viewer #stage.view-photo .photo-frame:before {
    inset:-12px -30px -2px;
    background:linear-gradient(90deg,#080807,transparent 16%,transparent 84%,#080807),linear-gradient(180deg,#080807,transparent 12%,transparent 93%,#080807);
  }
  #collection-viewer #stage.view-photo .photo-backdrop {
    display:block; inset:0; width:100%; height:100%;
    object-fit:cover; transform:none;
    filter:blur(12px) brightness(.48) saturate(.8); opacity:.7;
    mask-image:radial-gradient(ellipse 65% 70% at 50% 55%,#000 45%,transparent 100%);
    -webkit-mask-image:radial-gradient(ellipse 65% 70% at 50% 55%,#000 45%,transparent 100%);
  }
  #collection-viewer #stage.view-photo .photo-aperture {
    display:block; position:absolute; inset:-8px 0 17px;
    overflow:hidden; z-index:1;
  }
  #collection-viewer #stage.view-photo .photo-zoom { inset:0; }
  .qilu-detail-reference #collection-viewer #stage.view-photo #real-photo {
    filter:brightness(1.02) contrast(1.025) saturate(1.02);
    mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(180deg,transparent,#000 8%,#000 93%,transparent);
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(180deg,transparent,#000 8%,#000 93%,transparent);
  }
  #collection-viewer #stage.view-photo .photo-frame:after {
    left:-3%; right:-3%; bottom:3px; height:64px;
    border:1px solid color-mix(in srgb,var(--a) 62%,var(--b));
    background:radial-gradient(ellipse at center,#e7c8dd29,#d3b5ce12 48%,transparent 73%);
    box-shadow:0 0 24px #c6a3c52e,inset 0 0 15px #dec4d51c;
  }
  #collection-viewer #stage.view-photo .photo-pedestal {
    display:block; left:14%; right:14%; bottom:12px; height:35px;
    border:1px solid #e3c8d86b; background:radial-gradient(ellipse,#ead3d61a,transparent 75%);
    filter:none; box-shadow:0 0 16px #ddc5d22e;
  }
  #collection-viewer #stage.view-photo .photo-nav {
    top:46%; width:52px; height:52px;
    border:1px solid #d3bfd62e;
    background:radial-gradient(circle at 40% 25%,#4b424559,#211d2080);
    box-shadow:inset 0 1px 1px #fff1,0 4px 18px #0003;
    color:#f0e7d6;
  }
  #collection-viewer #stage.view-photo .photo-prev { left:-82px; }
  #collection-viewer #stage.view-photo .photo-next { right:-82px; }
  #collection-viewer #stage.view-photo .photo-nav:hover:not(:disabled) {
    background:#3c303c; border-color:var(--a);
  }
  #collection-viewer #stage.view-photo .photo-zoom-toggle {
    right:20px; bottom:48px; width:40px; height:40px;
    background:#1713148c; border-color:#e1cbd078; color:#f0e7d6;
  }
  #collection-viewer #stage.view-photo .photo-zoom-toggle svg { width:27px; height:27px; }
  #collection-viewer #stage.view-photo .photo-sequence { bottom:-7px; gap:9px; }
  #collection-viewer #stage.view-photo .photo-dot { width:5px; height:5px; opacity:.62; }
  #collection-viewer #stage.view-photo .photo-dot.is-active { opacity:1; transform:scale(1.35); }
}
/* Real adjacent works sit behind the central, black-edged photograph. */
@media (min-width:801px) {
  #collection-viewer #stage.view-photo .photo-frame:before { display:none; }
  #collection-viewer #stage.view-photo .photo-backdrop { display:none; }
  #collection-viewer #stage.view-photo .photo-aperture {
    inset:-8px 5% 17px;
    border:4px solid #050505; border-inline-width:12px;
    background:#050505;
    box-shadow:-12px 0 20px #0009,12px 0 20px #0009,0 10px 24px #0008;
    z-index:2;
  }
  .qilu-detail-reference #collection-viewer #stage.view-photo #real-photo {
    mask-image:linear-gradient(180deg,transparent,#000 3%,#000 97%,transparent);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 3%,#000 97%,transparent);
  }
  #collection-viewer #stage.view-photo .photo-neighbor {
    display:block; position:absolute; top:8px; bottom:30px; width:14%;
    z-index:0; padding:0; overflow:hidden;
    border:10px solid #050505; border-block-width:6px;
    background:#070707; box-shadow:0 12px 25px #000b;
    cursor:pointer;
  }
  #collection-viewer #stage.view-photo .photo-neighbor[hidden] { display:none; }
  #collection-viewer #stage.view-photo .photo-neighbor-prev {
    left:-28px; transform-origin:left center;
    transform:perspective(850px) rotateY(46deg) scaleY(.96);
  }
  #collection-viewer #stage.view-photo .photo-neighbor-next {
    right:-28px; transform-origin:right center;
    transform:perspective(850px) rotateY(-46deg) scaleY(.96);
  }
  #collection-viewer #stage.view-photo .photo-neighbor img {
    display:block; width:100%; height:100%; object-fit:cover;
    filter:brightness(.32) saturate(.68); opacity:.85;
    transition:filter .25s;
  }
  #collection-viewer #stage.view-photo .photo-neighbor:hover img { filter:brightness(.46) saturate(.8); }
  #collection-viewer #stage.view-photo .photo-neighbor:focus-visible { outline:2px solid var(--a); outline-offset:3px; }
  #collection-viewer #stage.view-photo .photo-frame:after { z-index:3; }
  #collection-viewer #stage.view-photo .photo-dot {
    width:7px; height:7px; opacity:.55;
  }
  #collection-viewer #stage.view-photo .photo-sequence { gap:11px; }
}
@media (min-width:1450px) {
  .qilu-detail-reference #collection-viewer #stage.view-photo #real-photo[src$='/08.png'] {
    width:100%; height:100%; max-width:none; max-height:none; object-fit:fill;
  }
}
@media (min-width:801px) {
  .qilu-detail-reference #collection-viewer #stage.view-compare #real-photo {
    mask-image:url('./photo-08-blend.svg?v=3');
    -webkit-mask-image:url('./photo-08-blend.svg?v=3');
    mask-size:100% 100%; -webkit-mask-size:100% 100%;
    mask-repeat:no-repeat; -webkit-mask-repeat:no-repeat;
  }
  .qilu-detail-reference #collection-viewer #stage.view-compare #real-photo:not([src$='/08.png']) {
    width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; object-position:center bottom;
    mask-image:url('./photo-08-blend.svg?v=3'),radial-gradient(ellipse 65% 67% at 50% 52%,#000 34%,#000f5 46%,#000b8 62%,#00052 80%,transparent 100%);
    -webkit-mask-image:url('./photo-08-blend.svg?v=3'),radial-gradient(ellipse 65% 67% at 50% 52%,#000 34%,#000f5 46%,#000b8 62%,#00052 80%,transparent 100%);
    mask-composite:intersect;-webkit-mask-composite:source-in;
  }
  #collection-viewer #stage.view-compare .photo-frame { background:none; }
  #collection-viewer #stage.view-compare .photo-frame:before { display:none; }
  #collection-viewer #stage.view-compare .photo-frame:after {
    left:6%; right:2%; bottom:18px; height:48px;
    border-color:color-mix(in srgb,var(--b) 68%,var(--a));
    background:radial-gradient(ellipse at center,#e8d4de24,transparent 72%);
    box-shadow:0 0 18px #d5b1d638,inset 0 0 12px #e2c5d025;
  }
  #collection-viewer #stage.view-compare .photo-pedestal {
    display:block; left:21%; right:17%; bottom:0; height:34px;
    border:1px solid #e0c6d88c; background:none; filter:none;
    box-shadow:0 0 15px #d5b1d62b;
  }
  #collection-viewer .photo-pedestal:before,
  #collection-viewer .photo-pedestal:after { display:none; }
  #collection-viewer .model-pedestal {
    bottom:80px; height:34px;
    border-color:color-mix(in srgb,var(--b) 65%,var(--a));
    box-shadow:0 0 20px #d5b1d63b;
    background:radial-gradient(ellipse,#d2b9c72e,transparent 72%);
  }
  #collection-viewer .model-pedestal:before {
    left:16%; right:16%; top:12%; height:70%;
    border-color:#dfc2d688;
  }
  #collection-viewer .model-frame .controls button { color:var(--work-text); }
}
