.case-photo,.project-images a,.pictures figure > a{display:block;cursor:zoom-in}
.case-photo-open,.case-photo-open body{overflow:hidden}
.case-photo-viewer:not([open]),.case-photo-viewer [hidden]{display:none!important}
.case-photo-viewer[open]{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(100%,1240px);height:min(92vh,960px);height:min(92dvh,960px);max-width:100%;max-height:100%;padding:0;border:0;border-radius:4px;background:#201e1c;color:#fff8e8;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;font:16px/1.5 "Microsoft YaHei",sans-serif}
.case-photo-viewer::backdrop{background:rgb(16 14 12 / 86%)}
.case-photo-viewer header,.case-photo-viewer footer{position:static;display:flex;align-items:center;gap:12px;justify-content:space-between;background:#322e29;color:inherit;padding:10px 16px}
.case-photo-viewer footer{justify-content:center}
.case-photo-viewer button{flex:none;cursor:pointer;border:1px solid #a99d88;background:transparent;color:inherit;border-radius:3px;padding:5px 12px;min-height:44px;font:inherit;line-height:1.3}
.case-photo-viewer button:focus-visible{outline:2px solid #ffce74;outline-offset:2px}
.case-photo-viewer button:disabled{opacity:.4}
.case-photo-viewer .photo-name{min-width:0;overflow-wrap:anywhere;font-size:15px}
.case-photo-viewer .photo-stage{position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.case-photo-viewer .photo-stage img{display:block;max-width:none;width:100%;height:100%;object-fit:contain}
.case-photo-viewer .photo-stage.enlarged img{width:auto;height:auto;min-width:140%;margin:0 auto}
.case-photo-viewer .photo-error{padding:20px;text-align:center}
@media(max-width:720px){
  .case-photo-viewer[open]{width:100%;height:100%;border-radius:0}
  .case-photo-viewer header{padding:calc(8px + env(safe-area-inset-top)) 12px 8px}
  .case-photo-viewer footer{gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
}
