/* Clickable project covers and enlarged case photographs. */
.project-case-link{display:block}
.project-photo-link{cursor:zoom-in;text-decoration:none;color:inherit}
.project-photo-content{display:block;width:100%;height:100%}
.project-photo-link:focus-visible,.project-case-link:focus-visible{outline:3px solid #0a4e7b;outline-offset:-4px}
.project-photo-viewer{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:16px 24px;background:#111522;color:#fff;border:0;overflow:auto;overscroll-behavior:contain}
.project-photo-viewer:not([open]){display:none}
.project-photo-viewer[open]{display:flex;flex-direction:column;gap:12px}
.project-photo-viewer::backdrop{background:rgba(0,0,0,.9)}
.project-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}
.project-photo-viewer p{margin:0;color:#fff;font:400 16px/1.45 R,Arial,sans-serif}
.project-photo-viewer button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:48px;min-height:48px;padding:8px 14px;border:1px solid #8190a3;border-radius:4px;background:#20334a;color:#fff;font:700 18px/1.2 R,Arial,sans-serif;cursor:pointer;flex:none}
.project-photo-viewer button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.project-photo-viewer button:hover{background:#0a4e7b}
.project-photo-viewer button[hidden]{display:none}
.project-photo-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;flex:1;min-height:0}
.project-photo-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;touch-action:pan-y pinch-zoom}
.project-photo-stage button{font-size:36px}
.project-photo-caption{flex:none;max-width:1000px;align-self:center;text-align:center}
@media(max-width:767px){
  .project-photo-viewer{padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .project-photo-stage{position:relative;display:block;padding-bottom:60px}
  .project-photo-stage button{position:absolute;bottom:0}
  .project-photo-stage [data-photo-previous]{left:0}
  .project-photo-stage [data-photo-next]{right:0}
  .project-photo-viewer p{font-size:14px}
}
