/* === CENTERED WRAPPER === */
.social-wall__outer-wrapper {
  width: 100%;
  text-align: center;
}

/* === SCROLL CONTAINER === */
.social-wall__wrapper {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  overflow-x: auto;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 20px; /* Space for shadows */
}

.social-wall__wrapper::-webkit-scrollbar {
  display: none;
}

/* The List */
.social-wall__list {
  display: flex;
  gap: 20px; /* Consistent gap */
  padding: 10px 5px;
  margin: 0;
  list-style: none;
  /* Align items to stretch so they respect the flex container height if needed, 
     but we are forcing height on children anyway */
  align-items: stretch; 
}

/* === CARD STYLES === */
.social-wall__item {
  flex: 0 0 auto;
  width: 325px; 
  max-width: 85vw;
  scroll-snap-align: center;
}

.social-wall__card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  
  /* === UNIFORM HEIGHT FIX === */
  height: 550px; /* Fixed height for ALL cards */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Hide anything that spills out initially */
}

/* === EMBED CONTENT WRAPPER === */
.social-wall__embed-container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  
  /* ALLOW INTERNAL SCROLLING */
  /* If the post is longer than 550px, the user can scroll INSIDE the card */
  overflow-y: auto; 
  scrollbar-width: none; /* Firefox: Hide scrollbar */
  -ms-overflow-style: none; /* IE: Hide scrollbar */
}

/* Chrome/Safari: Hide scrollbar */
.social-wall__embed-container::-webkit-scrollbar {
  display: none;
}

/* Force standard iframe behavior */
.social-wall__embed-container iframe,
.social-wall__embed-container blockquote {
  width: 100% !important;
  /* Reset positioning so they flow naturally in our scroll container */
  position: relative !important; 
  margin: 0 !important;
  border-radius: 0 !important; /* Let container handle radius */
  box-shadow: none !important;
  min-height: 100%; /* Ensure it fills at least the card */
}

/* === PLACEHOLDER === */
.social-wall__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  background: #f9f9f9;
}

.social-wall__placeholder svg {
  width: 50px;
  height: 50px;
  fill: #ddd;
  margin-bottom: 10px;
}

/* === RESPONSIVE === */
@media screen and (min-width: 768px) {
  .social-wall__list {
    gap: 30px;
  }
}
