.bbk-rich-editor { --bbk-editor-bg:#101010; --bbk-editor-text:#F2F2F2; --bbk-editor-toolbar-bg:#191919; --bbk-editor-toolbar-text:#E6E6E6; --bbk-editor-border:#353535; --bbk-editor-radius:8px; color:var(--bbk-editor-text); }
.bbk-rich-editor .wp-editor-tools { justify-content:flex-start; gap:12px; margin:8px 0; }
.bbk-rich-editor .wp-editor-container { border:1px solid var(--bbk-editor-border); border-radius:var(--bbk-editor-radius); overflow:hidden; }
.bbk-rich-editor :is(.mce-panel,.mce-toolbar-grp,.mce-statusbar,.mce-container-body) { background:var(--bbk-editor-toolbar-bg); border-color:var(--bbk-editor-border); }
.bbk-rich-editor .mce-btn { background:transparent; border-color:transparent; }
.bbk-rich-editor :is(.mce-container,.mce-btn button,.mce-txt,.mce-path-item) { font-family:inherit; }
.bbk-rich-editor .mce-btn button,.bbk-rich-editor .mce-ico,.bbk-rich-editor .mce-txt,.bbk-rich-editor .mce-path-item { color:var(--bbk-editor-toolbar-text); }
.bbk-rich-editor .mce-btn button { min-height:40px; }
.bbk-rich-editor .mce-btn:is(:hover,.mce-active) { background:#353535; border-color:#555; }
.bbk-rich-editor .mce-caret { border-top-color:var(--bbk-editor-toolbar-text); }
.bbk-rich-editor .wp-editor-area { background:var(--bbk-editor-bg); color:var(--bbk-editor-text); }
.bbk-rich-editor .wp-editor-area:focus { outline:2px solid #777; outline-offset:2px; }
.bbk-editor-help { font:inherit; font-size:12px; line-height:1.6; color:#B8B8B8; margin:0 0 12px; }
.bbk-rich-editor .insert-media { background:#303030; color:#FFFFFF; border:1px solid #555; border-radius:6px; padding:6px 14px; min-height:40px; font:inherit; }
.bbk-rich-editor .insert-media:hover { background:#414141; color:#FFFFFF; }
.bbk-editor-page .mce-floatpanel { background:#191919; border-color:#353535; }
.bbk-editor-page .mce-floatpanel :is(.mce-menu-item,.mce-container-body) { background:#191919; color:#E6E6E6; }
.bbk-editor-page .mce-floatpanel :is(.mce-text,.mce-txt,.mce-ico) { color:#E6E6E6; }
.bbk-editor-page .mce-floatpanel .mce-menu-item:is(:hover,.mce-selected) { background:#353535; }
.bbk-stacked-content :is(img,.wp-caption,figure) { float:none; max-width:100%; height:auto; }
.bbk-stacked-content img { display:block; margin-block:var(--bbk-content-image-gap,24px); }
.bbk-stacked-content p { margin-bottom:var(--bbk-content-paragraph-gap,18px); }
.bbk-stacked-content :is(.gallery,.wp-block-gallery) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:var(--bbk-content-image-gap,24px); }
.bbk-stacked-content .gallery .gallery-item,.bbk-stacked-content .wp-block-gallery .wp-block-image { float:none; width:100%; max-width:100%; margin:0; }
.bbk-stacked-content .gallery img { height:auto; object-fit:contain; }
@media(max-width:767px) { .bbk-rich-editor .mce-btn button { min-height:44px; } .bbk-rich-editor .mce-toolbar-grp { overflow-x:auto; } }

/* Only the photo area changes; Loop Grid's own column settings remain intact. */
.bbk-photo-gallery { display:grid; grid-template-columns:repeat(var(--bbk-photo-columns,2),minmax(0,1fr)); gap:24px; width:100%; align-items:start; }
.bbk-photo-gallery .bbk-photo-cell { min-width:0; }
.bbk-photo-gallery .bbk-photo-cell a { display:block; }
.elementor-widget-theme-post-featured-image .bbk-photo-gallery .bbk-photo-cell img.bbk-gallery-photo { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; }
@media(max-width:767px) { .bbk-photo-gallery { --bbk-photo-columns:1; } .bbk-stacked-content :is(.gallery,.wp-block-gallery) { grid-template-columns:minmax(0,1fr); } }
