/* Photograph coordinates remain aligned because the image is never cropped in the scene. */
.scene-photo-panel { border: 1px solid #6c624b; background: #141813; margin-bottom: 28px; }
.scene-photo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; }
.scene-photo-toolbar > div:first-child { display: grid; gap: 6px; }
.scene-photo-toolbar > div:first-child > span, .scene-photo-dialog header span { font: .58rem var(--mono); color: #bca77e; letter-spacing: .08em; }
.scene-photo-toolbar strong { font: 1.2rem var(--editorial); color: #ebe5d5; }
.scene-photo-controls, .photo-dialog-tools { display: flex; align-items: center; gap: 6px; }
.scene-photo-controls button, .photo-dialog-tools button { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 7px 11px; border: 1px solid #59624b; background: #242c1e; color: #e1dbc8; font-size: .82rem; }
.scene-photo-controls button:hover, .photo-dialog-tools button:hover { background: #3a422c; border-color: #bd9d63; }
.scene-photo-controls button:disabled, .photo-dialog-tools button:disabled { opacity: .38; cursor: not-allowed; }
.scene-photo-controls output, .photo-dialog-tools output { min-width: 44px; text-align: center; font: .65rem var(--mono); color: #cfc6ad; }
.scene-photo-help { margin: 0; padding: 0 18px 14px; font-size: .77rem; color: #b9c2ac; line-height: 1.7; }
.scene-photo-viewport { width: 100%; aspect-ratio: var(--scene-ratio); overflow: auto; position: relative; scrollbar-width: thin; scrollbar-color: #a28f67 #182012; background: #0a0e08; overscroll-behavior: contain; }
.scene-photo-viewport:focus-visible { outline: 2px solid #d9b274; outline-offset: 3px; }
.scene-photo-stage { position: relative; min-width: 100%; }
.scene-photo-image { display: block; width: 100%; height: auto; user-select: none; }
.scene-hotspot { position: absolute; transform: translate(-50%,-50%); display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 1px solid #f4db9c; border-radius: 50%; background: #171e11cf; color: #ffe5af; box-shadow: 0 0 0 5px #c9af6830,0 3px 16px #0008; font: 500 .76rem var(--mono); z-index: 2; }
.scene-hotspot:hover, .scene-hotspot:focus-visible { background: #e3c994; color: #252819; border-color: #fff0c7; z-index: 3; }
.scene-hotspot.is-reviewed { border-color: #b6d391; color: #d5edb5; box-shadow: 0 0 0 5px #89a86d30,0 3px 16px #0008; }
.scene-hotspot.is-selected { background: #d4bd87; color: #202a17; border-color: #fff0c7; }
.scene-hotspot em { display: none; position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 180px; padding: 7px 10px; background: #121a10f5; border: 1px solid #8e9068; color: #eadfbf; font: normal .67rem/1.5 var(--sans); pointer-events: none; }
.scene-hotspot:hover em, .scene-hotspot:focus-visible em { display: block; }
.scene-hotspot[data-id="K-003"] em { right: 0; left: auto; transform: none; }
.scene-photo-caption { display: flex; justify-content: space-between; gap: 15px; padding: 13px 18px; font: .57rem var(--mono); line-height: 1.7; color: #a9b296; }
.scene-photo-caption strong { font-weight: 400; color: #d4c190; white-space: nowrap; }
.scene-visual-view .scene-layout { align-items: start; }
.evidence-photo { margin: 20px 0; }
.evidence-photo-open { width: 100%; position: relative; display: block; padding: 0; border: 1px solid #69694c; background: #12170e; overflow: hidden; }
.evidence-photo-crop { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; }
.evidence-photo-crop img { position: absolute; left: 50%; top: 50%; width: calc(100% * var(--detail-zoom)); height: auto; max-width: none; transform: translate(calc(-1 * var(--detail-x)),calc(-1 * var(--detail-y))); }
.evidence-photo-crop.is-detail { aspect-ratio: 4/3; }
.evidence-photo-crop.is-detail img { position: static; width: 100%; height: 100%; object-fit: cover; transform: none; }
.photo-expand-label { position: absolute; right: 9px; bottom: 9px; padding: 7px 10px; background: #111a0de6; color: #f0e2bf; border: 1px solid #a6a47b70; font: .54rem var(--mono); }
.evidence-photo figcaption { margin-top: 9px; color: #bbc4ab; font-size: .75rem; line-height: 1.7; }
.scene-photo-dialog { width: min(1320px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 24px); padding: 22px; background: #192015; color: #e8e2d0; border: 1px solid #9b936d; overflow: auto; }
.scene-photo-dialog::backdrop { background: #050905e8; backdrop-filter: blur(5px); }
.scene-photo-dialog header { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.scene-photo-dialog h2 { margin: 8px 0 14px; font: 1.7rem var(--editorial); }
.scene-photo-dialog [data-photo-control="close"] { min-width: 44px; min-height: 44px; border: 1px solid #768063; color: #e5e4cc; background: #28311f; font-size: 1.6rem; }
.photo-dialog-tools { margin-bottom: 14px; flex-wrap: wrap; }
.photo-dialog-tools > span { margin-left: auto; font-size: .75rem; color: #b5c1a1; }
.photo-dialog-viewport { height: min(65dvh,740px); overflow: auto; background: #080d06; scrollbar-color: #9c9870 #172010; overscroll-behavior: contain; }
.photo-dialog-stage { width: 100%; }
.photo-dialog-stage img { display: block; width: 100%; height: auto; max-width: none; user-select: none; }
.scene-photo-dialog > p { margin: 14px 0 0; font-size: .8rem; line-height: 1.7; color: #bfcbb0; }
@media (max-width: 720px) {
  .scene-photo-toolbar { flex-direction: column; align-items: start; padding: 14px; gap: 12px; }
  .scene-photo-controls { width: 100%; justify-content: space-between; }
  .scene-photo-help { padding-inline: 14px; font-size: .74rem; }
  .scene-photo-caption { padding: 12px; font-size: .5rem; flex-wrap: wrap; gap: 4px 14px; }
  .scene-hotspot { width: 40px; height: 40px; font-size: .7rem; }
  .scene-photo-dialog { width: calc(100vw - 16px); padding: 14px; }
  .scene-photo-dialog h2 { font-size: 1.25rem; }
  .photo-dialog-tools > span { flex-basis: 100%; margin-top: 4px; font-size: .7rem; line-height: 1.6; }
  .photo-dialog-viewport { height: 55dvh; }
}
