.like-comment-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px; /* Spacing between buttons */
  justify-content: flex-start; /* Align buttons to the left */
}

.like-comment-share button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.like-comment-share button:hover {
  background-color: #e8f0fe;
  color: #007bff;
}

.like-comment-share button i {
  font-size: 18px;
}

/* Styles for upvote and downvote buttons */
.like-comment-share .upvote-btn,
.like-comment-share .downvote-btn {
  padding: 14px 20px; /* Increase padding */
  font-size: 16px; /* Slightly larger font */
  background-color: #f0f8ff; /* Light blue background */
}

.like-comment-share .upvote-btn:hover,
.like-comment-share .downvote-btn:hover {
  background-color: #d6eaff; /* Darker blue on hover */
  color: #0056b3; /* Dark blue text */
}

.like-comment-share .score {
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

/* Link Preview Styles */
.post-link-preview {
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.link-preview-card {
  display: flex;
  padding: 15px;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.link-preview-card.no-image {
  flex-direction: column;
  gap: 12px;
}

.link-preview-card.no-image .link-preview-content {
  padding: 0;
}

.link-preview-card:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.link-preview-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-preview-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-preview-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.link-preview-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.link-preview-url {
  color: #999;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-preview-url:hover {
  text-decoration: underline;
}


.main-content .post-item .post-single-box .comments-area .single-comment-area .parent-comment .avatar-item:before{
  display: none !important;
}

/* Post Images - Full Size Display */
.post-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  width: 100%;
}

.post-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  background: #f8f9fa;
  max-width: 100%;
  margin: 0 auto;
}

.post-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.post-img img {
  width: 100%;
  height: auto; /* Changed from fixed height to auto */
  max-height: none; /* Remove max-height constraint */
  object-fit: contain; /* Changed from cover to contain to show full image */
  border-radius: 16px;
  transition: all 0.3s ease;
  display: block;
}

.post-img:hover img {
  transform: scale(1.02);
  filter: brightness(1.05) contrast(1.02);
}

/* For very wide images, add some max-width constraint */
@media (min-width: 1200px) {
  .post-img {
    max-width: 1000px;
  }
}

/* For mobile, ensure images fit the screen */
@media (max-width: 768px) {
  .post-images {
    gap: 15px;
  }

  .post-img {
    border-radius: 12px;
  }

  .post-img img {
    border-radius: 12px;
  }
}

/* Enhanced Image Gallery Modal */
.image-gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.image-gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  max-height: 100vh;
}

/* Close Button */
.gallery-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid white;
  color: #000;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-close-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid white;
  color: #000;
  font-size: 36px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gallery-prev-btn {
  left: 20px;
}

.gallery-next-btn {
  right: 20px;
}

/* Main Image Container */
.gallery-main-image {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

/* Loading Spinner */
.gallery-loading {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Image Counter */
.gallery-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10001;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Thumbnail Strip */
.gallery-thumbnails {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  overflow-x: auto;
  z-index: 10001;
}

.thumbnails-container {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.gallery-thumbnail:hover {
  opacity: 1;
  transform: scale(1.1);
}

.gallery-thumbnail.active {
  border-color: #007bff;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .gallery-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .gallery-prev-btn {
    left: 10px;
  }

  .gallery-next-btn {
    right: 10px;
  }

  .gallery-close-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }

  .gallery-main-image {
    max-width: 95%;
    max-height: 80%;
  }

  .gallery-counter {
    bottom: 20px;
    font-size: 12px;
    padding: 6px 12px;
  }

  .gallery-thumbnails {
    bottom: 60px;
    max-width: 90%;
  }

  .thumbnails-container {
    padding: 8px;
  }

  .gallery-thumbnail {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .gallery-nav-btn {
    display: none; /* Hide navigation buttons on very small screens, use swipe */
  }

  .gallery-thumbnails {
    display: none; /* Hide thumbnails on very small screens */
  }
}