/* 1. Round corners for images inside post content */
.entry-content img,
.post-content img,
.wp-block-image img {
  border-radius: 20px;
  display: block;
  max-width: 100%;
  height: auto;
}

/* 2. Center image/figure blocks inside post content */
.entry-content .wp-block-image,
.post-content .wp-block-image,
.entry-content figure,
.post-content figure {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* 3. Optional: nicer caption style */
.entry-content figcaption,
.post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b7280;      /* soft gray */
  font-style: italic;
}

/* Force center any block marked as aligncenter (Gutenberg) */
.aligncenter,
.entry-content .wp-block-image.aligncenter,
.post-content .wp-block-image.aligncenter,
.entry-content figure.aligncenter,
.post-content figure.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  display: block !important;
}

/* Make the image itself behave nicely when centered */
.entry-content .wp-block-image.aligncenter img,
.post-content .wp-block-image.aligncenter img,
.aligncenter img {
  display: inline-block !important;
}

/* Limit reading width for post content */
.entry-content,
.post-content,
.wp-block-post-content {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Floating TOC on the left */
#toc {
    position: fixed;
    top: 120px; /* distance from top */
    left: 20px; /* distance from left edge */
    width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
}

#toc a {
    display: block;
    color: #555;
    margin-bottom: 6px;
    text-decoration: none;
}

#toc a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
  #toc {
    display: none;
  }
}





