/* Box & Grid Pro Posts/Products Slideshow. Shared verbatim by SDK Canvas and frontend. */
/* SDK widget geometry is owned by the Core wrapper. A slideshow with desktop
   slide/content intrinsic width must not make that flex item wider than its
   Page Wrapper/Container at tablet/mobile breakpoints. Keep the frame's own
   authored responsive Width/Max Width target authoritative. This applies in
   Canvas and frontend, whose SDK wrapper markup shares these classes. */
.bg-widget-bg_pro_posts_slideshow{box-sizing:border-box;width:fit-content;max-width:100%;min-width:0}
.bg-widget-bg_pro_posts_slideshow>.bg-pro-posts-slideshow{min-width:0;max-width:100%}
.bg-pro-posts-slideshow{position:relative;width:auto;max-width:100%;min-width:0;overflow:hidden;color:inherit;font-family:inherit;box-sizing:border-box;isolation:isolate}
.bg-pro-posts-slideshow,.bg-pro-posts-slideshow *{box-sizing:border-box}
.bg-pro-posts-slideshow__viewport{overflow:hidden;width:100%;min-width:0;position:relative}
/* Core-parity touch/mouse drag surface; maintain vertical page scrolling.
   Links still click normally unless the gesture resolves as horizontal drag. */
.bg-pro-posts-slideshow[data-bg-pro-slideshow-drag="1"] .bg-pro-posts-slideshow__viewport{
  touch-action:pan-y pinch-zoom;cursor:grab;-webkit-user-select:none;user-select:none;
  -webkit-tap-highlight-color:transparent;overscroll-behavior-x:contain
}
.bg-pro-posts-slideshow[data-bg-pro-slideshow-drag="1"] .bg-pro-posts-slideshow__viewport img{
  -webkit-user-drag:none;user-drag:none
}
.bg-pro-posts-slideshow.is-bg-pro-slideshow-dragging .bg-pro-posts-slideshow__viewport{cursor:grabbing}
.bg-pro-posts-slideshow[data-bg-pro-slideshow-drag="1"] .bg-pro-posts-slideshow__content :is(a,button){cursor:pointer}
.bg-pro-posts-slideshow__slides{display:flex;align-items:stretch;gap:0;transition:transform var(--bg-pro-slideshow-transition,350ms) ease;will-change:transform}
.bg-pro-posts-slideshow__slide{flex:0 0 100%;min-width:0;position:relative;overflow:hidden;background:transparent;color:inherit;font-family:inherit}
.bg-pro-posts-slideshow__image{position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;aspect-ratio:16 / 9;overflow:hidden;line-height:0}
/* Grid placement positions a manually sized image within the existing frame.
   Relative left/top offsets nudge its painted position without changing the
   frame, slideshow dimensions or text layout. The frame still clips overflow. */
.bg-pro-posts-slideshow__image img{display:block;position:relative;place-self:center center;left:0;top:0;width:100%;height:100%;object-fit:cover;max-width:none;border:0}
:where(.bg-pro-posts-slideshow[data-image-fit="contain"]) .bg-pro-posts-slideshow__image img{object-fit:contain}
:where(.bg-pro-posts-slideshow[data-image-ratio="4-3"]) .bg-pro-posts-slideshow__image{aspect-ratio:4/3}
:where(.bg-pro-posts-slideshow[data-image-ratio="1-1"]) .bg-pro-posts-slideshow__image{aspect-ratio:1/1}
:where(.bg-pro-posts-slideshow[data-image-ratio="21-9"]) .bg-pro-posts-slideshow__image{aspect-ratio:21/9}
:where(.bg-pro-posts-slideshow[data-image-ratio="auto"]) .bg-pro-posts-slideshow__image{aspect-ratio:auto}
:where(.bg-pro-posts-slideshow[data-image-ratio="auto"]) .bg-pro-posts-slideshow__image img{width:100%;height:auto}
.bg-pro-posts-slideshow__content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:stretch;padding:16px;gap:8px;min-width:0;color:inherit;font-family:inherit}
.bg-pro-posts-slideshow__content h3{margin:0;padding:0;line-height:inherit;color:inherit;font-family:inherit;font-weight:inherit}
/* A themed a:link/:visited or heading selector must not override configured SDK target typography.
   Links inherit the Title target's resolved Color Way, family, weight and leading. */
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content h3 a,
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content h3 a:link,
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content h3 a:visited,
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content h3 a:hover,
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content h3 a:focus{color:inherit!important;font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important;text-decoration:inherit}
.bg-pro-posts-slideshow__content time{display:block;font-size:.85em;opacity:.8;color:inherit}
.bg-pro-posts-slideshow__author{display:block;font-size:.85em;color:inherit;line-height:inherit}
.bg-pro-posts-slideshow__content p{margin:0;font-family:inherit;color:inherit}
/* Zero Content Element Gap means no extra spacing from the content stack.
   Prevent theme h3/p margins from reappearing on the live site. */
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__content :is(h3,p,.bg-pro-posts-slideshow__author,.bg-pro-posts-slideshow__price,.bg-pro-posts-slideshow__cta){margin:0}

.bg-pro-posts-slideshow__price{margin:0;color:inherit;font-family:inherit}
.bg-pro-posts-slideshow__price :is(span,small,b,del,ins){color:inherit;font-family:inherit}

/* Each slide's post/product link. Button box, state colors and responsive
   dimensions are public SDK targets shared by the Canvas and live output. */
.bg-pro-posts-slideshow :where(a.bg-pro-posts-slideshow__cta){position:relative;isolation:isolate;display:inline-grid;grid-template-columns:minmax(0,auto);align-items:center;justify-content:center;max-width:100%;align-self:flex-start;margin:0;padding:var(--bg-pro-cta-padding,12px);border:0 solid transparent;border-radius:4px;background-color:#ff5333;color:#fff;text-align:center;text-decoration:none;font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;letter-spacing:normal;text-transform:none;cursor:pointer;transition:opacity .18s ease}
.bg-pro-posts-slideshow__cta-label,.bg-pro-posts-slideshow__cta-hover-label,.bg-pro-posts-slideshow__cta-pressed-label{grid-area:1/1;position:relative;z-index:2;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.bg-pro-posts-slideshow__cta-hover-label,.bg-pro-posts-slideshow__cta-pressed-label{opacity:0;z-index:3}
.bg-pro-posts-slideshow__cta-pressed-label{z-index:4}
.bg-pro-posts-slideshow__cta-hover-bg,.bg-pro-posts-slideshow__cta-pressed-bg{position:absolute;inset:0;border-radius:inherit;opacity:0;pointer-events:none;z-index:1}
:where(.bg-pro-posts-slideshow__cta-hover-bg,.bg-pro-posts-slideshow__cta-pressed-bg){background-color:transparent}
.bg-pro-posts-slideshow__cta:is(:hover,:focus-visible) .bg-pro-posts-slideshow__cta-hover-bg,
.bg-pro-posts-slideshow__cta:is(:hover,:focus-visible) .bg-pro-posts-slideshow__cta-hover-label{opacity:1}
.bg-pro-posts-slideshow__cta:active .bg-pro-posts-slideshow__cta-pressed-bg,
.bg-pro-posts-slideshow__cta:active .bg-pro-posts-slideshow__cta-pressed-label{opacity:1}
.bg-pro-posts-slideshow__cta:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.bg-pro-posts-slideshow[data-button-alignment="center"] .bg-pro-posts-slideshow__cta{align-self:center}
.bg-pro-posts-slideshow[data-button-alignment="end"] .bg-pro-posts-slideshow__cta{align-self:flex-end}
.bg-pro-posts-slideshow[data-button-alignment="stretch"] .bg-pro-posts-slideshow__cta{align-self:stretch}
.bg-pro-posts-slideshow[data-content-align="start"] .bg-pro-posts-slideshow__content{justify-content:flex-start}
.bg-pro-posts-slideshow[data-content-align="center"] .bg-pro-posts-slideshow__content{justify-content:center}
.bg-pro-posts-slideshow[data-content-align="end"] .bg-pro-posts-slideshow__content{justify-content:flex-end}
/* The overlay's 420px is only a visual default. Core SDK's responsive
   Slide Minimum Height target must override it on live pages, just as the
   same target does in Canvas (including smaller heights and zero). */
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__slide{display:flex;flex-direction:column}
:where(.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__slide){min-height:420px}
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__image{position:absolute;inset:0;aspect-ratio:auto;height:100%;z-index:0}
/* Overlay image shares the frame's four independent, responsive corner values.
   The frame encloses pagination, while the image ends at the slides viewport;
   clipping only the frame therefore cannot round the IMAGE's lower corners.
   Inherit through each layer rather than restoring an independent/obsolete
   Image Border Radius setting. In stacked mode the image retains its own
   conditional SDK radius target. */
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__viewport,
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__slides,
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__slide,
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__image,
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__overlay{border-radius:inherit!important}
:where(.bg-pro-posts-slideshow[data-layout="overlay"]) .bg-pro-posts-slideshow__image img{height:100%}
.bg-pro-posts-slideshow__overlay{position:absolute;inset:0;z-index:1;pointer-events:none;background:#000;opacity:var(--bg-pro-slideshow-overlay-opacity,.45)}
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__content{flex:1;min-height:inherit}
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__content{color:#fff}
.bg-pro-posts-slideshow[data-layout="overlay"] .bg-pro-posts-slideshow__content h3{color:inherit}
.bg-pro-posts-slideshow[data-transition="fade"] .bg-pro-posts-slideshow__slides{display:grid;gap:0!important;transform:none!important;will-change:auto}
.bg-pro-posts-slideshow[data-transition="fade"] .bg-pro-posts-slideshow__slide{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--bg-pro-slideshow-transition,350ms) ease,visibility var(--bg-pro-slideshow-transition,350ms) ease}
.bg-pro-posts-slideshow[data-transition="fade"] .bg-pro-posts-slideshow__slide[aria-hidden="false"]{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.bg-pro-posts-slideshow[data-transition="none"] .bg-pro-posts-slideshow__slides{transition:none!important}
.bg-pro-posts-slideshow__slide[aria-hidden="true"] a{pointer-events:none}
.bg-pro-posts-slideshow__arrows{position:absolute;left:var(--bg-pro-navigation-inset,10px);right:var(--bg-pro-navigation-inset,10px);top:50%;transform:translateY(-50%);z-index:6;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.bg-pro-posts-slideshow[data-arrows-placement="top"] .bg-pro-posts-slideshow__arrows{top:var(--bg-pro-navigation-vertical-inset,10px);transform:none}
.bg-pro-posts-slideshow[data-arrows-placement="bottom"] .bg-pro-posts-slideshow__arrows{top:auto;bottom:var(--bg-pro-navigation-vertical-inset,10px);transform:none}
/* State layers are SDK target elements, not raw hex-only CSS variables.
   Core emits the same target rules for Canvas and live; their computed colors
   are revealed on pointer hover, keyboard focus and pressed state. */
.bg-pro-posts-slideshow__arrows button{position:relative;isolation:isolate;pointer-events:auto;border:0;border-radius:999px;background:#000;color:#fff;width:38px;height:38px;padding:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:22px;line-height:1;transition:opacity .18s ease}
.bg-pro-posts-slideshow__arrows button :is(.bg-pro-posts-slideshow__arrow-hover-bg,.bg-pro-posts-slideshow__arrow-pressed-bg){position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .18s ease}
:where(.bg-pro-posts-slideshow__arrow-hover-bg){background-color:var(--bg-pro-arrow-hover-bg,transparent)}
:where(.bg-pro-posts-slideshow__arrow-pressed-bg){background-color:var(--bg-pro-arrow-active-bg,var(--bg-pro-arrow-hover-bg,transparent))}
.bg-pro-posts-slideshow__arrow-icon,.bg-pro-posts-slideshow__arrow-hover-icon,.bg-pro-posts-slideshow__arrow-pressed-icon{display:flex;align-items:center;justify-content:center;pointer-events:none}
/* Theme link/button styles frequently set colors on descendant spans. Core's
   compiled SDK target selectors are more specific and remain authoritative. */
/* SDK target color rules must be authoritative in BOTH editor and generated live CSS.
   The old compound selectors below had greater specificity than Core's public
   [data-bg-sdk-target] selectors and could override saved Color Ways on live.
   Use only zero-specificity visual fallbacks on state elements. The CMS owns
   authored color/background, including alpha and responsive values. */
:where(.bg-pro-posts-slideshow__arrow-icon){color:inherit}
:where(.bg-pro-posts-slideshow__arrow-hover-icon){color:var(--bg-pro-arrow-hover-color,inherit)}
:where(.bg-pro-posts-slideshow__arrow-pressed-icon){color:var(--bg-pro-arrow-active-color,var(--bg-pro-arrow-hover-color,inherit))}
.bg-pro-posts-slideshow__arrow-icon{position:relative;z-index:2}
.bg-pro-posts-slideshow__arrow-hover-icon,.bg-pro-posts-slideshow__arrow-pressed-icon{position:absolute;inset:0;opacity:0;z-index:3;transition:opacity .18s ease}
.bg-pro-posts-slideshow__arrow-pressed-icon{z-index:4}
.bg-pro-posts-slideshow__arrows button:is(:hover,:focus-visible):not(:disabled) :is(.bg-pro-posts-slideshow__arrow-hover-bg,.bg-pro-posts-slideshow__arrow-hover-icon){opacity:1}
.bg-pro-posts-slideshow__arrows button:active:not(:disabled) :is(.bg-pro-posts-slideshow__arrow-pressed-bg,.bg-pro-posts-slideshow__arrow-pressed-icon){opacity:1}
.bg-pro-posts-slideshow__arrows button:focus-visible,.bg-pro-posts-slideshow__dots button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* Live-site themes may impose button:hover and SVG fill rules. Only the
   visibility of Pro's state layers is forced; colors remain SDK-controlled.
   JS also supplies is-hovered for browsers that interrupt CSS hover during
   dynamic carousel transitions, while :hover/:focus-visible are CSS fallbacks. */
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__arrows button:is(:hover,:focus-visible,.is-hovered):not(:disabled) > :is(.bg-pro-posts-slideshow__arrow-hover-bg,.bg-pro-posts-slideshow__arrow-hover-icon){opacity:1!important;visibility:visible!important}
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__arrows button:is(:active,.is-pressed):not(:disabled) > :is(.bg-pro-posts-slideshow__arrow-pressed-bg,.bg-pro-posts-slideshow__arrow-pressed-icon){opacity:1!important;visibility:visible!important}
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__arrows button .bg-pro-posts-slideshow__fa{color:inherit!important;fill:currentColor!important}
.bg-pro-posts-slideshow .bg-pro-posts-slideshow__arrows button .bg-pro-posts-slideshow__fa path{fill:currentColor!important}
.bg-pro-posts-slideshow__arrows button:disabled{opacity:.3;cursor:default}
.bg-pro-posts-slideshow__arrows button .bg-pro-posts-slideshow__fa{display:block;width:1em;height:1em;flex-shrink:0;fill:currentColor}
/* Shape is a fallback, not a higher-priority override of Navigation Button
   Radius: the user-authored SDK target wins on both Canvas and live. */
:where(.bg-pro-posts-slideshow[data-arrows-shape="square"]) .bg-pro-posts-slideshow__arrows button{border-radius:2px}
.bg-pro-posts-slideshow[data-arrows-shape="bare"] .bg-pro-posts-slideshow__arrows button{background:transparent!important;border:0!important}
.bg-pro-posts-slideshow__dots{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;gap:9px;margin:12px 0;min-height:12px}
.bg-pro-posts-slideshow[data-pagination-alignment="start"] .bg-pro-posts-slideshow__dots{justify-content:flex-start}
.bg-pro-posts-slideshow[data-pagination-alignment="end"] .bg-pro-posts-slideshow__dots{justify-content:flex-end}
.bg-pro-posts-slideshow[data-pagination-placement="inside_bottom"] .bg-pro-posts-slideshow__dots,
.bg-pro-posts-slideshow[data-pagination-placement="inside_top"] .bg-pro-posts-slideshow__dots{position:absolute;left:var(--bg-pro-pagination-inset,12px);right:var(--bg-pro-pagination-inset,12px);margin:0}
.bg-pro-posts-slideshow[data-pagination-placement="inside_bottom"] .bg-pro-posts-slideshow__dots{bottom:var(--bg-pro-pagination-inset,12px)}
.bg-pro-posts-slideshow[data-pagination-placement="inside_top"] .bg-pro-posts-slideshow__dots{top:var(--bg-pro-pagination-inset,12px)}
/* Pagination uses separate, real SDK targets for the three states. This avoids
   theme :hover button rules and resolves saved Color Ways in Canvas and live CSS. */
.bg-pro-posts-slideshow__dots button{position:relative;isolation:isolate;flex-shrink:0;width:9px;height:9px;padding:0;overflow:hidden;border:0;border-radius:999px;background:#999;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;line-height:1}
.bg-pro-posts-slideshow__dots button .bg-pro-posts-slideshow__pagination-active-fill,
.bg-pro-posts-slideshow__dots button .bg-pro-posts-slideshow__pagination-hover-fill{position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.bg-pro-posts-slideshow__pagination-active-fill{z-index:1;opacity:0;background-color:#ff5333}
.bg-pro-posts-slideshow__dots button[aria-current="true"] .bg-pro-posts-slideshow__pagination-active-fill{opacity:1}
.bg-pro-posts-slideshow__pagination-hover-fill{z-index:2;opacity:0;background-color:var(--bg-pro-legacy-pagination-hover,#555555)}
.bg-pro-posts-slideshow__dots button:hover .bg-pro-posts-slideshow__pagination-hover-fill{opacity:1}
.bg-pro-posts-slideshow__pagination-number{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1;color:inherit;pointer-events:none}
.bg-pro-posts-slideshow[data-pagination-style="dots"] .bg-pro-posts-slideshow__pagination-number,
.bg-pro-posts-slideshow[data-pagination-style="bars"] .bg-pro-posts-slideshow__pagination-number{font-size:0}
/* Pagination style presets have lower specificity than Core's per-widget
   SDK Width, Height, and Radius targets, including responsive overrides. */
:where(.bg-pro-posts-slideshow[data-pagination-style="bars"]) .bg-pro-posts-slideshow__dots button{width:32px;height:5px;border-radius:2px}
:where(.bg-pro-posts-slideshow[data-pagination-style="numbers"]) .bg-pro-posts-slideshow__dots button{width:30px;height:30px;border-radius:4px}
.bg-pro-posts-slideshow[data-pagination-style="numbers"] .bg-pro-posts-slideshow__pagination-number{font-size:12px}
/* Active bar fills left-to-right over precisely the autoplay interval.
   CSS transform animation (rather than per-frame JS updates) is compositor-friendly.
   Pausing and resuming also pauses and resumes the advance timer. */
@keyframes bg-pro-slideshow-fill-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.bg-pro-posts-slideshow[data-pagination-style="bars"][data-autoplay="yes"] .bg-pro-posts-slideshow__dots button.is-progress-running[aria-current="true"] .bg-pro-posts-slideshow__pagination-active-fill{
  transform-origin:left center;
  animation:bg-pro-slideshow-fill-bar var(--bg-pro-slideshow-interval,5s) linear both;
  animation-play-state:var(--bg-pro-progress-play-state,running)
}
.bg-pro-posts-slideshow__arrows button:focus-visible,.bg-pro-posts-slideshow__dots button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* The state layers intentionally avoid !important and leave compiled SDK
   styles authoritative, including saved color-ways and alpha channels. */
@media(prefers-reduced-motion:reduce){.bg-pro-posts-slideshow__pagination-active-fill{animation:none!important;transform:none!important}}
.bg-pro-posts-slideshow__empty{padding:16px}
@media(prefers-reduced-motion:reduce){.bg-pro-posts-slideshow__slides,.bg-pro-posts-slideshow__slide,.bg-pro-posts-slideshow__arrows button{transition:none!important}}

/* Optional per-slide ARIA description: present to assistive technology, not visually. */
.bg-pro-posts-slideshow__sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Deprecated per-slide radius never drives the visual surface. Stacked
   slides are square inside the frame unless their standalone image target is
   explicitly styled. Overlay slides inherit the current four-corner frame
   setting via the declaration above. */
.bg-pro-posts-slideshow[data-layout="stacked"] .bg-pro-posts-slideshow__slide{border-radius:0!important}

/* Rich price markup (for example WooCommerce prices) retains semantic emphasis. */
.bg-pro-posts-slideshow__price :is(strong,b):not([style*="font-weight"]){font-weight:700!important;font-synthesis:weight;}
