figure {
  width: 90%;
  margin: auto;
}

figure img {
  display: block;
  max-width: 90%;
}

figure figcaption {
  display: block;
  color: gray;
  text-align: center;
}

.zola-anchor {
  color: inherit;
  text-decoration: none;
}

.zola-anchor:hover::after {
  content: ' 🔗';
}

aside {
  border: 2px var(--aside-color) dotted;
  box-sizing: border-box;
  color:  var(--aside-color);
  font-style: italic;
  padding: 10px;
  width: 100%;
}

aside em {
  font-style: normal;
}

aside:nth-of-type(odd) {
  right: 3%;
}

aside:nth-of-type(even) {
  left: 3%;
}

@media (min-width: 1250px) {
  aside {
    border: none;
    position: absolute;
    width: 20%;
    /* minor hack until I can figure out how to position it relative to the previous paragraph. */
    margin-top: -5rem;
  }
}

blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 1.5em 10px;
  padding: 1em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote:before {
  color: #ccc;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

cite.article {
  font-style: normal;
}

cite.article::before {
  content: "\201C";
}

cite.article::after {
  content: "\201D";
}

code:not(pre code) {
  background-color: lightgray;
  padding: 0 .25rem;
}

iframe {
  display: block;
  margin: 10px auto;
}

/*
 * Zola said to include this to make code blocks look good
 * https://www.getzola.org/documentation/content/syntax-highlighting/#styling-codeblocks
 */
pre {
  position: relative;
  font-size: 14px;
}

pre[data-name]::before {
  border-radius: 0.25rem 0.25rem;
  font-size: 12px;
  letter-spacing: .05rem;
  padding: .1rem .5rem;
  position: absolute;
  margin-top: 0;
  width: fit-content;
  top: -1rem;
  right: .5rem;
  /* left: 5.5rem; */
  /* text-align: right; */
  content: attr(data-name);
  background: lightgrey;
  color: var(--text-color);
  visibility: visible;
}

pre[data-linenos] {
  padding: 1rem 0;
}

pre code {
  padding: 1rem;
  display: block;
  overflow-x: auto;
}

pre table td {
  padding: 0;
}

pre table td:nth-of-type(1) {
  text-align: center;
  user-select: none;
}
pre mark {
  display: block;
  background-color: rgba(254, 252, 232, 0.9);
}

pre table {
  width: 100%;
  border-collapse: collapse;
}

