/* Published Home news. An empty group has no box, placeholder card or extra space. */
#gp-elementor .gp-news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));align-items:stretch;gap:22px}
#gp-elementor .gp-news-grid:empty{display:none}
#gp-elementor .gp-news-card{position:relative;margin-top:22px;min-width:0;width:100%;max-width:720px;justify-self:center;overflow:hidden;border:1px solid #dce6e9;border-radius:21px;background:#fff;box-shadow:0 8px 25px #182f6c12;text-align:left}
#gp-elementor .gp-news-photo{margin:0;background:#e8f3f5}
#gp-elementor .gp-news-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
#gp-elementor .gp-news-copy{padding:23px clamp(18px,2.4vw,30px) 25px;border-top:4px solid #fed330}
#gp-elementor .gp-news-dateline{color:#32634e;font:700 14px/1.4 'Balsamiq Sans',sans-serif;margin:0 0 7px}
#gp-elementor .gp-news-card h3{font:400 clamp(27px,3vw,37px)/1.1 'Londrina Solid',sans-serif;color:#18306c;margin:0;overflow-wrap:anywhere}
#gp-elementor .gp-news-summary{margin:10px 0 0;color:#3c4e5a;font-size:16px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
#gp-elementor .gp-news-link{display:inline-block;margin:14px 0 0;color:#155b87;text-decoration:underline;text-underline-offset:3px;font-weight:700;overflow-wrap:anywhere}
#gp-elementor .gp-news-card [data-gp-show="0"],#gp-elementor .gp-news-dateline:empty,#gp-elementor .gp-news-summary:empty{display:none!important}
/* Created only in authenticated editing mode; not saved as public HTML. */
body.gpa-edit-mode #gp-elementor .gp-itembar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px 13px;margin:18px 0;padding:12px;border:1px dashed #79a4b7;border-radius:14px;background:#f0f7fa;color:#20445e;text-align:center}
body.gpa-edit-mode #gp-elementor .gp-itembar button,body.gpa-edit-mode #gp-elementor .gp-item-ops button{min-height:38px;position:static;width:auto;margin:0;border:0;border-radius:8px;font:700 14px/1.25 'Balsamiq Sans',sans-serif;letter-spacing:normal;cursor:pointer;text-transform:none}
body.gpa-edit-mode #gp-elementor .gp-itembar button{padding:9px 16px;background:#174b70;color:#fff;min-height:42px}
body.gpa-edit-mode #gp-elementor .gp-itembar span{font:500 14px/1.45 'Balsamiq Sans',sans-serif}
body.gpa-edit-mode #gp-elementor .gp-item-ops{position:absolute;z-index:25;top:8px;left:8px;display:inline-flex;align-items:center;gap:4px;margin:0;padding:3px;border-radius:11px;background:#fff;box-shadow:0 2px 8px #10233e42}
body.gpa-edit-mode #gp-elementor .gp-item-ops button{min-height:35px;padding:6px 10px;background:#e6f0f7;color:#153753}
body.gpa-edit-mode #gp-elementor .gp-item-ops button:last-child{color:#942534;background:#fbe9ec}
body.gpa-edit-mode #gp-elementor .gp-news-card .gp-news-copy{padding-top:55px}
body.gpa-edit-mode #gp-elementor .gp-class-grid .gpa-img-edit-container{display:none!important}
body.gpa-edit-mode #gp-elementor :is(.gp-news-grid,.gp-class-grid) [data-gp-t][contenteditable]{cursor:text;outline:1px dashed #137293!important;outline-offset:2px}
body.gpa-edit-mode #gp-elementor :is(.gp-news-grid,.gp-class-grid) [data-gp-t][contenteditable]:focus{outline:2px solid #126a9a!important}
.gp-item-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;width:min(545px,calc(100% - 24px));max-width:100vw;max-height:min(88vh,790px);max-height:min(88dvh,790px);border:1px solid #c4d4db;border-radius:20px;color:#163753;background:white;box-shadow:0 18px 70px #10284140;font:16px/1.42 'Balsamiq Sans',system-ui,sans-serif;z-index:200000;overflow:auto;overscroll-behavior:contain;color-scheme:light}
.gp-item-dialog:not([open]){display:none}.gp-item-dialog::backdrop{background:rgba(16,34,52,.55)}
.gp-item-dialog *{box-sizing:border-box}.gp-item-dialog form{display:flex;flex-direction:column;margin:0}.gp-it-head{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:18px 22px 13px;border-bottom:1px solid #dce7ec}.gp-it-head small{font:700 11px/1.4 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#42745d}.gp-it-head h2{margin:3px 0 0;font:400 32px/1.03 'Londrina Solid',system-ui,sans-serif;color:#17395e}.gp-item-dialog button{cursor:pointer;color:#173952;background:#f0f4f6;padding:8px 13px;border:1px solid #cad9e0;border-radius:8px;min-height:40px;font:700 15px 'Balsamiq Sans',sans-serif}.gp-item-dialog button:disabled{cursor:wait;opacity:.55}
.gp-it-fields{padding:14px 22px 4px;display:grid;gap:12px}.gp-item-dialog [hidden]{display:none!important}.gp-it-field{display:grid;gap:4px}.gp-it-field>span,.gp-it-check span{font-weight:700}.gp-it-field input,.gp-it-field textarea{width:100%;border:1px solid #a8bbc7;border-radius:8px;padding:9px 10px;min-height:40px;font:16px/1.4 'Balsamiq Sans',sans-serif;background:#fff;color:#162e45}.gp-it-field textarea{resize:vertical;min-height:78px}.gp-it-check{display:flex;align-items:center;gap:8px;min-height:32px}.gp-it-check input{width:19px;height:19px}.gp-it-options{display:grid;gap:10px;border-left:3px solid #bed8cc;padding-left:12px;margin:0}.gp-it-options img{width:106px;height:70px;object-fit:cover;border-radius:9px}.gp-it-hint,.gp-it-note{font-size:13px;color:#4e6472;margin:0}.gp-it-note{padding:8px 22px}.gp-it-error{color:#97283c;margin:0 22px;font-weight:700}.gp-it-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 22px;position:sticky;bottom:0;background:#fff;border-top:1px solid #dce7ec}.gp-it-foot button[type=submit]{background:#174b70;border-color:#174b70;color:white}.gp-item-dialog :focus-visible{outline:3px solid #d08527;outline-offset:2px}@media(max-width:490px){.gp-item-dialog{width:calc(100% - 12px);max-height:94dvh;border-radius:15px}.gp-it-fields,.gp-it-head,.gp-it-foot{padding-inline:14px}.gp-it-head h2{font-size:28px}}

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