/* Let the header grow if a parent is capping height */
.pkp_site_name,
.pkp_site_name .is_img {
  height: auto !important;
  max-height: none !important;
}

/* Force the logo size with higher specificity and !important */
header.pkp_structure_head .pkp_site_name .is_img img,
.pkp_site_name .is_img img {
  max-height: 348px !important;
  height: auto !important;
  width: auto !important;
  display: inline-block; /* avoids some flex/line-height quirks */
}

/* Optional: reduce extra spacing if the header gets too tall */
header.pkp_structure_head {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Keep it reasonable on phones */
@media (max-width: 576px){
  header.pkp_structure_head .pkp_site_name .is_img img { max-height: 160px !important; }
}
