.fb-post-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 20px;
  justify-items: center;
  margin-bottom: 75px;
}

.fb-post-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fb-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.fb-post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.fb-post-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.fb-post-text {
  padding: 15px;
  background-color: white;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.more {
  color: #1877f2;
  font-weight: bold;
  cursor: pointer;
}

.more:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .fb-post-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 520px) {
  .fb-post-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .fb-post-image {
    height: 250px;
  }
}