figure.rounded-circle img {
  width: 100%;
  height: 100%;
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
}

#social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

#social-links .soc {
  font-size: 2rem !important;
  border-bottom: none !important;
}

#social-links .soc i {
  font-size: 2rem !important;
}

#social-links .soc svg {
  width: 2rem !important;
  height: 2rem !important;
}

#social-links .soc:hover {
  background-color: transparent !important;
  color: var(--maincolor) !important;
}

/* remove default grey border on images */
img {
  border: none;
}

/* center figures */
figure {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* fix styling of lists in posts */
li:not(.post) {
  font-family: 'Fira Sans', sans-serif;
}

/* fix vertical alignment of bullet asterisk */
ul > li::before {
  vertical-align: -0.2em;
}

/* heading hierarchy */
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 1.3em;
}

/* code badge contrast fixes */
.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
  background: #323330;
  color: #f7df1e;
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
  background: #3572A5;
  color: #fff;
}

/* dark mode inline code fix */
@media (prefers-color-scheme: dark) {
  code {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }
}

/* hide TOC on narrow screens */
@media screen and (max-width: 1100px) {
  .toc {
    display: none;
  }
}

/* blog list breathing room */
ul.posts li.post {
  margin-bottom: 0.5em;
}

/* current page nav indicator */
nav a.active {
  font-weight: bold;
}

/* pagination styling */
ul.pagination {
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px dotted var(--bordercl);
}
.page-link {
  font-weight: bold;
  padding: 0.3em 0.6em;
}

/* mobile overrides */
@media screen and (max-width: 600px) {
  body {
    margin: 0;
  }
  .content {
    padding: 0 1rem;
  }
  #social-links {
    gap: 1rem;
  }
  #social-links .soc,
  #social-links .soc i {
    font-size: 1.5rem !important;
  }
  #social-links .soc svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }
}

/* figure image object-fit to prevent distortion (excludes circular images) */
figure:not(.rounded-circle) img {
  object-fit: contain;
}
