/* Journal-specific OJS 3.5 correction: keep the supplied logo readable. */
.pkp_structure_head .pkp_site_name .is_img {
  background: #fff;
  padding: 5px 8px;
}

.pkp_structure_head .pkp_site_name .is_img img {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: 100%;
}

/* Give the full mark and its tagline room beside the mobile menu button. */
@media (max-width: 991px) {
  .pkp_site_name_wrapper,
  .pkp_site_nav_toggle {
    height: 72px;
  }

  .pkp_structure_head .pkp_site_name {
    top: 0;
    left: 40px;
    right: 0;
    padding-left: 10px;
    overflow: visible;
  }

  .pkp_structure_head .pkp_site_name .is_img {
    max-width: calc(100% - 10px);
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 5px;
  }

  .pkp_structure_head .pkp_site_name .is_img img {
    max-height: 56px;
  }
}

/* The PKP brand artwork has an intrinsic width larger than its footer link. */
.pkp_brand_footer a {
  width: 150px;
  max-width: 100%;
}

.pkp_brand_footer a img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .pkp_brand_footer {
    padding: 24px 15px;
  }

  .pkp_brand_footer a {
    float: none;
    margin: 0 auto;
  }
}

/* Keep the PKP brand legible on the dark journal footer. */
.pkp_structure_footer_wrapper .pkp_brand_footer img {
  filter: invert(1);
}
