/* BATCH15.2: content geometry only; colors/fonts/shared chrome remain0.14.4. */
.madar-draft-content { margin-block:0; }
.madar-draft-content > .wp-block-group { margin-block:0; }
.madar-home-about .madar-about-photo img{aspect-ratio:3/2;object-fit:cover;} 
.madar-official-contact-grid p{overflow-wrap:anywhere}.madar-official-photo img{aspect-ratio:1200/533;object-fit:cover}.madar-hero-image img{object-position:50% 50%}.madar-about-photo img{object-position:50% 43%}.madar-official-program-photo img{aspect-ratio:16/9;object-fit:cover}.madar-program-photo img{object-position:50% 45%}.madar-program-card .madar-program-image img[src*="pexels-4266936-"],.madar-official-program-photo img[src*="pexels-4266936-"]{object-position:50% 0%}.madar-official-action a{min-height:48px}.wp-block-navigation__responsive-container-close{min-width:48px;min-height:48px}.wp-block-navigation__responsive-container-open{min-width:48px;min-height:48px}@media(max-width:767px){.madar-official-program-photo img{aspect-ratio:4/3}.madar-official-photo img{aspect-ratio:4/3}}

/* New temporary photos contain no baked badges; retire the old asset-specific crop windows. */
.madar-draft-content .madar-official-program-photo { --retained:1;--photo-left:0%;--photo-ratio:1.777777778; }
.madar-draft-content .madar-official-program-photo img { left:0;inline-size:100%;max-inline-size:100%;object-position:50% 45%; }
.madar-draft-content .madar-official-program-3 .madar-official-program-photo img,
.madar-draft-content .madar-program-card:nth-child(3) .madar-program-image img { object-position:50% 0%; }
.madar-draft-content .madar-official-contact-grid a[href^="mailto:"],
.madar-draft-content a[href^="https://wa.me/"] { direction:ltr;unicode-bidi:isolate; }
.madar-draft-content :is(.madar-card-arrow,.madar-news-all,.madar-about-more) { min-inline-size:48px;min-block-size:48px; }
@media(max-width:767px) { .madar-draft-content .madar-official-program-photo { --photo-ratio:1.333333333; } }

/* Link content stays editable in a Core paragraph; flatten its layout box only. */
.madar-draft-content .madar-action-host { display:contents; }
/* Functional touch-target correction for newly integrated editorial links only. */
.madar-draft-content .madar-official-page a { display:inline-block;min-block-size:48px;max-inline-size:100%;overflow-wrap:anywhere; }
.madar-draft-content .madar-secondary-action a { display:inline-flex;align-items:center;min-block-size:48px; }
/* The approved temporary photos have no baked icons: remove only obsolete source zoom/offset. */
.madar-draft-content .madar-program-card { --madar-photo-retained:1;--madar-photo-left:0%; }
.madar-draft-content .madar-program-card .madar-program-image img { left:0;inline-size:100%;max-inline-size:100%; }
.madar-draft-content .madar-program-card:nth-child(2) .madar-program-image img { object-position:50% 30%; }
.madar-draft-content .madar-program-card:nth-child(4) .madar-program-image img { object-position:50% 60%; }
/* The post editor has editor-styles-wrapper rather than the frontend Post Content wrapper. */
.editor-styles-wrapper .madar-program-card { --madar-photo-retained:1;--madar-photo-left:0%; }
.editor-styles-wrapper .madar-program-card .madar-program-image img { left:0;inline-size:100%;max-inline-size:100%; }
.editor-styles-wrapper .madar-program-card:nth-child(2) .madar-program-image img { object-position:50% 30%; }
.editor-styles-wrapper .madar-program-card:nth-child(3) .madar-program-image img { object-position:50% 0%; }
.editor-styles-wrapper .madar-official-program-photo { --retained:1;--photo-left:0%;--photo-ratio:1.777777778; }
.editor-styles-wrapper .madar-official-program-photo img { left:0;inline-size:100%;max-inline-size:100%;object-position:50% 45%; }
.editor-styles-wrapper .madar-official-program-3 .madar-official-program-photo img { object-position:50% 0%; }
@media(max-width:767px) { .editor-styles-wrapper .madar-official-program-photo { --photo-ratio:1.333333333; } }

/* R1: match the approved frontend community-card focal point in the editor only. */
.editor-styles-wrapper .madar-program-card:nth-child(4) .madar-program-image img { object-position:50% 60%; }
/* Core Image adds inline height:auto in the editor; fill the existing crop frame without changing its ratio. */
.editor-styles-wrapper .madar-program-card .madar-program-image img { block-size:100% !important; }
