/* Temple views only. Show complete photographs and a separate readable heading. */
.temple-article .temple-hero,.temple-dialog .temple-hero{height:clamp(240px,44vw,460px);background:#e9e2d4}
.temple-article .temple-hero:after,.temple-dialog .temple-hero:after{display:none}
.temple-article .temple-slide img,.temple-dialog .temple-slide img{object-fit:contain}
.temple-article>.temple-title,.temple-dialog .dialog-body>.temple-title{position:static;margin:0;padding:24px 24px 12px;background:var(--surface);color:var(--ink);pointer-events:auto}
.temple-article>.temple-title h1,.temple-dialog .dialog-body>.temple-title h1{color:var(--ink);text-shadow:none;font-size:clamp(24px,4vw,34px);line-height:1.4;margin:10px 0 8px}
.temple-article>.temple-title p,.temple-dialog .dialog-body>.temple-title p{color:var(--muted);font-size:15px;line-height:1.7}
.temple-photo-hint{margin:0;padding:6px 24px 0;font-size:13px;line-height:1.6;color:var(--muted);background:var(--surface)}
.temple-photo-description{padding:6px 24px 16px;font-size:13px;line-height:1.6}
.temple-article .photo-dots,.temple-dialog .photo-dots{background:#473b28bb;border-radius:30px;bottom:10px;padding:0 5px}
.temple-article .photo-dots button,.temple-dialog .photo-dots button{width:40px;min-width:40px;min-height:44px}
.temple-article .photo-prev,.temple-article .photo-next,.temple-dialog .photo-prev,.temple-dialog .photo-next{width:44px;height:44px;min-height:44px;background:#fffdf5f2;color:#463219;border:1px solid #e3d5bc;box-shadow:0 2px 8px #3f2c1417}
.temple-article .photo-prev:disabled,.temple-article .photo-next:disabled{opacity:.45;cursor:default}
.temple-article .photo-prev,#dialog.temple-dialog .photo-prev{position:absolute;left:12px;right:auto;top:50%;transform:translateY(-50%)}
.temple-article .photo-next,#dialog.temple-dialog .photo-next{position:absolute;right:12px;left:auto;top:50%;transform:translateY(-50%)}
.temple-photo-count{background:#40351fdd;font-weight:700}
#dialog.temple-dialog>header{height:auto;min-height:60px;padding:8px 12px 8px 18px;position:sticky;top:0;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}
#dialog.temple-dialog>header h2{position:static;clip-path:none;width:auto;height:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:15px;margin:0;max-width:none;color:var(--ink)}
#dialog.temple-dialog>header button{position:static;min-width:88px;width:auto;height:44px;padding:8px 14px;border-radius:12px;font-size:15px;font-weight:700;box-shadow:none;background:#fff4d9;color:#63451a;border:1px solid #e6d1a7;flex:none}
.temple-jump-links{flex-wrap:wrap;gap:8px;padding:16px 20px 6px}
.temple-jump-links button,.temple-public .temple-jump-links a{flex:0 1 auto;min-height:44px;font-size:14px;padding:8px 14px}
.temple-section{scroll-margin-top:80px}
.temple-dialog .temple-detail-actions>button{font-size:14px;min-height:48px;min-width:110px}
.temple-article .temple-detail-actions>.primary,.temple-dialog .temple-detail-actions>.primary{background:#7c5818;border-color:#7c5818;color:#fff}
.temple-article .temple-detail-actions>.primary:hover,.temple-dialog .temple-detail-actions>.primary:hover{background:#624511;border-color:#624511;color:#fff}
.temple-public .temple-grid,.space-page .temple-grid{align-items:stretch}
.temple-public .temple-card h2,.space-page .temple-card h2{font-size:18px;line-height:1.5}
.temple-public .temple-card p,.space-page .temple-card p{font-size:14px}
.temple-public .temple-card small,.space-page .temple-card small{font-size:13px;line-height:1.65}
.temple-card:focus-visible,.temple-dialog button:focus-visible,.temple-dialog a:focus-visible{outline:3px solid #906420;outline-offset:3px}
.temple-photo-viewer{width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid #e6d1a7;border-radius:16px;background:#faf6ec;color:#382b1b;overflow:auto}
.temple-photo-viewer::backdrop{background:#17130ee8}
.temple-photo-viewer>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#faf6ec;border-bottom:1px solid #e6d1a7}
.temple-photo-viewer>header button{min-height:44px;min-width:110px;padding:8px 14px;border:1px solid #d7bd8d;border-radius:10px;background:#fff4d9;color:#63451a;font:600 15px/1.5 system-ui;cursor:pointer}
.temple-photo-viewer>img{display:block;width:100%;max-height:calc(100dvh - 180px);object-fit:contain;background:#e9e2d4}
.temple-photo-viewer>p{margin:0;padding:14px 18px;font:14px/1.7 system-ui}
.temple-photo-viewer button:focus-visible{outline:3px solid #906420;outline-offset:2px}
body.dark .temple-dialog .dialog-body>.temple-title,body.dark .temple-dialog .temple-photo-hint,body.dark .temple-dialog .temple-photo-description{background:var(--surface)}
@media(max-width:600px){
 .temple-article>.temple-title,.temple-dialog .dialog-body>.temple-title{padding:18px 16px 10px}
 .temple-photo-hint{padding:6px 16px 0}.temple-photo-description{padding:6px 16px 14px}
 .temple-public .temple-grid,.space-page .temple-grid{grid-template-columns:1fr;gap:18px}
 .temple-card-photo{aspect-ratio:16/10}.temple-card-copy{padding:16px}
 .temple-jump-links,.temple-public .temple-jump-links{padding:14px 12px 4px;gap:7px}
 .temple-jump-links button,.temple-public .temple-jump-links a{font-size:13px;padding:8px 12px;min-height:44px}
 .temple-dialog .temple-detail-actions{flex-wrap:wrap}.temple-dialog .temple-detail-actions>.primary{flex-basis:100%}
 .temple-dialog .temple-detail-actions>button{width:100%;font-size:14px}
 .temple-public .temple-hero,.temple-dialog .temple-hero{height:290px}
 .temple-public .temple-section h2,.temple-dialog .temple-section h2{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.temple-card,.temple-dialog[open]{animation:none;transition:none}.temple-card:hover{transform:none}}
