/* Client feedback: a separate values panel and square, icon-free Quick Links. */
.sm-home-content > .sm-values.sm-values-box,.sm-values.sm-values-box {
 box-sizing:border-box; max-width:1400px; width:100%; margin:32px auto 0;
 padding:32px clamp(20px,3vw,44px); background:transparent; border:0; border-radius:0;
}
.sm-values.sm-values-box > :is(h2,h3) { margin:0; text-align:center; color:#094070; font-size:clamp(30px,3vw,42px); line-height:1.25; }
.sm-values.sm-values-box .sm-values-inner { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; max-width:none; margin:16px 0 0; }
.sm-values.sm-values-box .sm-value { --sm-value-accent:#f186b6; display:grid; align-items:center; min-width:0; min-height:100px; margin:0; padding:0 10px; background:transparent; border:0; }
.sm-values.sm-values-box .sm-value:nth-child(5n+2) { --sm-value-accent:#fac535; }
.sm-values.sm-values-box .sm-value:nth-child(5n+3) { --sm-value-accent:#35baa4; }
.sm-values.sm-values-box .sm-value:nth-child(5n+4) { --sm-value-accent:#a60808; }
.sm-values.sm-values-box .sm-value:nth-child(5n+5) { --sm-value-accent:#591ab2; }
.sm-values.sm-values-box .sm-value h3 { color:#094070; font-size:clamp(28px,2.5vw,40px); line-height:1.25; text-transform:none; text-align:center; margin:0; overflow-wrap:break-word; }
.sectionlinks.sectionlinks :is(.sectionlinks-box,.sectionlinks-box_url,.sectionlinks-box_bgimg,.sectionlinks-box_bgimg img) { border-radius:0; }
.sectionlinks .sm-card-icon { display:none; }
/* The editor reflects the same cards and own-box values presentation. */
.smb-edit-cards .smb-editor-card-icon { display:none; }
.smb-edit-cards .smb-edit-card,.smb-edit-cards .smb-edit-card::after,.smb-edit-cards .smb-edit-card > :is(.smb-editor-image,.smb-image-placeholder) { border-radius:0; }
.smb-edit-cards > .smb-editor-grid { padding-top:0; }
.smb-edit-values { border-radius:0; background:transparent; }
.smb-edit-values > :is(h2,h3) { text-align:center; color:#094070; }
.smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.smb-edit-values .smb-edit-value { min-height:100px; background:transparent; border:0; border-radius:0; padding:16px 10px; display:grid; align-items:center; }
.smb-edit-values .smb-edit-value .sm-value-title { color:#094070; text-transform:none; font-size:32px; line-height:1.25; margin:0; text-align:center; }
@media(max-width:1100px){.sm-values.sm-values-box .sm-values-inner,.smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.sm-home-content > .sm-values.sm-values-box, .sm-values.sm-values-box {
    margin: 0 auto 0;
}
.sm-values.sm-values-box{padding:24px 20px;margin-top:24px;}.sm-values.sm-values-box .sm-values-inner,.smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.sm-values.sm-values-box .sm-value{min-height:80px;}}
@media(max-width:480px){.sm-values.sm-values-box .sm-values-inner,.smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout{grid-template-columns:minmax(0,1fr);}.sm-values.sm-values-box .sm-value{min-height:64px;}}

/* The welcome uses a single portrait instead of a four-image collage. */
.sm-welcome-single-image .sm-collage { display:block; margin:0; }
.sm-welcome-single-image .sm-collage-image:nth-child(n) { display:block; margin:0; width:100%; max-height:560px; }
.sm-welcome-single-image .sm-collage-image > img { display:block; width:100%; height:100%; object-fit:cover; }
@media(max-width:900px){.sm-welcome-single-image .sm-collage{max-width:440px;margin:0 auto 30px;}.sm-welcome-single-image .sm-collage-image:nth-child(n){max-height:460px;}}
.smb-edit-welcome-gallery > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns:minmax(0,1fr); }
.smb-edit-welcome-gallery > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-stmichael-collage-image:nth-child(n) { grid-column:1 / -1; width:min(100%,360px); }
.smb-edit-welcome-gallery .wp-block-stmichael-collage-image .smb-editor-image { width:100%; height:300px; object-fit:cover; }

/* Distinct, readable school-value colours on the plain background. */
.sm-values.sm-values-box .sm-value:nth-child(5n+1) h3,.smb-edit-values .smb-edit-value:nth-child(5n+1) .sm-value-title { color:#065da8; }
.sm-values.sm-values-box .sm-value:nth-child(5n+2) h3,.smb-edit-values .smb-edit-value:nth-child(5n+2) .sm-value-title { color:#087d46; }
.sm-values.sm-values-box .sm-value:nth-child(5n+3) h3,.smb-edit-values .smb-edit-value:nth-child(5n+3) .sm-value-title { color:#be2424; }
.sm-values.sm-values-box .sm-value:nth-child(5n+4) h3,.smb-edit-values .smb-edit-value:nth-child(5n+4) .sm-value-title { color:#946800; }
.sm-values.sm-values-box .sm-value:nth-child(5n+5) h3,.smb-edit-values .smb-edit-value:nth-child(5n+5) .sm-value-title { color:#a6480b; }
.editor-styles-wrapper .smb-edit-values { background:transparent; border:0; }
.editor-styles-wrapper .smb-edit-values > :is(h2,h3) { color:#094070; }
.editor-styles-wrapper .smb-edit-values .smb-edit-value { background:transparent; border:0; }

/* Preserve the welcome photograph's complete natural aspect ratio. */
.sm-welcome-single-image .sm-collage-image:nth-child(n) { aspect-ratio:auto; height:auto; max-height:none; }
.sm-welcome-single-image .sm-collage-image > img { width:100%; height:auto; max-height:none; object-fit:contain; }
.smb-edit-welcome-gallery .wp-block-stmichael-collage-image .smb-editor-image { height:auto; max-height:none; aspect-ratio:auto; object-fit:contain; }
/* Compact, consistent gaps at all Quick Links breakpoints. */
.sectionlinks.sectionlinks.sm-section { margin-top:0; }
.sectionlinks.sectionlinks .sectionlinks-wrapper { gap:15px; }
.editor-styles-wrapper .smb-edit-cards .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { gap:15px; }
/* School values fit their text instead of reserving tall empty rows. */
.sm-values.sm-values-box .sm-value { min-height:0; padding:4px 6px; }
.sm-values.sm-values-box .sm-value :is(h2,h3) { font-size:clamp(36px,3.3vw,44px); line-height:1.15; font-weight:700!important; }
.editor-styles-wrapper .smb-edit-values .smb-edit-value { min-height:0; padding:4px 6px; }
.editor-styles-wrapper .smb-edit-values .smb-edit-value .sm-value-title { font-size:40px; line-height:1.15; font-weight:700!important; }
@media(max-width:700px){
 .sm-values.sm-values-box .sm-values-inner { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
 .sm-values.sm-values-box .sm-value :is(h2,h3) { font-size:clamp(32px,6.5vw,40px); }
 .editor-styles-wrapper .smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
}
@media(max-width:360px){
 .sm-values.sm-values-box .sm-values-inner,.editor-styles-wrapper .smb-edit-values .smb-editor-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { grid-template-columns:minmax(0,1fr); }
}

.editor-styles-wrapper .smb-edit-welcome-gallery .wp-block-stmichael-collage-image .smb-editor-image { height:auto; max-height:none; aspect-ratio:auto; object-fit:contain; }
