.sphinx_header_logo,
.sphinx_header_logo > a,
.sphinx_header_logo > a > div {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}

/* Target the img with maximum specificity */
header .sphinx_header_logo img,
.sphinx_header_logo > a > div > img,
.sphinx_header_logo img {
  height: 150px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
}

/* Prevent the header row from clipping */
header,
.sphinx_header,
[class*="header"] {
  overflow: visible !important;
  height: auto !important;
  min-height: fit-content !important;
}