.md-typeset img:not(.twemoji):not(.high-quality):not(.gif-demo) {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 2rem auto;
}


img.high-quality {
  max-width: none;
  width: auto;
}
/* Stretch the content area wider */
.md-grid {
  max-width: none !important;
  width: 100% !important;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}
/* Target the logo image directly and remove all constraints */
.md-header__button.md-logo img {
  height: 40px !important;     /* Make this as large as you want */
  max-height: none !important;
  width: auto !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Adjust the button container so the logo has room */
.md-header__button.md-logo {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.md-content .gif-demo {
  max-width: 600px;
  max-height: 300px;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem; /* Optional */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional */
}

.md-typeset h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2rem 0 1rem;
}

.md-typeset h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.75rem 0 1rem;
}

.md-typeset h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
}

.md-typeset h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
}

.md-typeset h5 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 1rem 0 0.5rem;
}

.md-typeset h6 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem;
}
