body {
  background-color: #333;
}

.card {
  width: 650px;
  background-color: #444;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.author-pane {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.author-info {
  color: #fff;
}

.author-name-username-container {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.author-name {
  font-weight: bold;
  margin-right: 10px;
}

.username {
  color: #ccc;
  margin-right: 10px;
}

.relative-time {
  color: #ccc;
  font-size: 14px;
}

.post-area {
  margin-bottom: 20px;
}

.post-title {
  font-weight: bold;
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.post-text {
  font-size: 16px;
  color: #ccc;
}

.media-area {
  text-align: center;
  max-height: 100vh;
  overflow-y: auto; 
}

.post-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-image {
  width: calc(25% - 10px);
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}
.image-gallery.single-image {
  justify-content: center;
}

.image-gallery.single-image .gallery-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.expanded-image-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

.expanded-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
}

.close-expanded-image-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}