
/* All event and overview photo galleries use one row. */
html body #last-year .past-photo-grid{display:grid!important;grid-template-columns:repeat(var(--photo-count,4),minmax(0,1fr))!important;gap:18px!important;overflow:visible!important}
html body #last-year .past-photo-grid figure{min-width:0;margin:0!important}
html body #last-year .past-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
/* Full-width timeline followed by balanced rules cards. */
html body.spelling-event[data-event-colour="gold"] main>.spelling-journey{margin:28px 0!important;padding:26px!important}
html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .shared-round{display:flex!important;align-items:center;justify-content:space-between;gap:24px}
html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .shared-round>strong{margin:0!important}
html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .spelling-tracks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}
.spelling-rules{padding:20px 0 30px}.spelling-rules-intro{max-width:900px;margin-bottom:25px}.spelling-rules-intro h2{margin-top:0}.spelling-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.spelling-rule-card{padding:24px;border:1px solid #d7b47888;background:#5c412866;border-radius:6px}.spelling-rule-card h3{margin:0 0 15px!important;font-size:25px!important}.spelling-rule-card p{margin:0;line-height:1.8}
html body.spelling-event[data-event-colour="gold"] main>.practice-callout{margin:0 0 25px!important}.spelling-rules+.practice-callout h3{margin-bottom:12px}
@media(max-width:850px){html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .spelling-tracks,.spelling-rule-grid{grid-template-columns:1fr!important}html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .shared-round{display:block!important}html body.spelling-event[data-event-colour="gold"] main>.spelling-journey .shared-round>strong{margin-top:15px!important}}
@media(max-width:650px){html body #last-year .past-photo-grid{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:12px!important;padding-bottom:10px;scroll-snap-type:x proximity}html body #last-year .past-photo-grid figure{flex:0 0 72%!important;scroll-snap-align:start}}
