/* Gill Pre-School | News rows R3. Each article occupies its own row in published DOM order.
   Do not sort by headline/date, reverse the collection, or place two articles on one row. */
#gp-elementor .gp-news .gp-news-grid{
  display:block;width:min(100%,1024px);max-width:100%;margin:clamp(18px,3vw,30px) auto 0;padding:0;
}
#gp-elementor .gp-news .gp-news-grid:empty{display:none}
#gp-elementor .gp-news .gp-news-grid>.gp-news-card{
  position:relative;box-sizing:border-box;display:flex;flex-flow:row nowrap;align-items:flex-start;
  column-gap:clamp(15px,3vw,38px);width:100%;max-width:none;min-width:0;margin:0;
  padding:clamp(17px,2.5vw,28px);border-top:4px solid #fed330;text-align:left;
}
#gp-elementor .gp-news .gp-news-grid>.gp-news-card+.gp-news-card{margin-top:clamp(15px,2.2vw,24px)}
#gp-elementor .gp-news .gp-news-card>.gp-news-copy{
  order:0;flex:1 1 0%;min-width:0;margin:0;padding:0;border:0;text-align:left;overflow-wrap:anywhere;
}
#gp-elementor .gp-news .gp-news-card>.gp-news-photo{
  order:1;flex:0 0 35%;max-width:350px;min-width:0;align-self:flex-start;
  margin:0;padding:0;border-radius:13px;overflow:hidden;background:#edf4f6;
}
#gp-elementor .gp-news .gp-news-photo>img{
  display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
}
#gp-elementor .gp-news .gp-news-card>[data-gp-show="0"]{display:none!important}
/* A card without a photo has no image column: the copy naturally fills the full row. */
/* Keep the existing Add/Edit/Remove logic. Place the Add control at the end of the list in
   edit mode, immediately after the last news item; leave the Classes toolbar untouched. */
body.gpa-edit-mode #gp-elementor .gp-news>.gp-container{display:flex;flex-direction:column;align-items:stretch}
body.gpa-edit-mode #gp-elementor .gp-news>.gp-container>h2{order:0}
body.gpa-edit-mode #gp-elementor .gp-news>.gp-container>.gp-news-grid{order:1}
body.gpa-edit-mode #gp-elementor .gp-news>.gp-container>.gp-itembar{order:2;align-self:center;width:min(100%,1024px);margin:16px 0 0}
body.gpa-edit-mode #gp-elementor .gp-news .gp-news-grid>.gp-news-card{padding-top:58px}
body.gpa-edit-mode #gp-elementor .gp-news .gp-news-card>.gp-news-copy{padding-top:0}
@media(max-width:600px){
  #gp-elementor .gp-news .gp-news-grid>.gp-news-card{padding:14px 12px;column-gap:clamp(9px,2.4vw,14px);border-radius:16px}
  #gp-elementor .gp-news .gp-news-card>.gp-news-photo{flex-basis:30%;max-width:150px;border-radius:9px}
  #gp-elementor .gp-news .gp-news-card h3{font-size:clamp(22px,5.7vw,30px);line-height:1.1}
  #gp-elementor .gp-news .gp-news-summary{font-size:15px;line-height:1.5}
  #gp-elementor .gp-news .gp-news-dateline{font-size:13px}
  body.gpa-edit-mode #gp-elementor .gp-news .gp-news-grid>.gp-news-card{padding-top:56px}
}

/* News & Updates: the actual Admissions feature and its exact DOM copies, not thumbnail cards. */
#gp-elementor .gp-news.gp-feature-news{padding:clamp(35px,4vw,48px) 0 0;background:#fff}
#gp-elementor .gp-news.gp-feature-news>.gp-container{width:100%;max-width:none;margin:0;padding:0}
#gp-elementor .gp-feature-news>.gp-container>h2{margin:0 auto;padding:0 16px clamp(35px,4vw,48px)}
#gp-elementor .gp-news.gp-feature-news .gp-news-grid{display:block;width:100%;max-width:none;margin:0;padding:0}
#gp-elementor .gp-news.gp-feature-news .gp-news-grid:empty{display:none}
#gp-elementor .gp-feature-news .gp-news-grid>.gp-news-feature{position:relative;width:100%;max-width:none;margin:0;padding:clamp(34px,4.9vw,72px) 0;background:var(--cream)}
#gp-elementor .gp-feature-news .gp-news-feature+.gp-news-feature{border-top:1px solid #eae4d5}
#gp-elementor .gp-feature-news .gp-news-feature>.gp-intake-grid{display:flex;align-items:center;gap:clamp(22px,3.8vw,54px);width:min(1240px,100%);margin:0 auto;padding-inline:clamp(16px,3.4vw,44px)}
#gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy{flex:1 1 0%;min-width:0;text-align:left;overflow-wrap:anywhere}
#gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy h2{font-size:clamp(36px,4.5vw,59px);line-height:1.05;text-align:left}
#gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy p{white-space:pre-line}
#gp-elementor .gp-feature-news .gp-news-feature .gpa-imgwrap{flex:0 0 54%;min-width:0;margin:0}
#gp-elementor .gp-feature-news .gp-news-feature .gpa-imgwrap>img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:auto 1 / 1;object-fit:contain;border-radius:clamp(12px,2.1vw,30px)}
#gp-elementor .gp-feature-news .gp-news-feature [data-gp-show="0"]{display:none!important}
#gp-elementor .gp-feature-news .gp-news-feature .gp-reveal{opacity:1;transform:none}
/* Keep older, separately composed articles too, with full-size photos instead of 16:9 thumbnails. */
#gp-elementor .gp-news.gp-feature-news .gp-news-grid>.gp-news-card{width:min(calc(100% - 32px),1180px);max-width:none;margin:20px auto;align-items:center}
#gp-elementor .gp-news.gp-feature-news .gp-news-card>.gp-news-photo{align-self:center;flex:0 0 54%;max-width:none}
#gp-elementor .gp-news.gp-feature-news .gp-news-card>.gp-news-photo>img{height:auto;aspect-ratio:auto 1 / 1;object-fit:contain}
/* Authenticated controls are outside editable fields; never change the public layout. */
body.gpa-edit-mode #gp-elementor .gp-feature-news>.gp-container>.gp-itembar{order:2;width:min(calc(100% - 28px),1152px);margin:16px auto}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-grid>.gp-news-feature{padding-top:max(58px,4.9vw)}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-feature>.gp-item-ops{left:max(8px,calc((100% - 1152px)/2));top:8px}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-item-ops{flex-wrap:wrap;max-width:calc(100% - 16px)}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-feature .gpa-img-edit-container{display:none!important}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-grid img[data-gp-i]{cursor:pointer}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-choose-photo{display:inline-flex;align-items:center;justify-content:center;position:relative;overflow:hidden;margin:0;min-height:35px;padding:6px 10px;border-radius:8px;color:#153753;background:#e6f0f7;font:700 14px/1.25 'Balsamiq Sans',sans-serif;cursor:pointer}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-choose-photo input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-choose-photo:focus-within{outline:2px solid #126a9a}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-small-tools{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-grid [data-news-hint][contenteditable]:empty{display:block!important;min-height:1.35em;cursor:text}
body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-grid [data-news-hint][contenteditable]:empty::before{content:attr(data-news-hint);opacity:.6;pointer-events:none}
@media(max-width:680px){
 #gp-elementor .gp-feature-news .gp-news-grid>.gp-news-feature{padding:30px 0}
 #gp-elementor .gp-feature-news .gp-news-feature>.gp-intake-grid{gap:clamp(10px,3vw,19px);padding-inline:clamp(12px,3.2vw,20px);align-items:flex-start}
 #gp-elementor .gp-feature-news .gp-news-feature .gpa-imgwrap{flex-basis:53%}
 #gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy h2{font-size:clamp(23px,6.1vw,38px);line-height:1.08}
 #gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy span{font-size:clamp(11px,2.8vw,13px);letter-spacing:.08em}
 #gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy p{margin:9px 0 14px;font-size:clamp(14px,3.5vw,16px);line-height:1.48}
 #gp-elementor .gp-feature-news .gp-news-feature .gp-intake-copy a{max-width:100%;padding:9px 12px;line-height:1.35}
 #gp-elementor .gp-news.gp-feature-news .gp-news-grid>.gp-news-card{width:calc(100% - 20px);column-gap:10px;align-items:flex-start}
 #gp-elementor .gp-news.gp-feature-news .gp-news-card>.gp-news-photo{flex-basis:52%;align-self:flex-start}
 body.gpa-edit-mode #gp-elementor .gp-feature-news .gp-news-grid>.gp-news-feature{padding-top:59px}
}
