/* epigraph base styling */
.epigraph {
  font-style: italic;
  margin: 2rem 0;
}

/* light mode */
[data-bs-theme="light"] .epigraph {
  color: #555;
}

/* dark mode */
[data-bs-theme="dark"] .epigraph {
  color: #b0b0b0;
}

.epigraph footer {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9em;
}

[data-bs-theme="light"] .epigraph footer {
  color: #777;
}

[data-bs-theme="dark"] .epigraph footer {
  color: #9a9a9a;
}

.epigraph {
  border-left: 3px solid var(--bs-primary);
  padding-left: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  text-align: center;
}

/* Reading progress bar */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #4e79a7;
  z-index: 9999;
  width: calc(100% * var(--scroll) );
}
