.post-private-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
  opacity: 0.6;
  padding: 10px;
}

.post-title-link {
  text-decoration: none;
}

.post-time-since,
.post-comment-count {
  color: #f0f0f0ac;
  font-size: 0.9rem;
}

.post-time-since {
  margin-top: 10px;
}

/* Post body (description) */

.post-body {
  margin-top: 15px;
  padding: 15px;
  color: #f0f0f0;
  background-color: #25232a;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.3;
  /* white-space: pre-wrap; */
  word-wrap: break-word;
}

/* Post attachments - Links */

.post-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.post-links .entry-link {
  margin-top: 0;
}

/* Post attachments - Gallery */

.post-gallery,
.post-gallery-single {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.post-gallery-single {
  grid-template-columns: 1fr;
}

.post-gallery {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.post-media {
  position: relative;
  background-color: #19181b;
  border-radius: 8px;
  overflow: hidden;
}

.post-media img,
.post-media video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: contain;
}

.post-gallery .post-media img,
.post-gallery .post-media video {
  aspect-ratio: 1;
  object-fit: cover;
  max-height: none;
}

/* Feed thumbnail */

.entry-thumbnail {
  background-color: #19181b;
  border-radius: 8px;
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  /* max-height: 300px; */
  aspect-ratio: 16 / 9;
}

.entry-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.entry-thumbnail-video-badge,
.entry-thumbnail-count {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.entry-thumbnail-video-badge {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  padding: 10px 15px;
}

.entry-thumbnail-count {
  bottom: 8px;
  right: 8px;
}

/* Comment attachments */

.comment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.comment-link {
  display: inline-flex;
  align-items: center;
  background-color: #312f38;
  color: #8ab4f8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
}

.comment-link:hover {
  background-color: #3d3a45;
}

.comment-media-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #19181b;
}

.comment-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-media-thumb .video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Upvoted */

.entry.upvoted > .post-title-link > .entry-meta {
  background-color: #1d221d;
}

.entry.upvoted > .post-title-link > .entry-meta .entry-link {
  background-color: #2f382f;
}

.entry.upvoted > .entry-meta {
  background-color: #1d221d;
}

.entry.upvoted > .entry-meta .post-body {
  background-color: #2a3229;
}

/* Downvoted */

.entry.downvoted > .post-title-link > .entry-meta {
  background-color: #221d1d;
}

.entry.downvoted > .post-title-link > .entry-meta .entry-link {
  background-color: #382f2f;
}

.entry.downvoted > .entry-meta {
  background-color: #221d1d;
}

.entry.downvoted > .entry-meta .post-body {
  background-color: #322a2a;
}

@media screen and (max-width: 960px) {
  .post-content {
    margin: 0;
  }

  .entry-meta {
    display: flex;
    flex-direction: column;
    background-color: #1e1d22;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 20px 10px;
  }
}