.social-post {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .social-post-media {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .social-post-caption {
    font-size: 0.9em;
    color: #333;
    margin-top: 8px;
  }

  .social-post-link {
    text-decoration: none;
    color: inherit;
  }

  .social-post-carousel-wrapper {
    display: flex;
    overflow-x: auto;
  }

  .social-post-carousel-item {
    flex: 0 0 auto;
    margin-right: 10px;
  }

  .social-post-carousel-item:last-child {
    margin-right: 0;
  }
  .social-post-caption {
    font-size: 0.9em;
    color: #333;
    margin-top: 8px;
  }

  .read-more-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
  }
  .read-more-link:hover {
    text-decoration: none;
  }

  .instagram-post-block .container {
    padding: 15px;
  }

  .social-post-link.is-external > img , .item .is-external > img{
    filter: none;
  }

  .social-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
  }

  .social-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
  }

  .social-post-account {
    font-weight: bold;
    color: #0073b1;
  }

  .social-post-date {
    color: #666;
    font-size: 15px;
    font-weight: bold;
  }

  .social-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .social-card-facebook .social-post-media {
    width: 100%;
    margin-bottom: 10px;
  }

  .social-post-caption {
    color: #333;
    font-size: 18px;
    font-weight: 500;
  }

  .social-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 38px;
    padding: 15px;
  }

  .social-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
  }

  .social-post-account {
    font-weight: bold;
    color: #0073b1;
  }

  .social-post-date {
    color: #666;
    font-size: 15px;
  }

  .social-post-caption {
    font-size: 16px;
    color: #333;
  }

  .read-more-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
  }

  .carousel-item img {
    border-radius: 8px;
  }


/* Main Card Structure */
.social-card-facebook{
  border: 1px solid #e0e0e0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* Header */
.social-card-facebook .social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.social-card-facebook .profile-picture {
  border-radius: 50%;
  border-color: #fff;
  margin: 0 11px 0 0;
  height: 30px;
}

.social-card-facebook .social-card-account {
  font-weight: bold;
  color: #0073b1;
  margin-right: auto; /* Pushes the date to the far right */
}

.social-card-facebook .social-card-date {
  color: #666;
  font-size: 15px;
  font-weight: bold;
}
/* Media Section */
.social-card-facebook .social-card-media {
  width: 100%;
  overflow: hidden;
}

.social-card-facebook .media-image {
  width: 100%;
  display: block;
}

/* Content Section */
.social-card-facebook .social-card-content {
  padding: 0 15px;
  font-size: 15px;
  color: #333;
}

.social-card-facebook .social-card-message {
  margin: 0;
  line-height: 1.5;
}

/* Link Styling */
.social-card-facebook .social-card-link {
  color: #0078d7;
  font-weight: bold;
  text-decoration: none;
  margin-left: 5px;
}

.social-card-facebook .social-card-link:hover {
  text-decoration: underline;
}

.social-card-facebook .social-card-footer{
  justify-content: end;
  display: flex;
}

.social-card-footer .icon-facebook .icon,
.social-card-footer .icon-instagram .icon{
  width: 25px;
  height: 25px;
  margin: 10px !important;
}
.social-card-footer .icon-facebook .icon{
  filter: brightness(0) saturate(100%) invert(34%) sepia(13%) saturate(2126%) hue-rotate(183deg) brightness(95%) contrast(97%);
}
.social-card-footer .icon-instagram .icon {
  filter: invert(41%) sepia(95%) saturate(3926%) hue-rotate(310deg) brightness(90%) contrast(92%);
}

.social-card-footer{
  display: flex;
  justify-content: end;
}

.social-card-facebook .social-post-media{
  border-radius: unset;
  margin-bottom: unset !important;
}
.social-card-facebook .carousel-control .icon,
.instagram-grid .social-post.social-post-image .carousel-control .icon {
  fill: white;
  width: 38px;
  height: 38px;
}
.social-card-facebook .carousel-control,
.instagram-grid .social-post.social-post-image .carousel-control {
  height: fit-content !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 50%;
  margin: 0 5px;
  width: unset !important;
  top: 50%;
  transform: translateY(-50%);
}
.instagram-grid .social-post.social-post-image .carousel::after {
  background-repeat: no-repeat;
  display: block;
  text-indent: -9999px;
  background-image: url('/themes/custom/res/assets/images/icons/gallery.png');
  height: 14px;
  width: 14px;
  background-size: 14px 14px;
  filter: drop-shadow(0px 0px 3px darkGrey);
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
}

.facebook_block_wrapper,
.instagram_block_wrapper {
  display: none;
}
#it-block-social-wall-block .nav-tabs .nav-link {
  border-bottom: none;
  color: #06488d;
  background-color: #fff;
}
#it-block-social-wall-block .nav-tabs .nav-link .icon {
  fill: #06488d;
}
#it-block-social-wall-block .nav-tabs .nav-link.active {
  color: #fff;
  background: #06488d;
}
#it-block-social-wall-block .nav-tabs .nav-link.active .icon {
  fill: #fff;
}
#it-block-social-wall-block .nav-tabs .nav-link .icon {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}
#it-block-social-wall-block .social-wall--social-tabs {
  display: flex;
  justify-content: center;
}
#it-block-social-wall-block .nav-tabs {
  border: 1px solid #06488d;
  border-radius: 8px;
}
#it-block-social-wall-block .instagram_block_wrapper .social-post.social-post-image .carousel {
  border-radius: 8px;
  overflow: hidden;
}
#it-block-social-wall-block .nav-tabs .nav-item .nav-link {
  padding: .5rem 1em;
}
.it-content__wrapper.social-wall-page-content {
  padding: 0 12px;
}
.it-content__wrapper.social-wall-page-content .field--name-body {
  padding: 50px 0;
}
.facebook_block_wrapper .social-card-facebook .carousel::after, 
.instagram-grid .social-post.social-post-image .carousel::after {
  background-repeat: no-repeat;
  display: block;
  text-indent: -9999px;
  background-image: url('/themes/custom/res/assets/images/icons/gallery.png');
  height: 14px;
  width: 14px;
  background-size: 14px 14px;
  filter: drop-shadow(0px 0px 3px darkGrey);
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
}
#it-block-facebook-post .social-card-facebook .carousel-inner {
  aspect-ratio: 4/3;
}
#it-block-facebook-post .social-card-facebook .carousel-inner>.item {
  height: 100%;
}
#it-block-facebook-post .social-card-facebook .carousel-inner>.item .img-facebook-item {
  height: 100%;
  object-fit: cover;
}
#it-block-facebook-post .social-card-facebook.event-card .social-post-link,
#it-block-facebook-post .social-card-facebook .social-card-content.no-message .social-post-link {
  color: #06488d;
  font-size: 16px;
  font-weight: bold;
}
#it-block-facebook-post .social-card-facebook.event-card .social-post-link:hover,
#it-block-facebook-post .social-card-facebook .social-card-content.no-message .social-post-link:hover {
  text-decoration: underline;
}
#it-block-facebook-post .social-card-facebook.event-card .social-card-content > div {
  font-size: 16px;
}