.meta-status-grid,
.meta-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}

.meta-card {
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #d3d4d9;
  border-radius: .375rem;
  background: #fff;
}

.meta-card img,
.meta-card video {
  display: block;
  width: 100%;
  max-height: 32rem;
  margin-block-end: 1rem;
  object-fit: cover;
}

.meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-block: 1rem;
}

.meta-connected {
  color: #16833b;
  font-weight: 700;
}

.meta-missing,
.meta-message--error {
  color: #c42b1c;
  font-weight: 700;
}

.meta-message {
  padding: .75rem;
  border-left: .25rem solid currentColor;
}

.meta-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .5rem;
}

.meta-featured-feed {
  --meta-accent: #1877f2;
  width: min(100%, 58rem);
  margin-inline: auto;
}

.meta-integration--feed {
  margin-block-start: 2rem;
}

.path-meta-integration #block-tabs {
  padding-block-start: clamp(3rem, 5vw, 5rem);
}

.meta-featured-feed--instagram {
  --meta-accent: #c13584;
}

.meta-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  overflow: hidden;
  border: 1px solid rgba(22, 28, 45, .1);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.25rem 3.5rem rgba(22, 28, 45, .12);
}

.meta-featured-card__media {
  min-height: 28rem;
  background: #eef1f6;
}

.meta-featured-card__media > img,
.meta-featured-card__media > video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.meta-featured-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.meta-featured-card__network {
  display: inline-flex;
  align-items: center;
  margin-block-end: .65rem;
  color: var(--meta-accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.meta-featured-card__date,
.meta-featured-card__username {
  display: block;
  color: #687086;
  font-size: .875rem;
}

.meta-featured-card__copy {
  margin-block: 1.5rem;
  color: #1e2432;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  white-space: pre-line;
}

.meta-featured-card__copy--muted {
  color: #687086;
}

.meta-featured-card__link {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  color: #fff;
  background: var(--meta-accent);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.meta-featured-card__link:hover,
.meta-featured-card__link:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .65rem 1.5rem color-mix(in srgb, var(--meta-accent) 28%, transparent);
}

.meta-featured-card__identity {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.meta-featured-card__avatar {
  width: 3rem;
  height: 3rem;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--meta-accent);
}

.meta-featured-card__placeholder {
  display: grid;
  min-height: 28rem;
  place-items: center;
  color: #fff;
  background: var(--meta-accent);
  font-size: 8rem;
  font-weight: 800;
}

.meta-featured-card .meta-carousel {
  height: 100%;
  min-height: 28rem;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.meta-featured-card .meta-carousel img,
.meta-featured-card .meta-carousel video {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  scroll-snap-align: start;
}

.meta-featured-empty {
  padding: 3rem;
  border: 1px dashed #b8bfcc;
  border-radius: 1rem;
  color: #687086;
  text-align: center;
}

@media (max-width: 48rem) {
  .meta-integration--feed {
    margin-block-start: 1.5rem;
  }

  .path-meta-integration #block-tabs {
    padding-block-start: 2rem;
  }

  .meta-featured-card {
    grid-template-columns: 1fr;
  }

  .meta-featured-card__media,
  .meta-featured-card__media > img,
  .meta-featured-card__media > video,
  .meta-featured-card__placeholder,
  .meta-featured-card .meta-carousel,
  .meta-featured-card .meta-carousel img,
  .meta-featured-card .meta-carousel video {
    min-height: 20rem;
    max-height: 32rem;
  }
}

/* Three-platform social hub. */
.meta-social-hub {
  width: min(100% - 2rem, 90rem);
  margin: clamp(3rem, 6vw, 6rem) auto;
}

.meta-social-hub__header {
  margin-block-end: 2rem;
  text-align: center;
}

.meta-social-hub__header > span {
  color: #377dff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.meta-social-hub__header h2 {
  margin: .4rem 0 0;
  color: #1e2432;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.meta-social-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.meta-social-column {
  --platform-color: #1877f2;
  overflow: hidden;
  border: 1px solid rgba(22, 28, 45, .1);
  border-radius: 1.25rem;
  background: #f7f9fc;
  box-shadow: 0 1rem 2.75rem rgba(22, 28, 45, .09);
}

.meta-social-column--instagram {
  --platform-color: #c13584;
}

.meta-social-column--youtube {
  --platform-color: #f00;
}

.meta-social-column__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  padding: 1.5rem;
  color: #fff;
  background: var(--platform-color);
}

.meta-social-column--instagram .meta-social-column__header {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737);
}

.meta-social-column__icon {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .14);
  font: 800 1.4rem/1 Arial, sans-serif;
}

.meta-social-column__header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.meta-social-column__header p {
  margin: .2rem 0 0;
  color: rgba(255, 255, 255, .82);
  font: 500 .8rem/1.4 Arial, sans-serif;
}

.meta-social-column__posts {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.meta-social-post {
  overflow: hidden;
  border: 1px solid rgba(22, 28, 45, .08);
  border-radius: .85rem;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.meta-social-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.75rem rgba(22, 28, 45, .1);
}

.meta-social-post__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9edf4;
}

.meta-social-post__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.meta-social-post:hover .meta-social-post__media img {
  transform: scale(1.025);
}

.meta-social-post__play,
.meta-social-post__multiple {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  font: 700 .75rem/1 Arial, sans-serif;
}

.meta-social-post__body {
  padding: 1rem;
}

.meta-social-post__body time {
  color: #7a8294;
  font: 600 .72rem/1.3 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.meta-social-post__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: .65rem 0;
  color: #272d3a;
  font-size: .95rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meta-social-post__body a {
  color: var(--platform-color);
  font: 700 .82rem/1.4 Arial, sans-serif;
  text-decoration: none;
}

.meta-social-column__empty {
  margin: 0;
  padding: 2rem 1rem;
  color: #687086;
  text-align: center;
}

/* Normalize the existing YouTube block inside the third column. */
.meta-social-column--youtube .youtube-grid {
  display: grid;
  gap: 1rem;
}

.meta-social-column--youtube .youtube-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(22, 28, 45, .08);
  border-radius: .85rem;
  background: #fff;
}

.meta-social-column--youtube .youtube-card:nth-child(n+6) {
  display: none;
}

.meta-social-column--youtube .youtube-card iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  aspect-ratio: 16 / 10;
}

.meta-social-column--youtube .youtube-card h4 {
  margin: 0;
  padding: 1rem;
  color: #272d3a;
  font-size: .95rem;
  line-height: 1.55;
}

@media (max-width: 62rem) {
  .meta-social-hub__grid {
    grid-template-columns: 1fr;
    width: min(100%, 38rem);
    margin-inline: auto;
  }
}

/* Professional three-column social media overview. */
.social-media-hub {
  --hub-bg: #f6f8fb;
  --hub-card: #fff;
  --hub-text: #101828;
  --hub-muted: #667085;
  --hub-border: #e4e7ec;
  --hub-blue: #377dff;
  width: min(100% - 2rem, 92rem);
  margin: clamp(3rem, 6vw, 6rem) auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 16px;
  color: var(--hub-text);
  background: var(--hub-bg);
}

.social-media-hub__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 2rem;
}

.social-media-hub__eyebrow {
  display: block;
  margin-block-end: .45rem;
  color: var(--hub-blue);
  font: 800 .75rem/1.3 Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.social-media-hub__header h1 {
  margin: 0;
  color: var(--hub-text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.social-media-hub__header p {
  max-width: 42rem;
  margin: .65rem 0 0;
  color: var(--hub-muted);
  font-size: 1rem;
}

.social-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2vw, 1.875rem);
  align-items: stretch;
}

.social-platform-column {
  --platform-accent: #1877f2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-top: 3px solid var(--platform-accent);
  border-radius: 16px;
  background: var(--hub-card);
  box-shadow: 0 4px 16px rgba(16, 24, 40, .05);
}

.social-platform-column--instagram {
  --platform-accent: #c13584;
}

.social-platform-column--youtube {
  --platform-accent: #f00;
}

.social-platform-column__header {
  min-height: 9.5rem;
  padding: 1.35rem;
  border-bottom: 1px solid var(--hub-border);
}

.social-platform-column__identity {
  display: flex;
  gap: .8rem;
  align-items: center;
}

.social-platform-column__icon {
  display: grid;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: .75rem;
  color: var(--platform-accent);
  background: color-mix(in srgb, var(--platform-accent) 9%, white);
  font-size: 1.2rem;
}

.social-platform-column__title {
  margin: 0;
  color: var(--hub-text);
  font-size: 1.15rem;
  line-height: 1.25;
}

.social-platform-column__account {
  overflow: hidden;
  margin: .2rem 0 0;
  color: var(--hub-muted);
  font: 500 .8rem/1.3 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-platform-column__status {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  margin-block-start: 1rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font: 700 .72rem/1.2 Arial, sans-serif;
}

.social-platform-column__status > span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
}

.social-platform-column__status.is-connected {
  color: #067647;
  background: #ecfdf3;
}

.social-platform-column__status.is-disconnected {
  color: #667085;
  background: #f2f4f7;
}

.social-platform-column__feed {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.social-post-card {
  overflow: hidden;
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  background: var(--hub-card);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.social-post-card:hover,
.social-post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .1);
}

.social-post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eaecf0;
}

.social-post-card__media > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.social-post-card__image,
.social-post-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-post-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding-inline-start: .15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 24, 40, .72);
  font: 700 .85rem/1 Arial, sans-serif;
  transform: translate(-50%, -50%);
}

.social-post-card__badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .5rem;
  color: #fff;
  background: rgba(16, 24, 40, .72);
}

.social-post-card__body {
  padding: 1rem;
}

.social-post-card__date {
  color: var(--hub-muted);
  font: 600 .72rem/1.3 Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.social-post-card__text {
  display: -webkit-box;
  overflow: hidden;
  margin: .6rem 0 .85rem;
  color: var(--hub-text);
  font-size: .92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.social-post-card__actions {
  border-top: 1px solid #f2f4f7;
  padding-block-start: .75rem;
}

.social-post-card__link,
.social-platform-column__footer a {
  color: var(--platform-accent);
  font: 700 .8rem/1.4 Arial, sans-serif;
  text-decoration: none;
}

.social-post-card__link:hover,
.social-platform-column__footer a:hover {
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.social-post-card__link:focus-visible,
.social-platform-column__footer a:focus-visible {
  border-radius: .25rem;
  outline: 3px solid color-mix(in srgb, var(--platform-accent) 30%, transparent);
  outline-offset: 3px;
}

.social-platform-column__empty {
  display: grid;
  min-height: 12rem;
  padding: 2rem 1rem;
  place-items: center;
  align-content: center;
  color: var(--hub-muted);
  text-align: center;
}

.social-platform-column__empty > span {
  font-size: 2rem;
}

.social-platform-column__footer {
  margin-block-start: auto;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--hub-border);
  background: #fcfcfd;
}

/* Normalize the existing YouTube render output without changing its backend. */
.social-platform-column__feed--youtube .youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.social-platform-column__feed--youtube .youtube-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.social-platform-column__feed--youtube .youtube-card:nth-child(n+4) {
  display: none;
}

.social-platform-column__feed--youtube .youtube-card:hover,
.social-platform-column__feed--youtube .youtube-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .1);
}

.social-platform-column__feed--youtube .youtube-card iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  aspect-ratio: 16 / 9;
}

.social-platform-column__feed--youtube .youtube-card h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 1rem;
  color: var(--hub-text);
  font-size: .92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (min-width: 48rem) and (max-width: 74.9375rem) {
  .social-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-platform-column--youtube {
    grid-column: 1 / -1;
    width: calc(50% - .75rem);
    justify-self: center;
  }
}

@media (max-width: 47.9375rem) {
  .social-media-hub {
    width: min(100% - 1rem, 42rem);
    margin-block: 2rem;
    padding: 1rem;
  }

  .social-media-hub__header {
    margin-block-end: 1.25rem;
  }

  .social-media-hub__header h1 {
    font-size: 1.8rem;
  }

  .social-platform-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-platform-column__header {
    min-height: auto;
    padding: 1rem;
  }

  .social-platform-column__feed {
    gap: .8rem;
    padding: .8rem;
  }
}

/* Client-approved social showcase treatment. */
.social-media-hub--showcase {
  position: relative;
  margin-block-start: clamp(7rem, 14vw, 12rem);
  padding: clamp(1.25rem, 3vw, 2.75rem);
  border: 1px solid #e4e7ec;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(16, 24, 40, .12);
}
body.dark-mode.frontpage .social-media-hub--showcase {
      background: #182328;
}

/* Applied by JavaScript only on the front page to the Social Hub's builder row. */
.home-social-hub-section,
.home-social-hub-section .bb-inner,
.home-social-hub-section .bb-container,
.home-social-hub-section .meta-social-media-hub-wrapper,
.home-social-hub-section .meta-social-media-hub-wrapper > .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-social-hub-section .social-media-hub--showcase {
  margin-block-start: 0 !important;
  padding-top: 50px !important;
}

.gbb-row-wrapper.home-social-hub-section,
.gbb-row-wrapper.home-social-hub-section .bb-inner,
.gbb-row-wrapper.home-social-hub-section .bb-container,
.gbb-row-wrapper.home-social-hub-section .row-wrapper,
.gbb-row-wrapper.home-social-hub-section .gsc-column,
.gbb-row-wrapper.home-social-hub-section .column-inner {
  min-height: 0 !important;
}

.social-media-hub--showcase .social-media-hub__header {
  justify-content: center;
  margin-block-end: 2rem;
  text-align: center;
}

.social-media-hub__dock {
  position: absolute;
  bottom: calc(100% - .65rem);
  left: 50%;
  display: flex;
  gap: clamp(.8rem, 2vw, 1.5rem);
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 2;
}

.social-media-hub__dock-icon {
  display: grid;
  width: clamp(3.6rem, 6vw, 5.25rem);
  height: clamp(3.6rem, 6vw, 5.25rem);
  place-items: center;
  border: 4px solid #fff;
  border-radius: 22%;
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, .2);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-decoration: none;
  transform: rotate(-5deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.social-media-hub__dock-icon:nth-child(2) {
  transform: translateY(-.55rem) rotate(4deg);
}

.social-media-hub__dock-icon:nth-child(3) {
  transform: rotate(5deg);
}

.social-media-hub__dock-icon:hover,
.social-media-hub__dock-icon:focus-visible {
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 24, 40, .28);
  transform: translateY(-.45rem) rotate(0);
}

.social-media-hub__dock-icon:focus-visible {
  outline: 3px solid #101828;
  outline-offset: 4px;
}

.social-media-hub__dock-icon.is-facebook {
  background: #1877f2;
}

.social-media-hub__dock-icon.is-instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737);
}

.social-media-hub__dock-icon.is-youtube {
  background: #f00;
}

.social-media-hub__viewport {
  position: relative;
}

.social-media-hub--showcase .social-platform-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.social-media-hub--showcase .social-platform-column {
  border-top-width: 1px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(16, 24, 40, .07);
}

.social-media-hub--showcase .social-platform-column__header {
  min-height: 7.5rem;
  padding: 1.15rem;
}

.social-media-hub--showcase .social-platform-column__status {
  margin-block-start: .65rem;
}

.social-media-hub--showcase .social-platform-column__feed {
  padding: 0;
}

.social-media-hub--showcase .social-post-card,
.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card {
  display: flex;
  min-height: 25rem;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.social-media-hub--showcase .social-post-card:hover,
.social-media-hub--showcase .social-post-card:focus-within,
.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card:hover,
.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card:focus-within {
  box-shadow: none;
  transform: none;
}

.social-media-hub--showcase .social-post-card__body {
  display: flex;
  order: 1;
  min-height: 9.5rem;
  flex-direction: column;
  padding: 1.15rem;
}

.social-media-hub--showcase .social-post-card__media {
  order: 2;
  margin-block-start: auto;
  border-top: 1px solid #e4e7ec;
  aspect-ratio: 4 / 3;
}

.social-media-hub--showcase .social-post-card__actions {
  margin-block-start: auto;
  border: 0;
  padding: 0;
}

/* The YouTube block is rendered inside the hub; hide the separately placed
 * theme-region copy on Meta Integration pages to prevent duplicate output. */
.path-meta-integration #block-linoor-subtheme-youtubevideosblock,
.path-meta-integration #blocklinoorsubthemeyoutubevideosblock {
  display: none;
}

.social-media-hub--showcase .social-platform-column__footer {
  padding: .9rem 1.15rem;
}

.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card:nth-child(n+2) {
  display: none;
}

.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card h4 {
  order: 1;
  min-height: 9.5rem;
  padding: 1.15rem;
  font-size: 1rem;
}

.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card h4::before {
  content: "Latest video";
  display: block;
  margin-block-end: .55rem;
  color: #667085;
  font: 600 .72rem/1.3 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card iframe {
  order: 2;
  margin-block-start: auto;
  border-top: 1px solid #e4e7ec;
  aspect-ratio: 4 / 3;
}

.social-media-hub__arrow {
  position: absolute;
  z-index: 3;
  top: 58%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  color: #101828;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 24, 40, .14);
  font: 400 2rem/1 Arial, sans-serif;
  transform: translateY(-50%);
}

.social-media-hub__arrow:hover,
.social-media-hub__arrow:focus-visible {
  color: #fff;
  background: #377dff;
}

.social-media-hub__arrow:focus-visible {
  outline: 3px solid rgba(55, 125, 255, .35);
  outline-offset: 3px;
}

.social-media-hub__arrow--previous {
  left: -1.4rem;
}

.social-media-hub__arrow--next {
  right: -1.4rem;
}

.social-media-hub__dots {
  display: none;
  gap: .45rem;
  justify-content: center;
  margin-block-start: 1.5rem;
}

.social-media-hub__dots span {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #d0d5dd;
}

.social-media-hub__dots span.is-active {
  background: #101828;
}

@media (min-width: 75rem) {
  .social-media-hub--showcase .social-media-hub__arrow {
    display: none;
  }
}

@media (max-width: 74.9375rem) {
  .social-media-hub__dots {
    display: flex;
  }

  .social-media-hub--showcase .social-platform-grid {
    display: flex;
    overflow-x: auto;
    padding: .25rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .social-media-hub--showcase .social-platform-grid::-webkit-scrollbar {
    display: none;
  }

  .social-media-hub--showcase .social-platform-column,
  .social-media-hub--showcase .social-platform-column--youtube {
    width: auto;
    min-width: calc(50% - .75rem);
    grid-column: auto;
    justify-self: auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 47.9375rem) {
  .social-media-hub--showcase {
    width: min(100% - 1rem, 42rem);
    margin-block-start: 6.5rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .social-media-hub--showcase .social-media-hub__header {
    margin-block-end: 1.25rem;
  }

  .social-media-hub--showcase .social-platform-column {
    min-width: 100%;
  }

  .social-media-hub__arrow--previous {
    left: -.75rem;
  }

  .social-media-hub__arrow--next {
    right: -.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-media-hub--showcase *,
  .social-media-hub--showcase *::before,
  .social-media-hub--showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Homepage: the Social Hub must remain visible on phones. */
@media (max-width: 47.9375rem) {
  body.frontpage .home-social-hub-section,
  body.frontpage .home-social-hub-section.hidden-xs,
  body.frontpage .home-social-hub-section.hidden-sm,
  body.frontpage .gbb-row-wrapper:has([data-social-hub-wrapper]),
  body.frontpage .gsc-column:has([data-social-hub-wrapper]),
  body.frontpage .block:has([data-social-hub-wrapper]),
  body.frontpage [data-social-hub-wrapper],
  body.frontpage [data-social-showcase] {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    opacity: 1 !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  body.frontpage .home-social-hub-section .bb-inner,
  body.frontpage .home-social-hub-section .bb-container,
  body.frontpage .home-social-hub-section .row-wrapper,
  body.frontpage .home-social-hub-section .gsc-column,
  body.frontpage .home-social-hub-section .column-inner,
  body.frontpage .home-social-hub-section .column-content,
  body.frontpage .home-social-hub-section .column-content-inner {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.frontpage [data-social-hub-wrapper] {
    box-sizing: border-box;
    margin: 0 auto !important;
    padding: 72px 14px 48px !important;
    width: 100% !important;
  }

  body.frontpage [data-social-hub-wrapper] > .container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.frontpage .social-media-hub--showcase {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 34px 12px 20px !important;
    width: 100% !important;
  }

  body.frontpage .social-media-hub__dock {
    bottom: calc(100% - .4rem);
    gap: 10px;
  }

  body.frontpage .social-media-hub__dock-icon {
    font-size: 22px;
    height: 54px;
    width: 54px;
  }

  body.frontpage .social-media-hub--showcase .social-platform-grid {
    display: flex !important;
    gap: 12px;
    overflow-x: auto !important;
    padding: 2px !important;
    scroll-snap-type: x mandatory;
  }

  body.frontpage .social-media-hub--showcase .social-platform-column,
  body.frontpage .social-media-hub--showcase .social-platform-column--youtube {
    display: flex !important;
    flex: 0 0 100%;
    min-width: 100% !important;
    scroll-snap-align: start;
  }

  body.frontpage .social-media-hub--showcase .social-platform-column__header {
    min-height: 0;
    padding: 16px;
  }

  body.frontpage .social-media-hub--showcase .social-post-card,
  body.frontpage .social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card {
    min-height: 0;
  }

  body.frontpage .social-media-hub--showcase .social-post-card__body,
  body.frontpage .social-media-hub--showcase .social-platform-column__feed--youtube .youtube-card h4 {
    min-height: 130px;
    padding: 16px;
  }

  body.frontpage .social-media-hub__arrow {
    display: grid !important;
    height: 42px;
    width: 42px;
  }

  body.frontpage .social-media-hub__arrow--previous {
    left: -8px;
  }

  body.frontpage .social-media-hub__arrow--next {
    right: -8px;
  }
}

/* Full-width banner matching the Services page breadcrumb hero. */
.social-media-banner {
  position: relative;
  left: 50%;
  display: flex;
  width: 100vw;
  min-height: 24rem;
  align-items: center;
  overflow: hidden;
  margin-left: -50vw;
  color: #fff;
  background-color: #222429;
  background-image: url("/sites/default/files/breadcrumb-breadcrumb-breadcrumb1_0.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.social-media-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.social-media-banner__container {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
  text-align: center;
}

.social-media-banner h1 {
  margin: 0;
  color: #fff;
  font-family: "BioRhyme", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
}

.social-media-banner + .social-media-hub--showcase {
  margin-block-start: clamp(6rem, 9vw, 8rem);
}

@media (max-width: 47.9375rem) {
  .social-media-banner {
    min-height: 15rem;
    background-position: center center;
  }

  .social-media-banner h1 {
    font-size: 2.5rem;
  }
}

/* Separate platform feed banners and responsive grids. */
.social-media-banner__container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.platform-feed-banner__icon {
  display: grid;
  width: clamp(3.25rem, 6vw, 4.75rem);
  height: clamp(3.25rem, 6vw, 4.75rem);
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: 1rem;
  color: #fff;
  background: rgba(55, 125, 255, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.social-media-banner--instagram .platform-feed-banner__icon {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737);
}

.social-media-banner--youtube .platform-feed-banner__icon {
  background: #f00;
}

.platform-feed-page {
  --platform-color: #1877f2;
  width: min(100% - 2rem, 82rem);
  margin: clamp(3rem, 6vw, 5rem) auto;
}

.platform-feed-page--instagram {
  --platform-color: #c13584;
}

.platform-feed-page--youtube {
  --platform-color: #f00;
}

.platform-feed-page__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 2rem;
}

.platform-feed-page__header > div:first-child > span {
  display: block;
  margin-block-end: .4rem;
  color: var(--platform-color);
  font: 800 .75rem/1.3 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.platform-feed-page__header h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.platform-feed-page__header p {
  margin: .45rem 0 0;
  color: #667085;
}

.platform-feed-page__refresh {
  min-height: 2.75rem;
  padding: .75rem 1.1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--platform-color);
  font-weight: 700;
  cursor: pointer;
}

.platform-feed-grid,
.platform-feed-page__youtube .youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.platform-feed-card,
.platform-feed-page__youtube .youtube-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 24, 40, .07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.platform-feed-card:hover,
.platform-feed-card:focus-within,
.platform-feed-page__youtube .youtube-card:hover,
.platform-feed-page__youtube .youtube-card:focus-within {
  box-shadow: 0 14px 30px rgba(16, 24, 40, .13);
  transform: translateY(-4px);
}

.platform-feed-card__media,
.platform-feed-card__media > a,
.platform-feed-page__youtube .youtube-card iframe {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  aspect-ratio: 4 / 3;
  background: #eaecf0;
}

.platform-feed-page__youtube .youtube-card iframe {
  aspect-ratio: 16 / 9;
}

.platform-feed-card__media img,
.platform-feed-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-feed-card__placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--platform-color);
  font-size: 4rem;
}

.platform-feed-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding-inline-start: .15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 24, 40, .75);
  transform: translate(-50%, -50%);
}

.platform-feed-card__badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .6rem;
  color: #fff;
  background: rgba(16, 24, 40, .75);
}

.platform-feed-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.platform-feed-card__meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  color: #667085;
  font: 700 .7rem/1.3 Arial, sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.platform-feed-card__meta span {
  color: var(--platform-color);
}

.platform-feed-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: .9rem 0 1.2rem;
  color: #101828;
  font-size: .95rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.platform-feed-card__link {
  align-self: flex-start;
  margin-block-start: auto;
  color: var(--platform-color);
  font: 700 .82rem/1.4 Arial, sans-serif;
  text-decoration: none;
}

.platform-feed-card__link:hover {
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.platform-feed-page__youtube .youtube-card h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 1rem;
  color: #101828;
  font-size: .95rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.platform-feed-page__empty {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  color: #667085;
  text-align: center;
}

@media (min-width: 48rem) and (max-width: 74.9375rem) {
  .platform-feed-grid,
  .platform-feed-page__youtube .youtube-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.9375rem) {
  .social-media-banner__container {
    flex-direction: column;
  }

  .platform-feed-page {
    width: min(100% - 1rem, 42rem);
    margin-block: 2rem;
  }

  .platform-feed-page__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-feed-grid,
  .platform-feed-page__youtube .youtube-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
