body {
  background: #000;
  color: #e7e9ea;
}

.social-page {
  box-sizing: border-box;
  width: auto;
  max-width: 1500px;
  min-height: 100vh;
  margin-left: 200px;
  padding: 18px clamp(16px, 3vw, 48px) 48px;
  font-family: Arial, Helvetica, sans-serif;
}

.social-page h1 {
  margin: 0 0 0.2em;
  color: #f2f2f2;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
}

.social-page h2 {
  margin: 1.25em 0 0.5em;
  border-bottom: 1px solid #2f3336;
  padding-bottom: 0.35em;
  color: #f2f2f2;
  font-size: 1.15rem;
}

.social-page a {
  color: #1d9bf0;
  text-decoration: none;
}

.social-page a:hover,
.social-page a:focus-visible {
  color: #1d9bf0;
  text-decoration: none;
}

.social-intro {
  max-width: 60rem;
  margin: 0.35rem 0;
  color: #8b98a5;
  font-size: 0.95rem;
  line-height: 1.4;
}

.social-platforms,
.social-back {
  font-size: 0.88rem;
}

.social-platforms {
  margin: 0.9rem 0 1.25rem;
  border: 1px solid #2f3336;
  padding: 0.55rem 0.75rem;
  background: #080808;
}

.social-back {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.social-categories {
  display: flex;
  gap: 0;
  margin: 0.9rem 0 1.1rem;
  border: 1px solid #2f3336;
  background: #080808;
}

.social-categories a {
  position: relative;
  flex: 1 1 0;
  padding: 0.65rem 1rem;
  color: #8b98a5;
  text-align: center;
}

.social-categories a:hover,
.social-categories a:focus-visible,
.social-categories a.current {
  color: #e7e9ea;
  background: #111;
}

.social-categories a.current::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0;
  left: 0.75rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1d9bf0;
  content: "";
}

.social-categories span {
  margin-left: 0.25rem;
  color: #71767b;
  font-size: 0.78rem;
}

.social-archive {
  margin: 1rem 0 1.4rem;
  border: 1px solid #2f3336;
  padding: 0 0.85rem 0.65rem;
  background: #080808;
}

.social-archive ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-archive li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  border-bottom: 1px dotted #2f3336;
  padding: 0.25rem 0;
  font-size: 0.88rem;
}

.social-archive li span {
  color: #71767b;
  font-size: 0.78rem;
}

.social-post {
  margin: 0 0 0.7rem;
  border: 1px solid #2f3336;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  background: #080808;
}

.social-post-detail {
  font-size: 1.03rem;
}

.social-post-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.7rem;
  border-bottom: 1px solid #202327;
  padding-bottom: 0.35rem;
  font-size: 0.84rem;
}

.social-post-author {
  min-width: 0;
}

.social-post-original {
  justify-self: center;
  white-space: nowrap;
}

.social-post-time {
  justify-self: end;
  color: #71767b !important;
  white-space: nowrap;
}

.social-post-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  gap: 0.8rem;
  align-items: start;
}

.social-post-copy {
  min-width: 0;
  border-right: 1px solid #2f3336;
  padding-right: 0.8rem;
}

.social-post-text {
  overflow-wrap: anywhere;
  padding-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.38;
}

.social-post-text p {
  margin: 0 0 0.65rem;
}

.social-post-text p:last-child {
  margin-bottom: 0;
}

.social-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: 0.65rem;
  border-top: 1px solid #202327;
  padding-top: 0.45rem;
  color: #71767b;
  font-size: 0.76rem;
}

.social-metrics strong {
  color: #e7e9ea;
  font-weight: normal;
}

.social-references,
.social-replies {
  margin-top: 0.55rem;
  font-size: 0.76rem;
}

.social-references {
  margin-top: 0.45rem;
  border-left: 2px solid #536471;
  padding-left: 0.55rem;
}

.social-replies {
  border-top: 1px solid #202327;
  padding-top: 0.45rem;
}

.social-sensitive {
  color: #ff7a7a;
  font-size: 0.8rem;
  line-height: 1.35;
}

.social-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
}

.social-media-empty {
  min-height: 1px;
}

.social-media img,
.social-media video {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-height: 520px;
  border: 1px solid #2f3336;
  border-radius: 4px;
  background: #000;
  object-fit: contain;
}

.social-media-image {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}

.social-media-image:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.social-media > :only-child {
  grid-column: 1 / -1;
}

.social-media-missing {
  grid-column: 1 / -1;
  border: 1px dashed #536471;
  padding: 0.8rem;
  text-align: center;
}

.social-empty {
  border: 1px dashed #536471;
  padding: 0.8rem;
  color: #8b98a5;
  background: #080808;
}

.social-lightbox-open {
  overflow: hidden;
}

.social-lightbox[hidden] {
  display: none;
}

.social-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(44px, 8vw) minmax(0, 1fr) minmax(44px, 8vw);
  align-items: center;
  background: rgba(0, 0, 0, 0.96);
}

.social-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 12px 0;
  box-sizing: border-box;
}

.social-lightbox-image {
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-lightbox figcaption {
  display: flex;
  justify-content: center;
  gap: 1rem;
  min-height: 1.2em;
  padding-top: 0.4rem;
  color: #e7e9ea;
  font: 0.85rem/1.2 Arial, Helvetica, sans-serif;
  text-align: center;
}

.social-lightbox-caption:empty,
.social-lightbox-counter:empty {
  display: none;
}

.social-lightbox button {
  border: 0;
  color: #e7e9ea;
  background: transparent;
  cursor: pointer;
}

.social-lightbox button:hover,
.social-lightbox button:focus-visible {
  color: #1d9bf0;
  outline: none;
}

.social-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 12px;
  padding: 0.1em 0.3em;
  font-size: 2.5rem;
}

.social-lightbox-previous,
.social-lightbox-next {
  align-self: stretch;
  font-size: clamp(2rem, 5vw, 4rem);
}

.social-lightbox-single .social-lightbox-previous,
.social-lightbox-single .social-lightbox-next {
  visibility: hidden;
}

@media (max-width: 1000px) {
  .social-page {
    margin-left: 0;
    padding-top: 115px;
  }
}

@media (max-width: 760px) {
  .social-post-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-media {
    grid-column: 1;
  }

  .social-post-copy {
    border-right: 0;
    padding-right: 0;
  }

  .social-media:not(.social-media-empty) {
    border-top: 1px solid #2f3336;
    padding-top: 0.7rem;
  }

  .social-media-empty {
    display: none;
  }
}

@media (max-width: 600px) {
  .social-page {
    padding-right: 8px;
    padding-left: 8px;
  }

  .social-post-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.6rem;
  }

  .social-post-author {
    grid-column: 1 / -1;
  }

  .social-post-original {
    justify-self: start;
  }

  .social-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-media > * {
    grid-column: 1;
  }

  .social-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .social-lightbox figure {
    padding-top: 48px;
  }
}
