/* Original teaching diagrams. Scales comfortably from teacher page to projector. */
.science-slide-diagram{margin:14px auto 20px;background:#f6faf3;border:1px solid #c6d8c3;border-radius:18px;padding:12px;max-width:900px;break-inside:avoid}
.science-slide-diagram svg{display:block;width:100%;height:auto;max-height:min(48vh,500px);margin:auto}
.science-slide-diagram figcaption{font-size:14px;line-height:1.45;color:#3b5c47;text-align:center;margin-top:6px}
.present-slide .science-slide-diagram{max-width:1010px;margin:7px auto;padding:10px;border:2px solid #b9d3ba}
.present-slide .science-slide-diagram svg{max-height:min(53vh,560px)}
.present-slide .science-slide-diagram figcaption{font-size:clamp(14px,1.3vw,18px)}
@media(max-width:650px){.science-slide-diagram{padding:5px}.present-slide .science-slide-diagram svg{max-height:39vh}.science-slide-diagram figcaption{font-size:12px}}
@media print{.science-slide-diagram{border:1px solid #aaa;background:white}.science-slide-diagram svg{max-height:350px}}

/* Keep the accessible explanation in the SVG and for assistive technology, while
   projecting a short prompt pupils can read from the back of the room. */
.science-slide-diagram .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.present-slide .science-slide-diagram figcaption{max-width:850px;margin:7px auto;text-wrap:balance}
.present-slide .science-slide-diagram{max-width:min(1010px,100%);box-sizing:border-box}
@media(max-width:720px){.present-slide .science-slide-diagram{padding:6px}.present-slide .science-slide-diagram figcaption{text-wrap:initial}}

/* Real photos beside a drawn model (lesson-photos.js) */
.model-with-photo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
#present .model-with-photo{align-items:center}
#present .present-slide>.science-slide-diagram svg{max-height:32vh}
#present .model-with-photo .lesson-photo img{max-height:28vh;object-fit:contain}
#present .model-with-photo .science-slide-diagram svg{max-height:30vh}
#present .model-with-photo .lesson-photo figcaption{padding:5px 9px;font-size:.85rem}
#present .model-with-photo .science-slide-diagram figcaption{font-size:clamp(14px,1.1vw,17px);line-height:1.3}
.model-photos { display: grid; gap: 12px; }
.lesson-photo { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper, #fff); border: 1px solid #d7e2d4; }
.lesson-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef3ec; }
.lesson-photo.is-diagram img { object-fit: contain; background: #fff; }
.two-photos .lesson-photo img { aspect-ratio: 16 / 9; }
.lesson-photo figcaption { padding: 8px 12px 10px; font-size: .9rem; line-height: 1.35; }
.photo-credit { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted, #5b6b62); overflow-wrap: anywhere; }
.photo-credit a { color: inherit; }
@media (max-width: 700px) { .model-with-photo { grid-template-columns: 1fr; } }
@media print { .lesson-photo { break-inside: avoid; } }

/* Photos as evidence: an investigation question under each photo; comparisons side by side. */
.photo-question { display: block; margin-top: 4px; font-size: .92rem; color: #1f4a3a; }
.photo-question b { color: #11665e; }
.photo-about { margin-top: 4px; font-size: .8rem; color: var(--muted, #5b6b62); }
.photo-about summary { cursor: pointer; }
.photo-compare .model-photos { grid-template-columns: 1fr 1fr; align-items: start; }
.photo-compare .photo-compare-question { grid-column: 1 / -1; margin: 0; padding: 8px 12px; background: #eef6f3; border-radius: 10px; }
#present .photo-question { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.3; }
#present .photo-compare .lesson-photo img { max-height: 22vh; }
@media (max-width: 700px) { .photo-compare .model-photos { grid-template-columns: 1fr; } }
@media print { .photo-about { display: none; } }
