/* Project page layout styles */
.project-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.toc-column {
  flex: 0 0 250px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.content-column {
  flex: 1;
  min-width: 0;
}

/* TOC styling */
.toc {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
  border-radius: 6px;
}

html.dark-mode .toc {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.toc h2 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.toc ul {
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

/* Make images in project content look better */
.content-column img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* First image in content gets special treatment */
.content-column p:first-child img {
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-container {
    flex-direction: column;
  }
  
  .toc-column {
    flex: 0 0 auto;
    position: relative;
    max-height: none;
    margin-bottom: 2rem;
  }
}
