.index-header {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  display: block;
  -webkit-line-clamp: unset;
}

.index-img img {
  background: #eef1f5;
}

.markdown-body img[srcset] {
  height: auto;
}

.mobile-toc {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-toc {
    display: block;
    margin: 0 0 1.5rem;
    border: 1px solid rgba(128, 128, 128, 0.22);
    border-radius: 0.6rem;
    background: rgba(128, 128, 128, 0.06);
  }

  .mobile-toc summary {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color);
  }

  .mobile-toc nav {
    padding: 0 1rem 0.9rem;
  }

  .mobile-toc ol {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
  }

  .mobile-toc a {
    display: inline-block;
    padding: 0.25rem 0;
  }
}

@media (max-width: 767.98px) {
  .header-inner {
    height: auto !important;
    max-height: none !important;
  }

  #banner > .full-bg-img {
    height: auto;
  }

  #banner .mask {
    position: relative;
    min-height: 225px;
    padding: 85px 0 50px;
  }

  .d2pe-post #banner .mask {
    min-height: 300px;
  }

  .banner-text {
    width: 88%;
  }

  #subtitle {
    display: block;
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .banner .post-metas {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .index-card {
    margin-bottom: 2rem;
  }

  .index-info {
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner[parallax="true"] {
    transition: none !important;
    transform: none !important;
  }
}
