.sy-facebook-blog-3col .header-line {
  width: 50px;
  height: 5px;
  background-color: #bec8c9ff;
  border-radius: 2px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 16px;
}

.sy-facebook-blog-3col.spr-edit-el .sy-facebook-blog-3col-loader {
  display: none;
}

.sy-facebook-blog-3col.spr-edit-el .sy-facebook-blog-3col-no-posts {
  display: none;
}

.sy-facebook-blog-3col.spr-edit-el .preview-item {
  display: block;
}

.sy-facebook-blog-3col .preview-item {
  display: none;
}

.sy-facebook-blog-3col .sy-facebook-blog-3col-loader {
  margin-top: 50px;
  margin-bottom: 50px;
}

.sy-facebook-blog-3col .sy-facebook-blog-3col-no-posts {
  display: none;
}

.sy-facebook-blog-3col .post-media-grid {
  display: none;
  max-height: 500px;
  width: 100%;
}

.sy-facebook-blog-3col .loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #22a6b3;
  animation: spin 1s ease infinite;
  margin: auto;
}

.sy-facebook-blog-3col a.post-link {
  background-color: #f4f5f6 !important;
  display: block;
}

.sy-facebook-blog-3col a.post-link:hover {
  text-decoration: none;
}

.sy-facebook-blog-3col .post-engagement-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sy-facebook-blog-3col .post-engagement-list {
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: start;
  list-style: none;
  gap: 6px;
}

.sy-facebook-blog-3col .post-engagement-list .post-engagement-list-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

.sy-facebook-blog-3col
  .post-engagement-list
  .post-engagement-list-item
  .post-engagement-icon {
  color: #bbc3cc;
}

.sy-facebook-blog-3col .post-engagement-likes-count,
.sy-facebook-blog-3col .post-engagement-comments-count,
.sy-facebook-blog-3col .post-engagement-reactions-count {
  font-weight: bold;
  font-size: 12px;
}

.sy-facebook-blog-3col .post-engagement-icon {
  width: 20px;
  height: 20px;
}

.sy-facebook-blog-3col .action-button {
  display: none;
}

.sy-facebook-blog-3col .post-media-grid {
  display: grid;
  gap: 4px;
  min-height: 200px;
  height: 100%;
  aspect-ratio: 1/1;
}

/* 1 column: take entire space */
.sy-facebook-blog-3col .post-media-grid.columns-1 {
  grid-template-columns: 1fr;
}

/* 2 columns: half space each */
.sy-facebook-blog-3col .post-media-grid.columns-2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 columns: first full width, next two half width below */
.sy-facebook-blog-3col .post-media-grid.columns-3 {
  grid-template-columns: repeat(4, 4fr);
  grid-template-rows: repeat(3, 1fr);
}
.sy-facebook-blog-3col .post-media-grid.columns-3 > :nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 16/9;
}
.sy-facebook-blog-3col .post-media-grid.columns-3 > :nth-child(2),
.sy-facebook-blog-3col .post-media-grid.columns-3 > :nth-child(3) {
  grid-column: span 2;
  grid-row: 3;
}

/* 4 columns: first two half width on first row, next two half width on second row */
.sy-facebook-blog-3col .post-media-grid.columns-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr auto;
}
.sy-facebook-blog-3col .post-media-grid.columns-4 > :nth-child(1),
.sy-facebook-blog-3col .post-media-grid.columns-4 > :nth-child(2) {
  grid-row: 1;
}
.sy-facebook-blog-3col .post-media-grid.columns-4 > :nth-child(3),
.sy-facebook-blog-3col .post-media-grid.columns-4 > :nth-child(4) {
  grid-row: 2;
}

/* 5 columns: first row 2 columns, second row 3 columns */
.sy-facebook-blog-3col .post-media-grid.columns-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 2fr 1fr;
  gap: 4px;
}

.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(1) {
  grid-column: span 3;
}
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(2) {
  grid-column: span 3;
}

.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(3) {
  grid-column: span 2;
}
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(4) {
  grid-column: span 2;
}
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(5) {
  grid-column: span 2;
}

.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(1),
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(2) {
  grid-row: 1;
}

.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(3),
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(4),
.sy-facebook-blog-3col .post-media-grid.columns-5 > :nth-child(5) {
  grid-row: 2;
}

.sy-facebook-blog-3col .post-media-grid .post-media-grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
