/* FP Social - self-contained styles, scoped under .fp-social. */

.fp-social { --fps-cols: 3; --fps-gap: 12px; max-width: 100%; min-width: 0; font-family: inherit; }
.fp-social *, .fp-social *::before, .fp-social *::after { box-sizing: border-box; }
.elementor .fp-social { padding: 8px 20px 28px; }
.fp-social-loading, .fp-social-error { color: #6b7177; font-size: 14px; padding: 12px 0; }

.fps-track.fps-grid {
  display: grid;
  grid-template-columns: repeat(var(--fps-cols), minmax(0, 1fr));
  gap: var(--fps-gap);
}
.fps-track.fps-masonry { column-count: var(--fps-cols); column-gap: var(--fps-gap); }
.fps-track.fps-masonry .fps-tile { break-inside: avoid; margin-bottom: var(--fps-gap); display: block; }
.fps-track.fps-carousel { display: flex; gap: var(--fps-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.fps-track.fps-carousel .fps-tile { flex: 0 0 240px; scroll-snap-align: start; }

.fps-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: 10px; aspect-ratio: 1 / 1; background: #eceef0;
  text-decoration: none; color: inherit;
}
.fps-track.fps-masonry .fps-tile { aspect-ratio: auto; }
.fp-social .fps-media { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fps-tile:hover .fps-media { transform: scale(1.05); }
.fp-social [hidden] { display: none !important; }
.fps-media-fallback { box-sizing: border-box; min-height: 240px; height: 100%; padding: 24px 18px; display: flex; flex-direction: column; gap: 12px; background: #f1f4f5; color: #163047; font-size: 13px; line-height: 1.45; }
.fps-media-fallback strong { padding-right: 25px; font-size: 16px; }
.fps-media-fallback > span:first-of-type { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fps-media-fallback > span:last-child { margin-top: auto; font-weight: 600; }
.fps-no-media .fps-play, .fps-no-media .fps-caption { display: none; }

.fps-icon {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.fps-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 30px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  pointer-events: none; z-index: 2;
}
.fps-caption {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end;
  padding: 12px; font-size: 13px; line-height: 1.4; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 0; transition: opacity .25s ease;
}
.fps-caption span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fps-tile:hover .fps-caption, .fps-tile:focus-visible .fps-caption { opacity: 1; }
.fps-tile:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }

@media (max-width: 600px) {
  .fps-track.fps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fps-track.fps-masonry { column-count: 2; }
}
@media (hover: none) { .fps-caption { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fps-media, .fps-caption { transition: none; } .fps-tile:hover .fps-media { transform: none; } }

/* Carousel arrows (like-for-like with the Elfsight carousel mode) */
.fps-viewport { position: relative; }
.fps-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #e4e7eb; background: #fff; color: #1d2327;
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 2;
}
.fps-nav:hover { border-color: #1a7f37; color: #1a7f37; }
.fps-prev { left: -6px; }
.fps-next { right: -6px; }
.fps-track.fps-carousel { scrollbar-width: none; }
.fps-track.fps-carousel::-webkit-scrollbar { display: none; }
