/* 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}
}
