/* The photograph gets the room; captions and controls stay at the edges. */
#modal.photo-dialog{box-sizing:border-box;inset:0;margin:auto;width:calc(100vw - 16px);max-width:1800px;height:calc(100dvh - 16px);max-height:none;padding:0;overflow:hidden;border:1px solid #9a8b6a;background:#111110;color:#eee6d6;box-shadow:0 0 0 4px #141311,0 24px 100px #000c;border-radius:3px}
#modal.photo-dialog::backdrop{background:#070706e8;backdrop-filter:blur(9px)}
#modal.photo-dialog #modal-content{height:100%;min-height:0;padding:0}
#modal.photo-dialog .modal-close{position:absolute;top:12px;right:10px;margin:0;width:40px;height:40px;display:grid;place-items:center;float:none;border:1px solid #8f7c5d;border-radius:2px;background:#171613;color:#f0d7a7;font:28px/1 Georgia,serif;z-index:12}
#modal.photo-dialog .photo-viewer{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.photo-dialog .photo-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 64px 10px 24px;min-width:0;background:linear-gradient(120deg,#181715,#0e0d0c);border-bottom:1px solid #74634a}
.photo-dialog .photo-title{min-width:0}.photo-dialog .photo-heading h2{margin:0;color:#f4e8d2;font:600 clamp(21px,2.5vw,34px)/1.15 Georgia,serif;text-wrap:balance}
.photo-dialog .photo-heading .eyebrow{margin:0 0 4px;color:#bda47d;font:10px/1.35 Georgia,serif;letter-spacing:.15em;text-transform:uppercase}
.photo-dialog .photo-tools,.photo-dialog .photo-zoom-tools{display:flex;align-items:center;gap:7px;flex-shrink:0}
.photo-dialog .photo-tools button,.photo-dialog #photo-info,.photo-dialog #photo-focus{font:600 13px/1.1 Georgia,serif;color:#e8c98d;text-shadow:0 1px 2px #000;letter-spacing:.02em;border:1px solid #766347;background:linear-gradient(145deg,#30281e,#161410);border-radius:2px;min-height:40px;padding:9px 12px;white-space:nowrap}
.photo-dialog .photo-tools [data-photo-zoom="out"],.photo-dialog .photo-tools [data-photo-zoom="in"]{font-size:23px;width:40px;padding:0}
.photo-dialog #photo-zoom-level{min-width:36px;text-align:center;font:13px Georgia,serif;color:#f1e1c7;font-variant-numeric:tabular-nums}
.photo-dialog button:disabled{opacity:.32;cursor:default}.photo-dialog button:focus-visible,.photo-dialog .photo-viewport:focus-visible{outline:2px solid #f4d695;outline-offset:-3px}
.photo-dialog button:not(:disabled):hover{filter:brightness(1.22);border-color:#d4b983}
.photo-dialog .photo-stage{position:relative;min-height:0;isolation:isolate;overflow:hidden;background:#11110f}
.photo-dialog .photo-cathedral{position:absolute;inset:0;z-index:-1;background:url('assets/cathedral-stage.png') center top/100% 100% no-repeat;filter:brightness(.77);pointer-events:none}
.photo-dialog .photo-aperture-defs{position:absolute;pointer-events:none}
.photo-dialog .photo-viewport{position:absolute;inset:0;overflow:hidden;clip-path:url(#photo-arch-clip);touch-action:none;overscroll-behavior:contain;cursor:zoom-in;outline-offset:-2px}
.photo-dialog #knife-large-photo{position:absolute;left:50%;top:50%;display:block;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none;filter:none;box-shadow:0 8px 35px #0009,0 0 0 1px #9d8b6c66;border-radius:2px}
.photo-dialog .photo-viewport.zoomed{cursor:grab}.photo-dialog .photo-viewport.dragging.zoomed{cursor:grabbing}
.photo-dialog .photo-arrow{position:absolute;top:calc(50% - 25px);width:42px;height:50px;padding:0;border:1px solid #b49b70;background:linear-gradient(120deg,#322a1eeb,#0a0a09ed);color:#f0d8aa;font:34px/1 Georgia,serif;z-index:2;box-shadow:0 3px 12px #0008;border-radius:2px}
.photo-dialog .photo-arrow.prev{left:1.5%}.photo-dialog .photo-arrow.next{right:1.5%}
.photo-dialog #photo-load-state:not(:empty){position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:14px 20px;background:#15120de8;color:#fff0d6;text-align:center;font:15px/1.5 Georgia,serif}
.photo-dialog #photo-focus{position:absolute;right:10%;bottom:2%;z-index:3;min-height:30px;padding:6px 12px;background:#181510dc;font-size:12px}
.photo-dialog .photo-bottom{min-width:0;display:grid;grid-template-columns:1fr minmax(0,2fr) 1fr;align-items:center;gap:12px;padding:8px 24px;background:linear-gradient(120deg,#1c1813,#10100f);border-top:1px solid #776448}
.photo-dialog .photo-caption{display:flex;align-items:center;gap:12px;min-width:0}.photo-dialog #photo-counter{font:18px Georgia,serif;color:#ecd6b1;white-space:nowrap;font-variant-numeric:tabular-nums}
.photo-dialog .photo-caption small{font:9px/1.6 Georgia,serif;letter-spacing:.12em;color:#ac9b7e;max-width:85px}
.photo-dialog .photo-thumbnails{display:flex;gap:8px;justify-content:safe center;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#9c8156 #151310;min-width:0}
.photo-dialog .photo-thumbnails button{flex:0 0 66px;height:45px;border:1px solid #665e4d;padding:2px;background:#0e0d0b;border-radius:2px}
.photo-dialog .photo-thumbnails button[aria-pressed=true]{border:1px solid #edcf92;box-shadow:inset 0 -3px #a22118}
.photo-dialog .photo-thumbnails img{width:100%;height:100%;object-fit:contain;filter:none}
.photo-dialog #photo-info{justify-self:end;font-size:12px;min-height:36px}
.photo-dialog #photo-details{position:absolute;z-index:5;right:7%;bottom:7%;max-width:420px;width:80%;max-height:85%;overflow:auto;background:#171512f5;border:1px solid #a68b5d;box-shadow:0 12px 50px #0009;padding:24px;color:#e3d7c2}
.photo-dialog #photo-details[hidden]{display:none}.photo-dialog #photo-details-close{position:absolute;right:7px;top:4px;font:25px Georgia;color:#e7d0a8;min-width:36px;min-height:36px}
.photo-dialog #photo-details p,.photo-dialog #photo-details a{font:15px/1.6 Georgia,serif;margin:8px 0}.photo-dialog #photo-details a{color:#e6c98b;text-decoration:underline}.photo-dialog #photo-details .eyebrow{font-size:11px;color:#c8ae7c;letter-spacing:.13em;text-transform:uppercase;padding-right:20px}
.photo-dialog .knife-public-description{white-space:pre-line}.photo-dialog #photo-details .primary{display:block;font:15px Georgia,serif;margin-top:18px}
#modal.photo-dialog .photo-viewport{inset:0}
#modal.photo-dialog.photo-focus .photo-cathedral{opacity:0}#modal.photo-dialog.photo-focus .photo-viewport{clip-path:none}#modal.photo-dialog.photo-focus #photo-focus{right:12px;bottom:10px}
@media(max-width:900px){.photo-dialog .photo-heading{padding:10px 55px 10px 15px;gap:10px}.photo-dialog .photo-heading .eyebrow span{display:none}.photo-dialog .photo-tools{gap:6px}.photo-dialog #photo-fullscreen span{display:none}.photo-dialog #photo-fullscreen{font-size:21px;padding:5px 8px}.photo-dialog .photo-bottom{padding:7px 15px;grid-template-columns:auto minmax(0,1fr) auto}.photo-dialog .photo-caption small{display:none}.photo-dialog .photo-tools button{padding:8px}.photo-dialog .photo-zoom-tools{gap:4px}}
@media(max-width:600px){#modal.photo-dialog{width:100vw;height:100dvh;max-width:none;border-radius:0;border:0;box-shadow:none}.photo-dialog .photo-heading{display:block;padding:12px 50px 9px 14px}.photo-dialog .photo-heading h2{font-size:22px;line-height:1.15}.photo-dialog .photo-heading .eyebrow{font-size:9px}.photo-dialog .photo-tools{margin-top:9px;justify-content:flex-start;gap:10px}.photo-dialog .photo-tools button{min-height:36px}.photo-dialog .photo-tools [data-photo-zoom]{height:36px}.photo-dialog .photo-viewport{inset:5% 5% 6%}.photo-dialog .photo-arrow{width:32px;height:44px;font-size:28px}.photo-dialog .photo-arrow.prev{left:4px}.photo-dialog .photo-arrow.next{right:4px}.photo-dialog .photo-bottom{padding:8px;gap:8px}.photo-dialog .photo-thumbnails{gap:5px}.photo-dialog .photo-thumbnails button{flex-basis:50px;height:42px}.photo-dialog #photo-counter{font-size:14px}.photo-dialog #photo-info{padding:8px;font-size:11px}.photo-dialog #photo-focus{right:7%;bottom:1%;font-size:11px;min-height:27px}.photo-dialog #photo-details{right:4%;bottom:4%;width:92%;max-height:92%;padding:20px}}
@media(max-height:500px) and (min-width:601px){.photo-dialog .photo-heading{padding-top:6px;padding-bottom:6px}.photo-dialog .photo-heading h2{font-size:22px}.photo-dialog .photo-heading .eyebrow{font-size:9px;margin-bottom:2px}.photo-dialog .photo-bottom{padding-top:5px;padding-bottom:5px}.photo-dialog .photo-thumbnails button{height:36px;flex-basis:55px}.photo-dialog .photo-viewport{inset:5% 7% 6%}#modal.photo-dialog .modal-close{top:6px}}
