/* Keep media inside its layout while preserving approved desktop crops. */
main img{box-sizing:border-box}
main :is(.first-steps-hero,.grade-five-banner,.about-banner,.fees-banner,.audio-set)>*{min-width:0}
@media(max-width:1200px){
 .first-steps-hero{grid-template-columns:minmax(0,38%) minmax(0,62%);column-gap:0;row-gap:12px}
 .first-steps-hero>.wrap{grid-column:1/-1;max-width:none;padding:30px 7% 8px;zoom:1}
 .first-steps-hero>.audio-banner-chutney{grid-column:1;grid-row:2;position:static;width:auto;max-width:90%;height:clamp(150px,25vw,250px);margin:0 0 20px;transform:none;justify-self:center;object-fit:contain}
 .first-steps-hero>.first-steps-covers{grid-column:2;grid-row:2;width:100%;max-width:100%;height:auto;padding:12px 7% 24px 0;justify-self:center}
}
@media(max-width:800px){
 .grade-five-preview{position:relative;overflow:hidden}
 .grade-five-preview img.gcse-book-stack{inset:0;width:100%;height:100%;transform:none;object-fit:contain;object-position:center}
 .grade-five-preview>div{min-width:0}
 .grade-five-preview img:not(.gcse-book-stack){object-fit:cover}
 .fees-banner{grid-template-columns:minmax(0,65%) minmax(0,35%)}
}
@media(max-width:650px){
 .first-steps-hero>.wrap{padding-top:26px}
 .first-steps-hero>.audio-banner-chutney{height:clamp(130px,38vw,200px);max-width:95%}
 .book-copy{width:100%;max-width:100%}
 .book-contents,.book-contents tbody{display:block;width:100%;max-width:100%;border-spacing:0}
 .book-contents tr{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:38px}
 .book-contents th,.book-contents td,.book-contents td:last-child{display:block;width:100%;max-width:100%;padding:0;white-space:normal}
 .book-contents th img{display:block;width:min(160px,60%);max-width:100%;margin:0 auto;height:auto}
 .book-contents td:nth-child(2){font-size:14px;line-height:1.5}
 .book-contents .book-sample{width:100%;max-width:100%;height:auto}
 .book-contents .printable-download{max-width:100%;white-space:normal}
 .printable-first-page{width:min(100%,330px);margin:auto}
 .printable-first-page img{aspect-ratio:595/842;object-fit:contain}
 .audio-set,.audio-sample-controls{min-width:0;max-width:100%}
 .audio-set audio{max-width:100%}
}
