/* Pair material structure with the energy, field or response it helps explain. */
.gallery-detail-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 22px;padding-top:17px;border-top:1px solid var(--story-line,#e5dfeb);min-width:0}
.gallery-detail-points>div{min-width:0}
.gallery-detail-points strong{display:block;font:500 14px/1.55 var(--font);color:var(--ink,#242225);margin-bottom:5px}
.gallery-detail-points span{display:block;font:400 12px/1.75 var(--font);color:var(--story-copy,#746c7d)}
.gallery-science-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:center;width:100%;height:100%;min-width:0}
.gallery-science-figure{margin:0;min-width:0;text-align:center}
.gallery-science-figure>img{display:block;object-fit:contain;width:100%;height:265px;max-height:none}
.gallery-science-figure figcaption{font-size:12px;line-height:1.6;color:var(--story-copy);margin-top:12px}
.method-gallery .method-scale-step{min-height:720px}
#numerical-methods .method-gallery .method-scale-step{min-height:660px}
.method-gallery .method-slide-art{height:330px;margin-bottom:25px}
.method-gallery .method-preview-image{height:292px}
.method-gallery .method-preview-image>img,.method-gallery .scale-field-pair img{max-height:292px}
.method-gallery .method-preview-caption{padding-top:12px}
.method-gallery .gallery-detail-points{margin-bottom:22px}
.atomic-energy-pair{grid-template-columns:.95fr 1.05fr;gap:20px}
.atomic-energy-pair .gallery-science-figure>img{height:280px}
.method-gallery .method-slide-art:has(.recording-result-pair){height:340px}
.recording-result-pair{gap:18px}
.recording-result-pair .recording{min-width:0}
.method-gallery .recording-result-pair .recording img.recording-image{height:230px;max-height:230px}
.recording-result-pair .recording-bar{padding-inline:9px;gap:5px}
.recording-result-pair .recording-bar>a{font-size:10px}
.recording-result-pair .media-actions{gap:5px}
.recording-result-pair .gallery-science-figure>img{height:255px}
.recording-result-pair .gallery-science-figure>img.gallery-colour-ramp{height:6px;width:85%;margin:8px auto 0}
.mesh-response-pair{grid-template-columns:1fr 1fr 1.12fr;gap:14px}
.mesh-response-pair .gallery-science-figure>img{height:245px}
/* Each data source now shows the computed or measured object and a useful result. */
.data-source-art{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;height:285px;padding:0}
.data-source-picture{margin:0;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center}
.data-source-image-window{height:245px;width:100%;position:relative;overflow:hidden}
.data-source-image-window>img{display:block;width:100%;height:100%;object-fit:contain}
.data-source-picture>figcaption{font:400 12px/1.6 var(--font);color:var(--story-copy);margin-top:12px;text-align:center}
.data-source-view[data-source="defects"] .data-source-picture:nth-child(2) .data-source-image-window{height:auto;aspect-ratio:660/488}
.data-source-view[data-source="defects"] .data-source-picture:nth-child(2) img{position:absolute;left:-32.575758%;top:-14.754098%;width:160%;height:174.590164%;max-width:none;object-fit:fill}
.data-source-view .data-source-caption{min-height:88px;padding:22px 0 16px}
.gallery-result-copy{font:400 14px/1.85 var(--font);color:var(--story-copy);margin:0 0 20px}
.data-source-view .gallery-detail-points{margin-bottom:7px}
.training-outcome .gallery-detail-points{margin-block:22px 14px}
.training-outcome>p{min-height:0}
.training-outcome h3{min-height:0}
/* Research pairs remain quiet; short reading cues connect images to the material problem. */
.research-result-details{margin:18px 0 0;padding:18px 3px 0;gap:20px}
.research-result-details strong{font-size:13px}
.research-result-details span{font-size:12px}
.research-visual[data-layout="energy-evolution"]{gap:16px;min-height:0;padding-top:0}
.research-visual[data-layout="energy-evolution"]>[data-research-context]{height:250px;max-width:310px}
.research-visual[data-layout="energy-evolution"]>[data-research-image]{max-height:165px}
@media(max-width:1100px){.gallery-science-pair{gap:17px}.gallery-detail-points{gap:15px}.data-source-art{height:265px}.data-source-image-window{height:225px}}
@media(max-width:800px){.data-source-art{max-width:620px;height:300px}.data-source-image-window{height:265px}.data-source-view .gallery-detail-points{margin-bottom:10px}.research-result-details{margin-top:15px}}
@media(max-width:700px){.method-gallery .method-scale-step,#numerical-methods .method-gallery .method-scale-step{min-height:760px}.method-gallery .method-slide-art{height:325px}.method-gallery .method-preview-image{height:288px}.gallery-detail-points strong{font-size:14px}.gallery-detail-points span{font-size:13px}}
@media(max-width:520px){
 .method-gallery .method-slide-art,.method-gallery .method-slide-art:has(.recording-result-pair){height:305px;margin-bottom:24px}
 .method-gallery .method-preview-image{height:270px}
 .method-gallery .method-preview-image>img,.method-gallery .scale-field-pair img{max-height:270px}
 .gallery-science-figure figcaption{font-size:11px;margin-top:10px}
 .method-gallery .method-slide-art:has(.recording-result-pair){height:540px}
 .recording-result-pair{grid-template-columns:1fr;gap:20px;align-items:start}
 .method-gallery .recording-result-pair .recording{height:280px}
 .method-gallery .recording-result-pair .recording img.recording-image{height:210px;max-height:210px}
 .recording-result-pair .gallery-science-figure>img{height:200px}
 .recording-result-pair .recording-bar>a{font-size:11px}
 .mesh-response-pair figcaption{font-size:11px}
 .gallery-detail-points{gap:15px;margin-bottom:20px}.gallery-detail-points strong{font-size:13px}.gallery-detail-points span{font-size:12px;line-height:1.75}
 .data-source-picture>figcaption{font-size:11px}
 .gallery-result-copy{font-size:14px}.data-source-view .data-source-caption{min-height:90px}
 .research-result-details{gap:14px}.research-result-details span{font-size:12px}
 .research-visual[data-layout="energy-evolution"]>[data-research-context]{height:230px}.research-visual[data-layout="energy-evolution"]>[data-research-image]{max-height:145px}
 /* Small screens keep the energy axes and field scales readable. */
 .method-gallery .method-slide-art:has(.atomic-energy-pair){height:495px}
 .method-gallery .method-slide-art:has(.atomic-energy-pair) .method-preview-image{height:495px}
 .atomic-energy-pair{grid-template-columns:1fr;gap:16px}
 .atomic-energy-pair .gallery-science-figure:first-child>img{height:140px}
 .atomic-energy-pair .gallery-science-figure:last-child>img{height:270px}
 .method-gallery .method-slide-art:has(.mesh-response-pair){height:485px}
 .method-gallery .method-slide-art:has(.mesh-response-pair) .method-preview-image{height:450px}
 .mesh-response-pair{grid-template-columns:1fr 1fr;gap:15px}
 .mesh-response-pair .gallery-science-figure>img{height:175px}
 .mesh-response-pair .gallery-science-figure:last-child{grid-column:1/-1}
 .mesh-response-pair .gallery-science-figure:last-child>img{height:210px}
 .data-source-art{grid-template-columns:1fr;height:auto;gap:20px}
 .data-source-image-window{height:220px}
 .data-source-view[data-source="defects"] .data-source-picture:nth-child(2) .data-source-image-window{max-width:270px}
 .method-gallery .method-slide-art:has(#preview-ai-fields){height:510px}
 .method-gallery .method-slide-art:has(#preview-ai-fields) .method-preview-image{height:470px}
 .method-gallery #preview-ai-fields .scale-field-pair{grid-template-columns:1fr;gap:15px}
 .method-gallery #preview-ai-fields .scale-field-pair img:first-child{height:170px;max-height:170px}
 .method-gallery #preview-ai-fields .scale-field-pair img:last-child{height:270px;max-height:270px}
 .research-visual[data-layout="geometry-field"],.research-visual[data-layout="structure-response"]{grid-template-columns:1fr;gap:22px}
 .research-visual[data-layout="geometry-field"]>img,.research-visual[data-layout="structure-response"]>img{max-height:280px}
}
.model-inclusion-window{position:relative;overflow:hidden;width:100%;max-width:245px;aspect-ratio:1;margin-inline:auto}
.model-inclusion-window>img{display:block;position:absolute;max-width:none;left:-57.575758%;top:-21.212121%;width:727.272727%;height:377.878788%;object-fit:fill}
@media(max-width:520px){
 .method-gallery #preview-ai-pdco .model-inclusion-pair{grid-template-columns:1fr;gap:15px}
 .model-inclusion-window{width:170px}
 .model-inclusion-pair .gallery-science-figure:last-child>img{height:270px}
}
