/* Final readable caption guard for the integrated frame module. */
html body .wciwif-wrap figure.wif-frame{position:relative!important;overflow:visible!important;unicode-bidi:isolate!important;isolation:isolate!important;mix-blend-mode:normal!important;filter:none!important;-webkit-filter:none!important;}
html body .wciwif-wrap figure.wif-frame figcaption.wif-caption,html body .wciwif-wrap .wif-frame .wif-caption{position:absolute!important;z-index:2147483000!important;left:16px!important;right:auto!important;bottom:16px!important;top:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:auto!important;min-width:0!important;max-width:calc(100% - 32px)!important;height:auto!important;margin:0!important;padding:9px 14px!important;border-radius:999px!important;background:linear-gradient(135deg,rgba(2,6,23,.96),rgba(15,23,42,.93))!important;background-color:#020617!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 14px rgba(0,0,0,.72)!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:0 12px 28px rgba(0,0,0,.38),0 0 0 1px rgba(255,255,255,.07) inset!important;backdrop-filter:blur(8px) saturate(135%)!important;-webkit-backdrop-filter:blur(8px) saturate(135%)!important;font-weight:900!important;line-height:1.55!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;direction:rtl!important;text-align:center!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:none!important;mix-blend-mode:normal!important;filter:none!important;-webkit-filter:none!important;text-indent:0!important;}
html body .wciwif-wrap .wif-frame.overlay-hover .wif-caption{opacity:0!important;transform:translateY(8px)!important;}
html body .wciwif-wrap .wif-frame.overlay-hover:hover .wif-caption,html body .wciwif-wrap .wif-frame.overlay-hover:focus-within .wif-caption{opacity:1!important;transform:none!important;}
html body .wciwif-wrap .wif-frame.overlay-off .wif-caption{display:none!important;}
html body .wciwif-wrap .wif-frame.overlay-above .wif-caption{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;transform:none!important;order:-1!important;margin:0 auto 10px!important;max-width:100%!important;}
@media(max-width:781px){html body .wciwif-wrap figure.wif-frame figcaption.wif-caption,html body .wciwif-wrap .wif-frame .wif-caption{left:10px!important;bottom:10px!important;max-width:calc(100% - 20px)!important;padding:7px 11px!important;font-size:12px!important;}}

/* Admin preview helpers */
.wci-frame-preview-box{border:1px solid #dbe3ef;border-radius:16px;background:#fff;padding:14px;margin-top:12px;max-width:860px;box-shadow:0 10px 28px rgba(15,23,42,.07)}
.wci-frame-preview-title{font-weight:900;margin:0 0 10px;color:#0f172a}
.wci-frame-preview-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr);gap:14px;align-items:start}
.wci-mini-gallery-preview{border:1px solid rgba(15,23,42,.10);border-radius:16px;overflow:hidden;background:#f8fafc;direction:rtl}
.wci-mini-gallery-preview .wci-mini-head{background:var(--wci-theme-dark,#111827);color:#fff;font-weight:900;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}
.wci-mini-gallery-preview .wci-mini-filters{background:#fff;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wci-mini-gallery-preview .wci-mini-filter{border:1px solid rgba(15,23,42,.12);border-radius:999px;padding:8px 10px;font-size:12px;font-weight:800;background:#fff;color:#0f172a;display:flex;justify-content:space-between;gap:8px}
.wci-mini-gallery-preview .wci-mini-filter.active{background:var(--wci-theme-main,#111827);border-color:var(--wci-theme-main,#111827);color:#fff}
.wci-mini-gallery-preview .wci-mini-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:#e5e7eb;color:#0f172a;font-size:11px;direction:ltr}
.wci-mini-gallery-preview .active .wci-mini-count{background:#fff;color:var(--wci-theme-main,#111827)}
@media(max-width:782px){.wci-frame-preview-grid{grid-template-columns:1fr}}


/* ==========================================================
   WCI 1.8.22 - frames only for post/page content, never product gallery
   ========================================================== */
html body .wci-album-outer .wciwif-wrap,
html body .wci-album-box .wciwif-wrap,
html body .wci-showroom-box .wciwif-wrap,
html body .woocommerce-product-gallery .wciwif-wrap,
html body .product-gallery .wciwif-wrap{
  display:contents !important;
}
html body .wci-album-outer .wif-frame,
html body .wci-album-box .wif-frame,
html body .wci-showroom-box .wif-frame,
html body .woocommerce-product-gallery .wif-frame,
html body .product-gallery .wif-frame{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  transform:none !important;
}
html body .wci-album-outer .wif-caption,
html body .wci-album-box .wif-caption,
html body .wci-showroom-box .wif-caption,
html body .woocommerce-product-gallery .wif-caption,
html body .product-gallery .wif-caption{
  display:none !important;
}
