/* Real-photo examples share the course accent, without changing existing labs. */
.photo-study, .photo-observation { margin: 32px 0; border: 1px solid #3d4a5b; border-radius: 14px; background: #101720; overflow: hidden; color: #edf0f3; scroll-margin-top: 24px; }
.photo-study *, .photo-observation * { box-sizing: border-box; }
.photo-study [hidden] { display: none !important; }
.photo-study__heading { padding: 22px 24px 0; }
.photo-study__tag, .photo-observation__tag { display: block; margin-bottom: 10px; color: var(--course-accent, #b5a0ff); font: 700 .74rem/1.7 system-ui, sans-serif; letter-spacing: .08em; }
.photo-study h3, .photo-observation h3 { margin: 0 0 12px; font-size: clamp(1.12rem, 2vw, 1.48rem); line-height: 1.5; }
.photo-study__heading > p, .photo-observation p { margin: 0 0 16px; color: #bdc7d2; line-height: 1.85; font-size: .93rem; }
.photo-study__stage { position: relative; aspect-ratio: 16 / 10; margin: 20px 24px 0; background: #070b11; overflow: hidden; border-radius: 8px; }
.photo-study__stage > img, .photo-study__stage > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-study__labels { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; pointer-events: none; gap: 8px; }
.photo-study__labels span { padding: 6px 10px; border-radius: 4px; background: #080c12e8; color: #f6f5ef; font: 700 .72rem/1.5 system-ui, sans-serif; border: 1px solid #647183; }
.photo-study__labels span:last-child { margin-left: auto; color: var(--course-accent, #b5a0ff); }
.photo-study__controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; padding: 20px 24px; }
.photo-study__controls label { display: grid; align-content: start; gap: 10px; color: #dce3e9; font-size: .88rem; line-height: 1.6; }
.photo-study__controls output { color: var(--course-accent, #b5a0ff); font-variant-numeric: tabular-nums; }
.photo-study__controls input[type=range] { width: 100%; accent-color: var(--course-accent, #b5a0ff); }
.photo-study select { padding: 9px; border: 1px solid #526279; border-radius: 6px; color: #ecf0f5; background: #1b2533; font: inherit; width: 100%; }
.photo-study__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 0 24px 20px; }
.photo-study__actions button { padding: 8px 12px; border: 1px solid #526279; border-radius: 6px; color: #e7ecf2; background: #1a2432; font: inherit; font-size: .83rem; cursor: pointer; }
.photo-study__actions button:hover { border-color: var(--course-accent, #b5a0ff); }
.photo-study :focus-visible, .photo-observation :focus-visible { outline: 2px solid var(--course-accent, #b5a0ff); outline-offset: 4px; }
.photo-study__result { margin: 0; padding: 18px 24px; background: #1a2230; color: #dce4ed; font-size: .9rem; line-height: 1.85; border-top: 1px solid #3d4a5b; }
.photo-study > figcaption { padding: 16px 24px 20px; color: #a9b7c6; font-size: .8rem; line-height: 1.9; }
.photo-study > figcaption strong { color: #e1c482; }
.photo-study__histogram { display: block; width: calc(100% - 48px); height: 140px; margin: 16px 24px; background: #090e15; border-radius: 6px; }
.photo-observation { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); }
.photo-observation > img { display: block; width: 100%; height: 100%; max-height: 580px; object-fit: contain; background: #070b11; }
.photo-observation > figcaption { align-self: center; padding: 26px; }
.photo-observation__source { color: #96a6b8 !important; font-size: .78rem !important; overflow-wrap: anywhere; }
.photo-study__source { display: block; margin-top: 8px; color: #96a6b8; overflow-wrap: anywhere; }
.photo-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #394352; font-size: .88rem; line-height: 1.8; }
.photo-route strong { color: #e3c78c; }
.photo-route a { color: var(--course-accent, #b5a0ff); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .photo-study[data-photo-ready="true"] { display: grid; grid-template-columns: minmax(0, 1fr) 275px; }
  .photo-study[data-photo-ready="true"] .photo-study__heading,
  .photo-study[data-photo-ready="true"] .photo-study__histogram,
  .photo-study[data-photo-ready="true"] .photo-study__actions,
  .photo-study[data-photo-ready="true"] .photo-study__result,
  .photo-study[data-photo-ready="true"] > figcaption { grid-column: 1 / -1; }
  .photo-study[data-photo-ready="true"] .photo-study__stage { grid-column: 1; grid-row: 2; margin-right: 0; align-self: start; }
  .photo-study[data-photo-ready="true"] .photo-study__controls { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; align-content: start; }
  .photo-study[data-photo-ready="true"] .photo-study__actions { padding-top: 18px; }
}
@media (max-width: 760px) {
  .photo-study__stage { margin: 16px 14px 0; aspect-ratio: 4 / 3; }
  .photo-study__heading { padding: 18px 16px 0; }
  .photo-study__controls { padding: 18px 16px; grid-template-columns: 1fr; gap: 16px; }
  .photo-study__actions { padding: 0 16px 18px; }
  .photo-study__result, .photo-study > figcaption { padding: 16px; }
  .photo-study__labels { inset: 8px 8px auto; }
  .photo-study__labels span { font-size: .65rem; padding: 4px 7px; }
  .photo-study__histogram { width: calc(100% - 32px); margin: 16px; }
  .photo-observation { grid-template-columns: 1fr; }
  .photo-observation > img { height: auto; max-height: 480px; }
  .photo-observation > figcaption { padding: 20px; }
}
