/* Rabnoor Theme additions. The original design stays in style.css (unchanged); this file only adds what WordPress needs. */

/* Where Elementor's own CSS is loaded (the editor, or pages that also use Elementor widgets): no padding or gaps
   around Rabnoor sections, and undo Elementor's generic image/link rules inside them. */
.elementor .e-con:has(> [class*="elementor-widget-rabnoor_"]){--padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;--gap:0px;--row-gap:0px;--column-gap:0px;--content-width:100%;--width:100%;padding:0;gap:0}
.elementor [class*="elementor-widget-rabnoor_"]{width:100%;max-width:100%;margin:0}
.elementor [class*="elementor-widget-rabnoor_"] img{border:0;border-radius:inherit;box-shadow:none}
.elementor [class*="elementor-widget-rabnoor_"] .inline{text-decoration:underline}

/* Elementor editor: sections are re-rendered after main.js has run, so the scroll-reveal never fires there. Always show them. */
.elementor-editor-active .reveal,.elementor-editor-active .stagger>*{opacity:1!important;transform:none!important}

/* Wedding moments: as many columns as cards, so 3 cards fill the full width (original grid had 4 columns) */
@media (min-width:1024px){
.occ:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.occ:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Enquiry form on one line (desktop): fields and the WhatsApp button in one row, the note underneath */
@media (min-width:1100px){
.planner{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:end}
.planner-top{grid-column:1/-1;grid-row:1}
.planner .p-fields{grid-column:1;grid-row:2}
.planner .p-foot{display:contents}
.planner .p-foot .btn{grid-column:2;grid-row:2;min-height:52px;white-space:nowrap}
.planner .p-foot p{grid-column:1/-1;grid-row:3;margin-top:14px}
.planner noscript{grid-column:1/-1}
}
