.news-block__headline {
  grid-column: 2 / span 12;
  grid-row: 1 / span 1;
  text-align: center;
  text-wrap: balance;
}

 .content-wrapper h2.news-block__headline {
  margin-bottom: 0;
 }

.social-feed-wrapper {
  grid-column: 3 / span 10;
  grid-row: 2 / span 1;
  margin-top: max(3.125rem, 6.71875vw);
}

.news-block {
  padding-top: max(7.5rem, 12.9296875vw);
}

.news-block__social-buttons-wrapper {
  grid-column: 13 / span 2;
  grid-row: 1 / span 2;
  display: flex;
  position: relative;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
}

.news-block__social-buttons {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-end;
  position: sticky;
  top: calc(var(--topbar-height) + 1em);
}

.news-block__social-btn {
  background-color: var(--dark-green);
  padding: 0.9em 1.1em;
  display: flex;
  align-items: center;
  gap: 1.3em;
  border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
  width: max(calc(3 * var(--grid-gap)), var(--grid-margin));
  overflow: hidden;
  text-transform: uppercase;
  font-weight: 700;
}

.content-wrapper a.news-block__social-btn {
  transition: all 0.4s ease;
}

.content-wrapper a.news-block__social-btn,
.content-wrapper a.news-block__social-btn:hover {
  color: var(--white);
}

.news-block__social-btn::before {
  content: "";
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: currentColor;
  height: 1em;
}

.news-block__social-btn.facebook::before {
  mask-image: url("../../img/facebook-icon.svg");
  aspect-ratio: 11.16/20.5;
}

.news-block__social-btn.instagram::before {
  mask-image: url("../../img/instagram-icon.svg");
  aspect-ratio: 1;
}

.news-block__social-btn .text {
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  color: currentColor;
}

.news-block__social-btn:hover {
  background-color: var(--green);
  width: 17ch;
}

.news-block__social-btn:hover .text {
  opacity: 1;
}

@media (max-width: 1199.98px) {
  .social-feed-wrapper {
    grid-column: 2 / span 12;
  }

  .nill-social-feed.col-5 {
    grid-template-columns:  repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991.98px) {
  .nill-social-feed.col-5 {
    grid-template-columns:  repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .nill-social-feed.col-5 {
    grid-template-columns:  repeat(2, minmax(0, 1fr)) !important;
  }

  .news-block__social-buttons-wrapper {
    grid-row: 2 / span 1;
    grid-column: 2 / span 12;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .social-feed-wrapper {
    grid-row: 3 / span 1;
  }

  .news-block__social-buttons {
    position: relative;
    top: unset;
    flex-direction: row;
  }
  .news-block__social-btn {
    width: 3.125rem;
    height: 3.125rem;
    padding: 0;
    border-radius: 100%;
    justify-content: center;
  }

  .news-block__social-btn:hover {
    width: 3.125rem;
  }

  .news-block__social-btn.facebook::before {
    height: 1.601875rem;
  }

  .news-block__social-btn.instagram::before {
    height: 1.3125rem;
  }

  .news-block__social-btn .text {
    display: none;
  }
}

@media (max-width: 575.98px) {
    .nill-social-feed.col-5 {
    grid-template-columns:  1fr !important;
  }
}
