/* Site Builder effects runtime — companion stylesheet for sb-effects.js.
   Elements are only hidden once JS has proven it is running (html.sb-js),
   so the page is never blank if the script fails to load. */

html.sb-js [data-sb-anim]:not(.sb-in) {
  opacity: 0;
}
html.sb-js [data-sb-anim].sb-in {
  opacity: 1;
  animation-duration: var(--sb-duration, 0.9s);
  animation-delay: var(--sb-delay, 0s);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
html[data-sb-editing] [data-sb-anim],
html.sb-reduced-motion [data-sb-anim] {
  opacity: 1 !important;
  animation: none !important;
}

/* ---------- entrance keyframes (Animate.css compatible names) ---------- */
.sb-in[data-sb-anim="fadeIn"] { animation-name: sbFadeIn; }
.sb-in[data-sb-anim="fadeInUp"] { animation-name: sbFadeInUp; }
.sb-in[data-sb-anim="fadeInDown"] { animation-name: sbFadeInDown; }
.sb-in[data-sb-anim="fadeInLeft"] { animation-name: sbFadeInLeft; }
.sb-in[data-sb-anim="fadeInRight"] { animation-name: sbFadeInRight; }
.sb-in[data-sb-anim="fadeInUpBig"] { animation-name: sbFadeInUpBig; }
.sb-in[data-sb-anim="fadeInDownBig"] { animation-name: sbFadeInDownBig; }
.sb-in[data-sb-anim="fadeInLeftBig"] { animation-name: sbFadeInLeftBig; }
.sb-in[data-sb-anim="fadeInRightBig"] { animation-name: sbFadeInRightBig; }
.sb-in[data-sb-anim="zoomIn"] { animation-name: sbZoomIn; }
.sb-in[data-sb-anim="zoomInUp"] { animation-name: sbZoomInUp; }
.sb-in[data-sb-anim="zoomInDown"] { animation-name: sbZoomInDown; }
.sb-in[data-sb-anim="zoomInLeft"] { animation-name: sbZoomInLeft; }
.sb-in[data-sb-anim="zoomInRight"] { animation-name: sbZoomInRight; }
.sb-in[data-sb-anim="zoomOut"] { animation-name: sbZoomOut; }
.sb-in[data-sb-anim="slideInUp"] { animation-name: sbSlideInUp; }
.sb-in[data-sb-anim="slideInDown"] { animation-name: sbSlideInDown; }
.sb-in[data-sb-anim="slideInLeft"] { animation-name: sbSlideInLeft; }
.sb-in[data-sb-anim="slideInRight"] { animation-name: sbSlideInRight; }
.sb-in[data-sb-anim="bounceIn"] { animation-name: sbBounceIn; animation-duration: var(--sb-duration, 1s); }
.sb-in[data-sb-anim="bounceInUp"] { animation-name: sbBounceInUp; }
.sb-in[data-sb-anim="bounceInDown"] { animation-name: sbBounceInDown; }
.sb-in[data-sb-anim="bounceInLeft"] { animation-name: sbBounceInLeft; }
.sb-in[data-sb-anim="bounceInRight"] { animation-name: sbBounceInRight; }
.sb-in[data-sb-anim="flipInX"] { animation-name: sbFlipInX; backface-visibility: visible !important; }
.sb-in[data-sb-anim="flipInY"] { animation-name: sbFlipInY; backface-visibility: visible !important; }
.sb-in[data-sb-anim="rotateIn"] { animation-name: sbRotateIn; }
.sb-in[data-sb-anim="rotateInDownLeft"] { animation-name: sbRotateInDownLeft; transform-origin: left bottom; }
.sb-in[data-sb-anim="rotateInDownRight"] { animation-name: sbRotateInDownRight; transform-origin: right bottom; }
.sb-in[data-sb-anim="rotateInUpLeft"] { animation-name: sbRotateInUpLeft; transform-origin: left bottom; }
.sb-in[data-sb-anim="rotateInUpRight"] { animation-name: sbRotateInUpRight; transform-origin: right bottom; }
.sb-in[data-sb-anim="lightSpeedInRight"] { animation-name: sbLightSpeedInRight; animation-timing-function: ease-out; }
.sb-in[data-sb-anim="lightSpeedInLeft"] { animation-name: sbLightSpeedInLeft; animation-timing-function: ease-out; }
.sb-in[data-sb-anim="rollIn"] { animation-name: sbRollIn; }
.sb-in[data-sb-anim="bounce"] { animation-name: sbBounce; transform-origin: center bottom; }
.sb-in[data-sb-anim="pulse"] { animation-name: sbPulse; }
.sb-in[data-sb-anim="flash"] { animation-name: sbFlash; }
.sb-in[data-sb-anim="rubberBand"] { animation-name: sbRubberBand; }
.sb-in[data-sb-anim="shake"] { animation-name: sbShake; }
.sb-in[data-sb-anim="swing"] { animation-name: sbSwing; transform-origin: top center; }
.sb-in[data-sb-anim="tada"] { animation-name: sbTada; }
.sb-in[data-sb-anim="wobble"] { animation-name: sbWobble; }
.sb-in[data-sb-anim="jello"] { animation-name: sbJello; transform-origin: center; }
.sb-in[data-sb-anim="heartBeat"] { animation-name: sbHeartBeat; animation-timing-function: ease-in-out; }

@keyframes sbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sbFadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInLeft { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInRight { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInUpBig { from { opacity: 0; transform: translate3d(0, 100vh, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInDownBig { from { opacity: 0; transform: translate3d(0, -100vh, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInLeftBig { from { opacity: 0; transform: translate3d(-100vw, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sbFadeInRightBig { from { opacity: 0; transform: translate3d(100vw, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sbZoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } to { transform: none; } }
@keyframes sbZoomInUp { from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 300px, 0); } 60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0); } to { transform: none; } }
@keyframes sbZoomInDown { from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -300px, 0); } 60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 20px, 0); } to { transform: none; } }
@keyframes sbZoomInLeft { from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(-300px, 0, 0); } 60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0); } to { transform: none; } }
@keyframes sbZoomInRight { from { opacity: 0; transform: scale3d(0.1, 0.1, 0.1) translate3d(300px, 0, 0); } 60% { opacity: 1; transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0); } to { transform: none; } }
@keyframes sbZoomOut { from { opacity: 0; transform: scale3d(1.3, 1.3, 1.3); } to { opacity: 1; transform: none; } }
@keyframes sbSlideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: none; } }
@keyframes sbSlideInDown { from { transform: translate3d(0, -100%, 0); visibility: visible; } to { transform: none; } }
@keyframes sbSlideInLeft { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes sbSlideInRight { from { transform: translate3d(100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes sbBounceIn { from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 20% { transform: scale3d(1.1, 1.1, 1.1); } 40% { transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); } 80% { transform: scale3d(0.97, 0.97, 0.97); } to { opacity: 1; transform: none; } }
@keyframes sbBounceInUp { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; transform: translate3d(0, 200px, 0); } 60% { opacity: 1; transform: translate3d(0, -20px, 0); } 75% { transform: translate3d(0, 10px, 0); } 90% { transform: translate3d(0, -5px, 0); } to { transform: none; } }
@keyframes sbBounceInDown { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; transform: translate3d(0, -200px, 0); } 60% { opacity: 1; transform: translate3d(0, 25px, 0); } 75% { transform: translate3d(0, -10px, 0); } 90% { transform: translate3d(0, 5px, 0); } to { transform: none; } }
@keyframes sbBounceInLeft { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; transform: translate3d(-200px, 0, 0); } 60% { opacity: 1; transform: translate3d(25px, 0, 0); } 75% { transform: translate3d(-10px, 0, 0); } 90% { transform: translate3d(5px, 0, 0); } to { transform: none; } }
@keyframes sbBounceInRight { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; transform: translate3d(200px, 0, 0); } 60% { opacity: 1; transform: translate3d(-25px, 0, 0); } 75% { transform: translate3d(10px, 0, 0); } 90% { transform: translate3d(-5px, 0, 0); } to { transform: none; } }
@keyframes sbFlipInX { from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; } 40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; } 60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { transform: perspective(400px); } }
@keyframes sbFlipInY { from { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); animation-timing-function: ease-in; opacity: 0; } 40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); animation-timing-function: ease-in; } 60% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { transform: perspective(400px); } }
@keyframes sbRotateIn { from { transform: rotate3d(0, 0, 1, -200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sbRotateInDownLeft { from { transform: rotate3d(0, 0, 1, -45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sbRotateInDownRight { from { transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sbRotateInUpLeft { from { transform: rotate3d(0, 0, 1, 45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sbRotateInUpRight { from { transform: rotate3d(0, 0, 1, -90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sbLightSpeedInRight { from { transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; } 60% { transform: skewX(20deg); opacity: 1; } 80% { transform: skewX(-5deg); } to { transform: none; } }
@keyframes sbLightSpeedInLeft { from { transform: translate3d(-100%, 0, 0) skewX(30deg); opacity: 0; } 60% { transform: skewX(-20deg); opacity: 1; } 80% { transform: skewX(5deg); } to { transform: none; } }
@keyframes sbRollIn { from { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); } to { opacity: 1; transform: none; } }
@keyframes sbBounce { from, 20%, 53%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0); } 40%, 43% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -30px, 0) scaleY(1.1); } 70% { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); transform: translate3d(0, -15px, 0) scaleY(1.05); } 80% { transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); transform: translate3d(0, 0, 0) scaleY(0.95); } 90% { transform: translate3d(0, -4px, 0) scaleY(1.02); } }
@keyframes sbPulse { from { transform: scale3d(1, 1, 1); } 50% { transform: scale3d(1.05, 1.05, 1.05); } to { transform: scale3d(1, 1, 1); } }
@keyframes sbFlash { from, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } }
@keyframes sbRubberBand { from { transform: scale3d(1, 1, 1); } 30% { transform: scale3d(1.25, 0.75, 1); } 40% { transform: scale3d(0.75, 1.25, 1); } 50% { transform: scale3d(1.15, 0.85, 1); } 65% { transform: scale3d(0.95, 1.05, 1); } 75% { transform: scale3d(1.05, 0.95, 1); } to { transform: scale3d(1, 1, 1); } }
@keyframes sbShake { from, to { transform: translate3d(0, 0, 0); } 10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); } 20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); } }
@keyframes sbSwing { 20% { transform: rotate3d(0, 0, 1, 15deg); } 40% { transform: rotate3d(0, 0, 1, -10deg); } 60% { transform: rotate3d(0, 0, 1, 5deg); } 80% { transform: rotate3d(0, 0, 1, -5deg); } to { transform: rotate3d(0, 0, 1, 0deg); } }
@keyframes sbTada { from { transform: scale3d(1, 1, 1); } 10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { transform: scale3d(1, 1, 1); } }
@keyframes sbWobble { from { transform: translate3d(0, 0, 0); } 15% { transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); } 30% { transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); } 45% { transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); } 60% { transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); } 75% { transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); } to { transform: translate3d(0, 0, 0); } }
@keyframes sbJello { from, 11.1%, to { transform: translate3d(0, 0, 0); } 22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); } 33.3% { transform: skewX(6.25deg) skewY(6.25deg); } 44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); } 55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); } 66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); } 77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); } 88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); } }
@keyframes sbHeartBeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }

/* ---------- sliders ---------- */
[data-sb-slider] { position: relative; }
[data-sb-slider]:not([data-sb-slider-mode="class"]) [data-sb-viewport] { overflow: hidden; }
[data-sb-slider]:not([data-sb-slider-mode="class"]) [data-sb-track] {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  height: auto !important;
  transform: translate3d(0, 0, 0);
  transition: transform var(--sb-speed, 500ms) ease;
  will-change: transform;
  float: none !important;
  position: relative;
  left: 0 !important;
}
[data-sb-slider]:not([data-sb-slider-mode="class"]) [data-sb-slide] {
  flex: 0 0 var(--sb-slide-basis, 100%) !important;
  width: var(--sb-slide-basis, 100%) !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  box-sizing: border-box;
}
[data-sb-slider]:not([data-sb-slider-mode="class"]) [data-sb-slide] + [data-sb-slide] { margin-left: var(--sb-gap, 0px); }
[data-sb-slider][data-sb-effect="fade"]:not([data-sb-slider-mode="class"]) [data-sb-track] { transform: none !important; display: grid !important; }
[data-sb-slider][data-sb-effect="fade"]:not([data-sb-slider-mode="class"]) [data-sb-slide] {
  grid-area: 1 / 1;
  margin-left: 0 !important;
  opacity: 0;
  transition: opacity var(--sb-speed, 500ms) ease;
  pointer-events: none;
}
[data-sb-slider][data-sb-effect="fade"]:not([data-sb-slider-mode="class"]) [data-sb-slide].sb-active { opacity: 1; pointer-events: auto; }
/* Review widgets hide their arrows until their own script runs, and their
   row is itself a flex box. Make it a plain clipping window so the track
   inside can slide. */
[data-sb-slider] .ti-reviews-container-wrapper { display: block !important; }
[data-sb-slider] .ti-controls { display: block !important; height: 0; }
[data-sb-slider] .ti-controls .ti-prev,
[data-sb-slider] .ti-controls .ti-next { cursor: pointer; }

/* Elementor hides gallery tiles until its script marks them loaded. */
.e-gallery--lazyload .e-gallery-image:not(.e-gallery-image-loaded) {
  filter: none !important;
  transform: none !important;
}

[data-sb-slider][data-sb-slider-mode="class"] .carousel-item { display: none; }
[data-sb-slider][data-sb-slider-mode="class"] .carousel-item.active { display: block; }
[data-sb-dots] { display: flex; gap: 8px; justify-content: center; align-items: center; list-style: none; }
[data-sb-dots] .sb-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0;
  background: currentColor; opacity: 0.35; cursor: pointer; text-indent: -9999px; overflow: hidden;
}
[data-sb-dots] .sb-dot.sb-active, [data-sb-dots] .sb-dot.swiper-pagination-bullet-active { opacity: 1; }
[data-sb-prev], [data-sb-next] { cursor: pointer; }
[data-sb-prev].sb-disabled, [data-sb-next].sb-disabled { opacity: 0.35; pointer-events: none; }
html.sb-js .slick-list, html.sb-js .owl-stage-outer, html.sb-js .swiper { overflow: hidden; }

/* ---------- toggles / menus ---------- */
.sb-collapsed { display: none !important; }
html.sb-js .elementor-nav-menu--dropdown.sb-open { display: block !important; max-height: var(--menu-height, none); }
html.sb-js .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.sb-open)[aria-hidden="true"] { max-height: 0; overflow: hidden; }
html.sb-js .elementor-nav-menu--dropdown .sub-menu.sb-open { display: block !important; }
html.sb-js .navbar-collapse.show { display: block; }
html.sb-js [data-sb-toggle] { cursor: pointer; }
html.sb-js .elementor-tab-content:not(.elementor-active) { display: none; }
html.sb-js .elementor-tab-content.elementor-active { display: block; }

/* ---------- parallax ---------- */
[data-sb-parallax] { will-change: transform; }
[data-sb-parallax-bg] { background-attachment: scroll !important; }

/* ---------- image lightbox (links to image files, galleries) ---------- */
html.sb-lightbox-open {
  overflow: hidden;
}
.sb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 56px 64px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  font: 400 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.25s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y pinch-zoom;
}
.sb-lightbox.sb-lightbox--open {
  opacity: 1;
}
.sb-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sb-lightbox--open .sb-lightbox__stage {
  transform: none;
}
.sb-lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}
.sb-lightbox__img--from-right { animation: sbLightboxFromRight 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.sb-lightbox__img--from-left { animation: sbLightboxFromLeft 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.sb-lightbox__img--to-left { animation: sbLightboxToLeft 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.sb-lightbox__img--to-right { animation: sbLightboxToRight 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes sbLightboxFromRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes sbLightboxFromLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes sbLightboxToLeft { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-60px); } }
@keyframes sbLightboxToRight { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(60px); } }
.sb-lightbox--loading .sb-lightbox__stage::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sbLightboxSpin 0.8s linear infinite;
}
@keyframes sbLightboxSpin { to { transform: rotate(360deg); } }
/* The class is repeated so a cloned theme's own button styles never win. */
.sb-lightbox.sb-lightbox.sb-lightbox button {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sb-lightbox.sb-lightbox.sb-lightbox button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.sb-lightbox.sb-lightbox.sb-lightbox button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__close { top: 8px; right: 10px; }
.sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__prev { left: 10px; top: 50%; margin-top: -22px; }
.sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__next { right: 10px; top: 50%; margin-top: -22px; }
.sb-lightbox__counter {
  position: absolute;
  top: 0;
  left: 0;
  padding: 18px 20px;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.sb-lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 64px 18px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.sb-lightbox__caption[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .sb-lightbox { padding: 56px 8px; }
  .sb-lightbox__caption { padding: 12px 16px 16px; }
  .sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__nav { width: 40px; height: 40px; }
  .sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__prev { left: 4px; margin-top: -20px; }
  .sb-lightbox.sb-lightbox.sb-lightbox button.sb-lightbox__next { right: 4px; margin-top: -20px; }
}
html.sb-reduced-motion .sb-lightbox,
html.sb-reduced-motion .sb-lightbox__stage,
html.sb-reduced-motion .sb-lightbox__img {
  transition: none;
  animation: none;
}

/* ---------- phone fields: message under a number that is not a US number ---------- */
.sb-field-error {
  display: block;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: #b3261e;
  font: 500 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
}
input[data-sb-invalid] {
  border-color: #b3261e !important;
  box-shadow: 0 0 0 1px #b3261e !important;
}

/* ---------- hide on a device (set in the editor: data-sb-hide="mobile tablet") ---------- */
/* Same breakpoints as the editor: mobile up to 767px, tablet 768-1024px, desktop above.
   While editing, a hidden element stays on screen, faded, so it can still be selected. */
@media (max-width: 767px) {
  html:not([data-sb-editing]) [data-sb-hide~="mobile"] { display: none !important; }
  html[data-sb-editing] [data-sb-hide~="mobile"] { opacity: 0.3 !important; filter: grayscale(1); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  html:not([data-sb-editing]) [data-sb-hide~="tablet"] { display: none !important; }
  html[data-sb-editing] [data-sb-hide~="tablet"] { opacity: 0.3 !important; filter: grayscale(1); }
}
@media (min-width: 1025px) {
  html:not([data-sb-editing]) [data-sb-hide~="desktop"] { display: none !important; }
  html[data-sb-editing] [data-sb-hide~="desktop"] { opacity: 0.3 !important; filter: grayscale(1); }
}

/* ---------- "previous posts" links at the end of a blog post ---------- */
.sb-prev-posts {
  clear: both;
  margin: 2.5em 0 0;
  padding-top: 1.5em;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
}
.sb-prev-posts .sb-prev-posts__title {
  margin: 0 0 0.8em;
  font-size: 1.3em;
  line-height: 1.3;
}
.sb-prev-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25em;
}
.sb-prev-posts a.sb-prev-posts__card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sb-prev-posts__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 0.6em;
}
.sb-prev-posts__name {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}
.sb-prev-posts__card:hover .sb-prev-posts__name,
.sb-prev-posts__card:focus-visible .sb-prev-posts__name {
  text-decoration: underline;
}
.sb-prev-posts__date {
  display: block;
  margin-top: 0.25em;
  font-size: 0.85em;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .sb-prev-posts__grid { grid-template-columns: 1fr; }
}

/* ---------- forms: result of sending (sb-effects.js) ---------- */
.sb-form-status {
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 100%;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #1a1612;
  font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
}
.sb-form-status:empty { display: none; }
.sb-form-status[data-kind="ok"] { background: #e7f5ea; color: #14532d; border: 1px solid #b7dfc0; }
.sb-form-status[data-kind="error"] { background: #fdecea; color: #8c1d18; border: 1px solid #f3c1bc; }
.sb-form-status[data-kind="sending"] { background: #f4f1ea; color: #4a463f; border: 1px solid #e3e0d8; }

/* ---------- emoji pictures (WordPress swaps emoji for <img class="emoji">) ---------- */
/* WordPress sizes them from a style block in the page head; without it they
   fill their container. Same values as WordPress. */
img.emoji,
img.wp-smiley {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  max-width: none !important;
  margin: 0 0.07em !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  vertical-align: -0.1em !important;
}

/* ---------- popups closed by the visitor (sb-effects.js) ---------- */
[data-sb-closed] { display: none !important; }
