/* Fixes on top of the old theme (karlovsek, StructurePress-based). Loaded last.
   Below 992px the theme switches to its phone/tablet layout; desktop is untouched. */
@media (max-width: 991.98px) {
  /* The theme pulls the logo 2rem to the left (cut off on phones) and floats
     it; center it instead. */
  .header__logo {
    float: none;
    width: auto;
    height: auto;
    margin: 1.25rem auto 1rem;
    text-align: center;
  }
  .header__logo img {
    max-width: 100%;
    height: auto;
  }

  /* Pictures inside text blocks sit in the middle of the column. */
  .textwidget img.alignnone,
  .textwidget img.alignleft,
  .textwidget img.alignright,
  .entry-content img.alignnone,
  .entry-content img.alignleft,
  .entry-content img.alignright,
  .wp-post-image {
    float: none;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Label on the contact card (O podjetju): equal space on both sides. */
  .contact-profile__name {
    left: 0.9375rem;
    right: 0.9375rem;
    text-align: center;
  }
}
