.thoughts-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: #555555;
}

.thoughts-container h2 {
  font-size: 24px;
  margin-top: 60px;
  margin-bottom: 30px;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 10px;
  color: #777777;
}

.thoughts-list {
  margin-bottom: 60px;
}

.thoughts-list ul {
  list-style-type: none;
  padding: 0;
}

.thoughts-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  transition: transform 0.3s ease;
}

.thoughts-list li:hover {
  transform: translateX(5px);
}

.thought-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff6b6b;
  margin-right: 15px;
  flex-shrink: 0;
}

.thought-date {
  margin-left: auto;
  color: #999999;
  font-size: 14px;
  min-width: 80px;
  text-align: right;
}

.thoughts-writing article {
  margin-bottom: 40px;
}

.thoughts-writing h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #000000;
}

.thoughts-links ul {
  list-style-type: none;
  padding: 0;
}

.thoughts-links li {
  margin-bottom: 10px;
}

.thoughts-links a {
  color: #666666;
  text-decoration: none;
}

.thoughts-links a:hover {
  text-decoration: underline;
}

.thoughts-list a {
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  flex-grow: 1;
  position: relative;
  transition: color 0.3s ease;
}

/* Add these new styles for the line animation */
.thoughts-list a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ff6b6b;
  transition: width 0.3s ease;
}

.thoughts-list a:hover {
  color: #ff6b6b;
  text-decoration: none; /* Ensure no underline on hover */
}

.thoughts-list a:hover::after {
  width: 100%;
}

@media (max-width: 600px) {
  .thoughts-list li {
    flex-wrap: wrap;
  }

  .thought-date {
    width: 100%;
    margin-left: 21px;
    margin-top: 5px;
    text-align: left;
  }
}

.thoughts-gallery {
  margin-top: 60px;
}

.thoughts-gallery h2 {
  /* Remove any specific styles for this h2 if they exist */
  /* The styles from .thoughts-container h2 will apply */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px; /* Increased from 30px to 60px */
  margin-top: 30px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  margin: 0 auto;
}

.gallery-item p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.2;
  color: #666;
  text-align: center;
}

.gallery-item p:first-of-type {
  font-weight: bold;
  color: #333;
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 1px;
}

/* Adjust layout for medium-sized screens */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px; /* Increased for medium screens */
  }
}

/* Adjust layout for smaller screens */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px; /* Increased for smaller screens */
  }
}

.thoughts-container .quote-box,
.quote-box {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: #555555;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  transition: all 0.3s ease;
}

.quote-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}