.profile-directory-return {
  font-size: 12px;
  font-weight: 700;
  margin: 0 auto 34px !important;
  text-align: center;
}

.professional-comments {
  margin-bottom: 44px;
  margin-top: 24px;
}

@media (max-width: 1120px) {
  .profile-hero-grid {
    grid-template-columns: 185px minmax(0, 1fr) 235px;
  }

  .professional-profile-portrait,
  .professional-profile-portrait > img,
  .professional-profile-portrait > .professional-portrait-placeholder {
    height: 175px;
    width: 175px;
  }

  .profile-content-grid {
    grid-template-areas:
      "about about"
      "map information"
      "map contact"
      "locality share";
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  }
}

@media (max-width: 860px) {
  .profile-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .profile-hero::before {
    left: 0;
  }

  .profile-hero-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .professional-profile-portrait,
  .professional-profile-portrait > img,
  .professional-profile-portrait > .professional-portrait-placeholder {
    height: 145px;
    width: 145px;
  }

  .profile-verification {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .profile-verification ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
  }

  .profile-contact-banner {
    grid-template-columns: 50px 1fr;
  }

  .profile-contact-banner .profile-primary-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .profile-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .profile-hero::before {
    background-position: 65% center;
    inset: 0;
    opacity: 0.32;
  }

  .profile-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), #fff 67%, #fff8fa 100%);
  }

  .profile-breadcrumb {
    overflow: hidden;
    padding-top: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 4px;
    text-align: center;
  }

  .professional-profile-portrait {
    margin: 0 auto;
  }

  .profile-member-line,
  .profile-primary-actions,
  .profile-quick-facts {
    justify-content: center;
  }

  .profile-quick-facts > div {
    text-align: left;
  }

  .profile-verification {
    text-align: left;
  }

  .profile-content-grid {
    display: flex;
    flex-direction: column;
    padding-top: 14px;
  }

  .profile-about {
    order: 1;
  }

  .profile-map-panel {
    order: 2;
  }

  .profile-information {
    order: 3;
  }

  .profile-contact-panel {
    order: 4;
  }

  .profile-locality {
    order: 5;
  }

  .profile-share-panel {
    order: 6;
  }

  .profile-map-frame,
  .profile-map-frame iframe {
    min-height: 340px;
  }

  .profile-share-panel .share-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-share-panel .share-button {
    width: 100%;
  }

  .profile-contact-banner {
    margin-left: 20px;
    margin-right: 20px;
  }

  .profile-contact-banner .profile-action {
    flex: 1 1 100%;
  }
}

@media (max-width: 430px) {
  .professional-profile-heading h1 {
    font-size: 33px;
  }

  .profile-primary-actions .profile-action {
    flex: 1 1 100%;
  }

  .profile-quick-facts {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-quick-facts > div {
    justify-content: center;
  }

  .profile-verification ul {
    display: block;
  }

  .profile-contact-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-contact-banner-icon {
    margin: 0 auto;
  }
}
