/* ABOUT PAGE: portrait and biographical content */

.about-layout {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  min-height: 500px;
  margin: 0;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-soft);
}

.about-portrait {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.about-portrait img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(340px, 100%);
  max-height: 450px;
  object-fit: contain;
}

.about-content {
  display: flex;
  flex: 0 1 780px;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content p {
  margin: 0.5rem 0;
}


@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto;
    padding: 2rem 1rem;
  }

  .about-portrait img {
    max-width: min(280px, 82vw);
    max-height: 360px;
  }

  .about-content {
    flex: 0 1 auto;
  }
}
