.school-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.school-gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.school-gallery img{width:100%;height:220px;object-fit:cover;display:block}.school-gallery figcaption{padding:18px;font-weight:700;font-size:14px}.real-gallery{padding-top:30px}.hero-photo{object-position:center}.welcome-image img{object-position:center}@media(max-width:900px){.school-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.school-gallery{grid-template-columns:1fr}.school-gallery img{height:260px}}
/* Real school photographs: preserve the frame and keep content aligned. */
html{overflow-x:clip}
.hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start;min-height:0;padding-top:40px;padding-bottom:60px}
.hero:before{right:0;width:330px;height:330px}
.hero-copy{align-self:center;min-width:0}
.hero h1{font-size:clamp(40px,4.3vw,62px);line-height:1.1}
.hero-copy>p{font-size:17px;line-height:1.7;margin:24px 0}
.hero-visual{min-height:0;display:flex;flex-direction:column;gap:18px;align-self:start;min-width:0}
.hero-photo{height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center;background:#e7ede7;border-radius:22px;box-shadow:none}
.hero-visual .result-card{position:relative;inset:auto;margin:0;padding:24px;border-radius:22px;box-shadow:none}
.hero-visual .result-icon{display:none}
.hero-visual .result-card h2{font-size:22px;margin-top:14px}
.hero-visual .result-card p{line-height:1.6;margin:12px 0}
.hero-visual .result-button{margin:8px 0 12px}
.event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.event-card{display:flex;flex-direction:column;min-width:0}
.event-card img,.event-featured img{height:280px;object-fit:contain;object-position:center;background:#edf1ec;padding:8px}
.event-featured{grid-column:auto}
.event-copy{display:flex;flex-direction:column;flex:1;padding:24px}
.event-copy h3{font-size:21px;line-height:1.35;min-height:57px}
.event-copy p{margin:0 0 22px}
.event-copy a{margin-top:auto;padding-top:12px}
.school-gallery img{object-fit:contain;background:#edf1ec;padding:8px}
footer>div{min-width:0}
footer a,footer span{overflow-wrap:anywhere}
@media(max-width:900px){
.hero{gap:26px}.hero h1{font-size:42px}
.event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.event-card img,.event-featured img{height:220px}
.event-copy{padding:18px}.event-copy h3{font-size:18px;min-height:73px}
}
@media(max-width:800px){
.hero{grid-template-columns:1fr;padding:32px 20px 45px}
.hero h1{font-size:clamp(38px,7vw,54px)}
.hero-visual{gap:16px}.hero-photo{height:auto;max-height:none}
.hero-visual .result-card{margin:0;inset:auto}
.event-grid{grid-template-columns:1fr}
.event-card img,.event-featured img{height:320px}
.event-copy h3{min-height:0}
}
@media(max-width:480px){.event-card img,.event-featured img{height:260px}.hero-actions .button{width:100%}}
/* Uniform event cards: every image fills exactly the same frame. */
.event-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.event-card img,.event-featured img{width:100%;height:280px;aspect-ratio:auto;object-fit:cover;object-position:center;padding:0;border-radius:0}
.event-card:first-child img{object-position:center 35%}
.event-copy{display:grid;grid-template-rows:16px 58px 1fr auto;gap:14px}
.event-copy h3{margin:0;min-height:0;line-height:1.35}
.event-copy p{margin:0;min-height:92px}
.event-copy a{margin:0;padding-top:10px}
@media(max-width:900px){.event-card img,.event-featured img{height:230px}.event-copy{grid-template-rows:16px 74px 1fr auto}}
@media(max-width:800px){.event-grid{grid-template-columns:1fr}.event-card img,.event-featured img{height:300px}.event-copy{grid-template-rows:16px auto auto auto}.event-copy p{min-height:0}}
@media(max-width:480px){.event-card img,.event-featured img{height:240px}}