/* bosfl-socials: front-end feed styles
   BEM block: sc-ff-
   Colors, font-family, and link styles inherit from the active theme.
   Layout modelled after BOSFLEvents/assets/css/style.css for visual consistency.
   ------------------------------------------------------------------ */

/* Outer wrapper — constrains heading + grid together */
.sc-ff-wrap {
  max-width: 1170px;
  margin: 30px auto;
}

.sc-ff-title {
  margin: 0 0 20px;
}

/* Feed grid */
.sc-ff-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0;
  margin: 0;
}

/* Card */
.sc-ff-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image — fixed 253px height, covers regardless of Facebook's source dimensions */
.sc-ff-card__image {
  flex-shrink: 0;
  width: 100%;
  height: 253px;
  overflow: hidden;
  background: #f5f5f5;
}

.sc-ff-card__image img {
  display: block;
  width: 100%;
  height: 253px;
  object-fit: cover;
}

/* Body */
.sc-ff-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 0.75rem;
}

/* Post text — clamp to 5 lines on long posts */
.sc-ff-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: date left, link right */
.sc-ff-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 14px;
}

.sc-ff-card__date {
  opacity: 0.6;
  white-space: nowrap;
}

.sc-ff-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
}

.sc-ff-card__link:hover {
  text-decoration: underline;
}

.sc-ff-card__link .fa-arrow-up-right-from-square {
  font-size: 0.75em;
}

/* Responsive — matches BOSFLEvents breakpoints */
@media (max-width: 1024px) {
  .sc-ff-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .sc-ff-wrap {
    padding: 0 15px;
  }

  .sc-ff-feed {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-ff-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .sc-ff-card__image,
  .sc-ff-card__image img {
    max-width: 380px;
  }
}
