/* jbc-ext jbc-gallery-v2-css 9670599a6e7a */
/* ===== Real Results Gallery v2 ===== */
#jbc-gallery.jbc-gallery--v2,
#jbc-gallery.jbc-gallery {
  --gal-navy: #0A2A45;
  --gal-blue: #0D7AB8;
  --gal-sky: #31AADE;
  --gal-bg: #f4f8fb;
  --gal-muted: #5b6470;
  --gal-radius: 20px;
  background:
    radial-gradient(900px 380px at 90% -10%, rgba(49,170,222,.12), transparent 55%),
    radial-gradient(700px 320px at 0% 100%, rgba(13,122,184,.08), transparent 50%),
    var(--gal-bg);
  padding: 72px 20px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
#jbc-gallery .jbc-gallery-inner {
  max-width: 1120px;
  margin: 0 auto;
}
#jbc-gallery .jbc-gallery-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
#jbc-gallery .jbc-gallery-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gal-blue);
  background: rgba(13,122,184,.10);
  border: 1px solid rgba(13,122,184,.18);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
#jbc-gallery .jbc-gallery-head h2,
#jbc-gallery #jbc-gallery-title {
  margin: 0 0 12px !important;
  color: var(--gal-navy) !important;
  font-size: clamp(28px, 4vw, 36px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
}
#jbc-gallery .jbc-gallery-sub {
  margin: 0 !important;
  color: var(--gal-muted) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

/* Bento layout */
#jbc-gallery .jbc-gallery-layout,
#jbc-gallery .jbc-ba-wrap {
  display: grid !important;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: stretch;
}
#jbc-gallery .jbc-gallery-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#jbc-gallery .jbc-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}

/* Before/After slider */
#jbc-gallery .jbc-ba-slider {
  position: relative;
  border-radius: var(--gal-radius);
  overflow: hidden;
  background: #0a1a2d;
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: 0 16px 40px rgba(10,42,69,.14);
  border: 1px solid rgba(10,42,69,.08);
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}
#jbc-gallery .jbc-ba-slider img,
#jbc-gallery .jbc-ba-after,
#jbc-gallery .jbc-ba-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  pointer-events: none;
}
#jbc-gallery .jbc-ba-after {
  position: absolute;
  inset: 0;
}
#jbc-gallery .jbc-ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 0;
}
#jbc-gallery .jbc-ba-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  /* match full slider width so image doesn't squash */
  min-width: 100%;
}
/* JS sets before-wrap width; image should match slider width */
#jbc-gallery .jbc-ba-slider .jbc-ba-before {
  width: var(--ba-full-width, 100%);
  max-width: none;
}

#jbc-gallery .jbc-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  pointer-events: none;
}
#jbc-gallery .jbc-ba-knob,
#jbc-gallery .jbc-ba-handle .jbc-ba-knob,
#jbc-gallery .jbc-ba-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1aa6e8 0%, #0D7AB8 100%);
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(13,122,184,.45);
  color: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}
#jbc-gallery .jbc-ba-arrow {
  font-size: 14px !important;
  letter-spacing: -2px;
}
#jbc-gallery .jbc-ba-label,
#jbc-gallery .jbc-ba-label-before,
#jbc-gallery .jbc-ba-label-after {
  position: absolute;
  bottom: 14px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(8,18,32,.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
  margin: 0 !important;
}
#jbc-gallery .jbc-ba-label-before { left: 14px; }
#jbc-gallery .jbc-ba-label-after { right: 14px; left: auto; }

#jbc-gallery .jbc-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
#jbc-gallery .jbc-ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 100%;
  cursor: ew-resize;
}
#jbc-gallery .jbc-ba-range::-moz-range-thumb {
  width: 48px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

#jbc-gallery .jbc-ba-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 14px;
  padding: 0 4px;
}
#jbc-gallery .jbc-ba-caption strong {
  color: var(--gal-navy);
  font-size: 15px;
  font-weight: 800;
}
#jbc-gallery .jbc-ba-caption span {
  color: var(--gal-muted);
  font-size: 14px;
}

/* Side result cards */
#jbc-gallery .jbc-result-card {
  position: relative;
  display: block;
  border-radius: var(--gal-radius);
  overflow: hidden;
  min-height: 160px;
  background: #0a1a2d;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(10,42,69,.10);
  border: 1px solid rgba(10,42,69,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
#jbc-gallery .jbc-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(10,42,69,.16);
}
#jbc-gallery .jbc-result-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 180px;
  object-fit: cover !important;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform .35s ease;
}
#jbc-gallery .jbc-result-card:hover img {
  transform: scale(1.05);
}
#jbc-gallery .jbc-result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent 30%, rgba(8,18,32,.78) 100%);
  color: #fff;
}
#jbc-gallery .jbc-result-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fd4f2;
  background: rgba(13,122,184,.28);
  border: 1px solid rgba(159,212,242,.28);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 6px;
}
#jbc-gallery .jbc-result-overlay strong,
#jbc-gallery .jbc-result-card p {
  margin: 0 !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  line-height: 1.2;
}
#jbc-gallery .jbc-result-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-top: 2px;
}

/* CTAs */
#jbc-gallery .jbc-gallery-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
#jbc-gallery .jbc-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
#jbc-gallery .jbc-gallery-btn--primary {
  background: linear-gradient(135deg, #1aa6e8 0%, #0D7AB8 100%);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(13,122,184,.32);
}
#jbc-gallery .jbc-gallery-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13,122,184,.42);
  color: #fff !important;
}
#jbc-gallery .jbc-gallery-btn--ghost {
  background: #fff;
  color: var(--gal-navy) !important;
  border: 1px solid rgba(10,42,69,.14);
  box-shadow: 0 4px 14px rgba(10,42,69,.05);
}
#jbc-gallery .jbc-gallery-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(13,122,184,.35);
  color: var(--gal-blue) !important;
}

@media (max-width: 900px) {
  #jbc-gallery.jbc-gallery--v2 {
    padding: 56px 16px;
  }
  #jbc-gallery .jbc-gallery-layout,
  #jbc-gallery .jbc-ba-wrap {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  #jbc-gallery .jbc-gallery-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }
  #jbc-gallery .jbc-ba-slider {
    aspect-ratio: 16 / 11;
  }
}
@media (max-width: 560px) {
  #jbc-gallery .jbc-gallery-side {
    grid-template-columns: 1fr;
  }
  #jbc-gallery .jbc-result-card img {
    min-height: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #jbc-gallery .jbc-result-card,
  #jbc-gallery .jbc-result-card img,
  #jbc-gallery .jbc-gallery-btn {
    transition: none !important;
  }
  #jbc-gallery .jbc-result-card:hover,
  #jbc-gallery .jbc-gallery-btn:hover {
    transform: none !important;
  }
  #jbc-gallery .jbc-result-card:hover img {
    transform: none !important;
  }
}