/* Limited to the photo editor and uploaded portraits; no global theme changes. */
.about-photo-editor { min-width: 0; }
.about-photo-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}
.about-photo-editor__preview { margin: 0; min-width: 0; }
.about-photo-editor__preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
  border: 1px solid var(--line);
}
.about-photo-editor__preview figcaption { margin-top: .6rem; font-size: .8rem; overflow-wrap: anywhere; }
.about-photo-editor__empty { padding: 1rem; border: 1px dashed var(--line-strong); }
.about-photo-editor__empty p { margin: 0; }
.about-photo-editor .terminal-form { min-width: 0; }
.about-photo-editor .terminal-form input[type="file"] { max-width: 100%; min-width: 0; }
.about-component .about-component__portrait--uploaded {
  width: min(100%, 15rem);
  height: 18.75rem;
  margin: 0;
  padding: 0;
  justify-self: center;
  overflow: hidden;
}
.about-component .about-component__portrait--uploaded img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}
.about-component--photo-managed .about-component__body { min-width: 0; }
.about-component--photo-hidden .about-component__body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .about-photo-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo-editor__preview { width: min(100%, 15rem); }
  .about-component--photo-managed .about-component__body { grid-template-columns: minmax(0, 1fr); }
}
