.ma-editorial-gallery{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;margin:1.5em 0}.ma-editorial-gallery figure{margin:0;max-width:100%;min-width:0}.ma-editorial-gallery .ma-result-image{display:block}.ma-editorial-gallery img{display:block;width:auto!important;height:180px!important;max-width:100%;object-fit:contain;object-position:left center}.ma-editorial-gallery figcaption{font-size:.85em;max-width:240px;margin-top:6px}.ma-editorial-single img{height:auto!important;max-height:50vh;max-width:100%}.ma-editorial-single figcaption{max-width:none}.ma-editorial-gallery .ma-result-placeholder{min-width:120px;padding:1em}
.wp-block-menaka-archive-objects .ma-editorial-gallery img{height:110px!important;width:auto!important;max-width:180px;object-fit:contain}

/* Editorial frontend only: equal-height image rows within the article column. */
.ma-editorial-gallery.ma-editorial-frontend{width:100%;display:grid;grid-template-columns:repeat(var(--ma-gallery-columns,2),minmax(0,1fr));gap:18px;align-items:start}
.ma-editorial-frontend figure{width:100%;max-width:none;text-align:center}
.ma-editorial-frontend .ma-result-image{width:100%;display:block}
.ma-editorial-frontend img{width:100%!important;height:clamp(120px,24vw,240px)!important;max-width:100%;object-fit:contain;object-position:center}
.ma-editorial-frontend figcaption{max-width:none}
.ma-editorial-gallery.ma-editorial-frontend.ma-editorial-single{display:flex;justify-content:center}
.ma-editorial-frontend.ma-editorial-single figure{width:50%;max-width:50%}
.ma-editorial-frontend.ma-editorial-single img{width:100%!important;height:auto!important;max-height:none}
@media(max-width:480px){.ma-editorial-gallery.ma-editorial-frontend:not(.ma-editorial-single){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* Proportional rows: flex basis zero distributes usable width by image ratio. */
.ma-editorial-gallery.ma-editorial-frontend:not(.ma-editorial-single){display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
.ma-editorial-gallery.ma-editorial-frontend:not(.ma-editorial-single) figure{flex:var(--ma-ratio,1) 1 0%;width:auto;min-width:0;max-width:none}
.ma-editorial-gallery.ma-editorial-frontend:not(.ma-editorial-single) img{width:100%!important;height:auto!important;max-height:none!important;max-width:100%!important}
.ma-editorial-gallery.ma-editorial-frontend.ma-editorial-single figure{width:75%;max-width:75%}
.ma-editorial-gallery.ma-editorial-frontend.ma-editorial-single img{width:100%!important;height:auto!important;max-height:none!important}
.ma-editorial-gallery.ma-editorial-frontend:not(.ma-editorial-single){display:block}
.ma-editorial-frontend .ma-editorial-row{display:flex;gap:12px;align-items:flex-start;width:100%;margin-bottom:16px}
.ma-editorial-frontend.ma-editorial-single .ma-editorial-row{justify-content:center;margin-bottom:0}
.ma-editorial-frontend:not(.ma-editorial-single) .ma-editorial-row:has(figure:only-child){justify-content:center}
.ma-editorial-frontend:not(.ma-editorial-single) .ma-editorial-row figure:only-child{flex:0 1 75%;max-width:75%}

.ma-object-caption{display:block;font-size:12px;line-height:1.35;font-weight:400;color:#666;margin-top:3px;overflow-wrap:anywhere;}
.ma-editorial-gallery .ma-editorial-custom-caption{display:block;overflow-wrap:anywhere}
