nav a {
  margin-right: 0.85rem;
}

article img,
.media-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

.media-image,
.media-video,
.media-embed {
  margin: 1.45rem 0;
}

.media-image img {
  cursor: zoom-in;
  margin: 0 auto;
}

.media-image-half {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.media-lightbox-link {
  display: block;
  line-height: 0;
}

.media-lightbox-link:hover {
  opacity: 0.96;
}

.media-video {
  width: 100%;
}

.media-video video {
  display: block;
  max-width: 100%;
}

.media-embed-frame {
  border: 0;
  display: block;
  max-width: 100%;
  width: 100%;
}

.media-embed-netease .media-embed-frame {
  height: 86px;
}

.media-image figcaption,
.media-video figcaption {
  color: #777;
  font-size: 0.9em;
  line-height: 1.55;
  margin-top: 0.45rem;
  text-align: center;
}

.post-slug-predestined .media-image img,
.post-slug-books-2024 .media-image img,
.post-slug-books-2022 .media-image img,
.post-slug-books-2021 .media-image img {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.post-slug-books-2024 .media-image img,
.post-slug-books-2022 .media-image img,
.post-slug-books-2021 .media-image img {
  max-height: 360px;
  width: auto;
}

.post-slug-sickle-cell {
  display: flow-root;
}

.post-slug-sickle-cell .media-image {
  box-sizing: border-box;
  float: left;
  margin: 0.75rem 0 1.1rem;
  width: calc(50% - 0.45rem);
}

.post-slug-sickle-cell .media-image:nth-of-type(odd) {
  margin-right: 0.9rem;
}

.post-slug-summer12 img[src*="/summer12/428-"] {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 48%;
  width: 100%;
}

.note-box {
  border: 1px dashed #aaa;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
}

.note-box p {
  margin: 0.45rem 0;
}

.media-embed-fallback {
  font-size: 0.9em;
  line-height: 1.55;
  margin: 0.55rem 0 0;
  text-align: center;
}

.media-status {
  color: #777;
  font-size: 0.9em;
  line-height: 1.55;
  margin: 0.45rem 0 0;
  text-align: center;
}

.media-status[hidden] {
  display: none;
}

.media-image.is-error .media-lightbox-link,
.media-video.is-error video {
  background: #f3f3f3;
  opacity: 0.62;
}

.media-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.88);
  bottom: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.media-lightbox.is-open {
  display: flex;
}

.media-lightbox img {
  cursor: zoom-out;
  display: block;
  max-height: calc(100vh - 7rem);
  max-width: min(100%, 1200px);
  object-fit: contain;
}

.media-lightbox-caption {
  color: #f4f4f4;
  font-size: 0.95em;
  line-height: 1.5;
  max-width: min(100%, 900px);
  text-align: center;
}

.media-lightbox-close,
.media-lightbox-prev,
.media-lightbox-next {
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  line-height: 1;
  padding: 0.45rem;
  position: fixed;
}

.media-lightbox-close {
  font-size: 2rem;
  right: 1rem;
  top: 0.7rem;
}

.media-lightbox-prev,
.media-lightbox-next {
  font-size: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
}

.media-lightbox-prev {
  left: 0.6rem;
}

.media-lightbox-next {
  right: 0.6rem;
}

.media-lightbox-close:hover,
.media-lightbox-prev:hover,
.media-lightbox-next:hover {
  text-decoration: none;
  opacity: 0.8;
}

body.media-lightbox-open {
  overflow: hidden;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

blockquote {
  border-left: 3px solid #d9d9d9;
  color: #666;
  font-style: normal;
  margin: 1.15rem 0;
  padding: 0.05rem 0 0.05rem 1rem;
}

blockquote p {
  margin: 0.45rem 0;
}

.post-title {
  font-size: 1.9em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.post-title-compact {
  font-size: 1.65em;
}

.post-title-tiny {
  font-size: 1.45em;
}

.post-navigator {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto minmax(0, max-content);
  column-gap: 0.65rem;
  justify-content: center;
  margin: 2rem 0 1rem;
  font-size: 0.95em;
  text-align: center;
}

.post-navigator a {
  margin-right: 0;
  min-width: 0;
}

.post-navigator-separator {
  color: #999;
  display: inline-flex;
  justify-content: center;
  width: 1em;
}

.post-navigator-next {
  text-align: center;
}

@media (max-width: 520px) {
  .media-image-half {
    width: 100%;
  }

  .post-slug-sickle-cell .media-image {
    float: none;
    margin: 1.45rem 0;
    width: 100%;
  }

  .post-slug-sickle-cell .media-image:nth-of-type(odd) {
    margin-right: 0;
  }

  .post-title {
    font-size: 1.55em;
    line-height: 1.25;
  }

  .post-title-compact,
  .post-title-tiny {
    font-size: 1.45em;
  }

  .post-navigator {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
  }

  .post-navigator a {
    text-align: right;
  }

  .post-navigator-separator {
    display: none;
  }

  .post-navigator-next {
    text-align: right;
  }
}

@media (prefers-color-scheme: dark) {
  blockquote {
    border-left-color: #5d6b70;
    color: #b8c1c5;
  }

  .media-image figcaption,
  .media-video figcaption,
  .media-status,
  .media-embed-fallback {
    color: #aab4b8;
  }

  .media-image.is-error .media-lightbox-link,
  .media-video.is-error video {
    background: #202528;
  }
}

.content-table {
  margin: 1.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-table table {
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.45;
  margin: 0;
  width: 100%;
}

.content-table th,
.content-table td {
  border-bottom: 1px solid #dedede;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: #f5f5f5;
  border-top: 1px solid #dedede;
  color: var(--heading-color);
  font-weight: 600;
  white-space: nowrap;
}

.content-table td:first-child {
  color: var(--heading-color);
  font-weight: 600;
  white-space: nowrap;
}

.content-table-columns-3 table {
  min-width: 38rem;
}

.content-table-columns-4 table,
.content-table-columns-5 table {
  min-width: 48rem;
}

.route-steps {
  display: block;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.route-step {
  display: block;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.route-step + .route-step {
  margin-top: 0.35rem;
}

.route-costs,
.route-notes {
  display: block;
  font-weight: 400;
  line-height: 1.75;
  white-space: normal;
}

@media (prefers-color-scheme: dark) {
  .content-table th {
    background: #0b303a;
  }

  .content-table th,
  .content-table td {
    border-color: #35515a;
  }
}
