/* Museum case treatment. The original photograph remains an uncropped <img>. */
.qilu-detail-reference #collection-viewer .photo-zoom{
 display:flex;align-items:center;justify-content:center;
}
.qilu-detail-reference #collection-viewer #real-photo{
 width:auto;height:auto;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center bottom;flex:0 1 auto;align-self:flex-end;
 opacity:1;filter:brightness(1.035) contrast(1.035) saturate(1.015);
 /* Keep the artwork opaque: dissolve only the outer photographic environment. */
 mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%),linear-gradient(180deg,transparent 0,#000 4%,#000 97%,transparent 100%);
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%),linear-gradient(180deg,transparent 0,#000 4%,#000 97%,transparent 100%);
 mask-composite:intersect;-webkit-mask-composite:source-in;
}
@media(min-width:801px){
 #collection-viewer .photo-frame{
  background:radial-gradient(ellipse at 52% 91%,#e3d2b611,transparent 49%),radial-gradient(ellipse at 52% 42%,#37302a30,transparent 73%);
 }
 /* One edge treatment, not an overlay over the glass flowers. */
 #collection-viewer .photo-frame:before{
  content:"";position:absolute;inset:-16px -10px 0;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,#080807 0,transparent 8%,transparent 92%,#080807 100%),linear-gradient(180deg,#080807 0,transparent 9%,transparent 95%,#080807 100%);
 }
 #collection-viewer #stage.view-compare .photo-zoom{inset:-12px 0 9px}
 #collection-viewer .photo-pedestal{display:none}
 /* Keep the plinth outside the zoom/pan transform, anchored to the exhibit floor. */
 #collection-viewer #stage .photo-frame:after{
  content:"";display:block;position:absolute;z-index:3;pointer-events:none;
  left:2%;right:2%;bottom:5px;height:38px;border-radius:50%;
  border:1px solid color-mix(in srgb,var(--a) 52%,transparent);
  background:radial-gradient(ellipse at 50% 43%,#eee2d433 0,#d9c9b21a 42%,#08080700 72%);
  box-shadow:0 0 18px #d8c1a51a,0 10px 14px #0009,inset 0 1px 6px #f2e4cf1c;
 }
 #collection-viewer .stage-arc{
  border-color:color-mix(in srgb,var(--a) 34%,transparent);filter:none;
 }
 /* Model retains its digital character, with a related, softly lit stone/glass base. */
 #collection-viewer .model-pedestal{
  height:34px;bottom:76px;left:4%;right:4%;
  border:1px solid color-mix(in srgb,var(--a) 52%,transparent);
  background:radial-gradient(ellipse at 50% 43%,#e3d2bd2e 0,#c4aa9314 48%,transparent 74%);
  box-shadow:0 0 16px color-mix(in srgb,var(--a) 13%,transparent),0 10px 14px #0009;
 }
 #collection-viewer .model-pedestal:before{
  top:14%;height:64%;left:16%;right:16%;
  border-color:color-mix(in srgb,var(--a) 38%,transparent);opacity:.8;
 }
 #collection-viewer .model-pedestal:after{display:none}
 #collection-viewer #stage.view-photo .photo-frame{background:none}
 #collection-viewer #stage.view-photo .photo-zoom{inset:0 0 12px}
 #collection-viewer #stage.view-photo .photo-frame:after{left:4%;right:4%}
}
@media(min-width:1450px){
 /* Let the cabinet atmosphere meet the text column without widening the photograph. */
 #collection-viewer #stage.view-compare .photo-frame{margin-left:-68px;width:calc(100% + 24px)}
}
