/* Social post article pages */
:root {
  --post-bg: #071017;
  --post-panel: rgba(8, 20, 28, 0.78);
  --post-line: rgba(255, 255, 255, 0.1);
  --post-text: #f6fbff;
  --post-muted: rgba(246, 251, 255, 0.62);
  --post-teal: #2bb3c0;
  --post-lime: #b8e85a;
  --post-sun: #f6b73c;
}

body.social-post-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(43, 179, 192, 0.18), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(184, 232, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #071017 0%, #091821 48%, #05090d 100%);
  color: var(--post-text);
  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

.social-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.social-post-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.social-post-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.social-media-stage,
.social-copy-panel,
.social-gallery,
.social-next {
  background: var(--post-panel);
  border: 1px solid var(--post-line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.social-media-stage {
  position: relative;
  min-height: 660px;
  border-radius: 30px;
  overflow: hidden;
}

.social-embed-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(43, 179, 192, 0.14), transparent 34%),
    rgba(8, 20, 28, 0.78);
}

.social-embed-stage .instagram-media {
  min-width: min(100%, 326px) !important;
  max-width: min(100%, 540px) !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
}

.social-media-stage img,
.social-main-media {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

video.social-main-media {
  background: #000;
}

.social-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 36%, rgba(0, 0, 0, 0.78) 100%);
}

.social-media-label {
  position: absolute;
  left: 22px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-media-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.social-media-caption p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.social-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--post-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-copy-panel {
  border-radius: 26px;
  padding: 30px;
}

.social-copy-panel h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.social-lead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.55;
}

.social-meta-row,
.social-source-row,
.social-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.social-chip.accent {
  background: rgba(43, 179, 192, 0.14);
  border-color: rgba(43, 179, 192, 0.34);
  color: #8cecf5;
}

.social-chip.sun {
  background: rgba(246, 183, 60, 0.14);
  border-color: rgba(246, 183, 60, 0.32);
  color: #ffd36e;
}

.social-caption-card {
  margin: 26px 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-caption-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.68;
}

.social-caption-card p:last-child {
  margin-bottom: 0;
}

.social-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-tags a {
  color: var(--post-lime);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.social-stats {
  padding: 18px 0;
  border-top: 1px solid var(--post-line);
  border-bottom: 1px solid var(--post-line);
}

.social-stat {
  min-width: 92px;
}

.social-stat strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.social-stat span {
  display: block;
  margin-top: 5px;
  color: var(--post-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-source-row {
  margin-top: 22px;
  justify-content: space-between;
}

.social-source {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.social-source strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--post-teal);
  color: #031017;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.social-gallery {
  margin-top: 28px;
  border-radius: 26px;
  padding: 18px;
}

.social-gallery h2,
.social-next h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
}

.social-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.social-gallery-grid img,
.social-gallery-media {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.social-next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  border-radius: 26px;
  padding: 26px;
}

.social-next p {
  margin: 0;
  color: var(--post-muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .social-post-shell {
    width: min(100% - 24px, 620px);
    padding-top: 66px;
  }

  .social-post-hero,
  .social-next {
    grid-template-columns: 1fr;
  }

  .social-media-stage {
    min-height: auto;
    border-radius: 24px;
  }

  .social-media-stage img,
  .social-main-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .social-copy-panel {
    padding: 22px;
  }

  .social-copy-panel h1 {
    font-size: 40px;
  }

  .social-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-source-row {
    align-items: stretch;
  }

  .social-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .social-close {
    top: 14px;
    right: 14px;
  }

  .social-post-shell {
    width: 100%;
    padding: 56px 12px 56px;
  }

  .social-copy-panel h1 {
    font-size: 34px;
  }

  .social-media-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .social-stats {
    justify-content: space-between;
  }

  .social-stat {
    min-width: 74px;
  }
}
