/* Facebook feed carousel — replaces the frozen Smash Balloon Instagram widget.
   Card-style tiles: header (avatar / name / date + fb mark), 3:4 image, caption,
   likes + comments footer, arrow + dot navigation, follow CTA.
   All selectors are prefixed with #fb_feed: the mirror's theme CSS has broad
   rules like `.elementor img { border-radius: 0 }` that outrank bare classes. */

#fb_feed {
  margin-top: 36px;
  padding-bottom: 8px;
  position: relative;
}

#fb_feed .fbf-track {
  display: flex;
  gap: 18px;
  padding: 6px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#fb_feed .fbf-track::-webkit-scrollbar {
  display: none;
}

#fb_feed .fbf-item {
  flex: 0 0 calc((100% - 5 * 18px) / 6);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(16, 42, 51, 0.1);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#fb_feed .fbf-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 42, 51, 0.18);
}

@media (max-width: 1023px) {
  #fb_feed .fbf-item {
    flex-basis: calc((100% - 18px) / 2.35);
  }
}

@media (max-width: 639px) {
  #fb_feed .fbf-item {
    flex-basis: 72%;
  }
}

#fb_feed .fbf-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

#fb_feed .fbf-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e8edf0;
  background: #fff;
}

#fb_feed .fbf-head-text {
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

#fb_feed .fbf-name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #16323b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fb_feed .fbf-date {
  display: block;
  font-size: 11.5px;
  color: #8a949a;
}

#fb_feed .fbf-fbmark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1877f2;
}

#fb_feed .fbf-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eef1f3;
}

#fb_feed .fbf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

#fb_feed .fbf-item:hover .fbf-photo img {
  transform: scale(1.03);
}

#fb_feed .fbf-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

#fb_feed .fbf-caption {
  padding: 10px 12px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #3d4b53;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#fb_feed .fbf-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 12px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #5f6c73;
}

#fb_feed .fbf-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#fb_feed .fbf-stat svg {
  width: 15px;
  height: 15px;
  color: #8a949a;
}

#fb_feed .fbf-arrow {
  position: absolute;
  top: 200px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #16535c;
  box-shadow: 0 3px 12px rgba(16, 42, 51, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#fb_feed .fbf-arrow:hover {
  transform: scale(1.08);
}

#fb_feed .fbf-arrow svg {
  width: 22px;
  height: 22px;
}

#fb_feed .fbf-arrow-prev {
  left: -8px;
}

#fb_feed .fbf-arrow-next {
  right: -8px;
}

#fb_feed .fbf-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

#fb_feed .fbf-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

#fb_feed .fbf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c9ced2;
  cursor: pointer;
  transition: background 0.15s ease;
}

#fb_feed .fbf-dot.fbf-dot-active {
  background: #16535c;
}

#fb_feed .fbf-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

#fb_feed .fbf-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #16535c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}

#fb_feed .fbf-cta:hover {
  background: #0e3d45;
  color: #fff;
}

#fb_feed .fbf-cta svg {
  width: 17px;
  height: 17px;
}

/* touch devices swipe; arrows just cover card content (kept last so it
   outranks the base .fbf-arrow display rule above) */
@media (max-width: 1023px) {
  #fb_feed .fbf-arrow {
    display: none;
  }
}
