/* Tuotu Astro-projektista: src/styles/teal-portrait.css (bin/sync-astro.py). */
/* The bottom of the photo and the brand square share one baseline. The
   width ratio is set per portrait so the head rises just above the square. */
.teal-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 26rem);
  margin-inline: auto;
}

.teal-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *))::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  aspect-ratio: 1;
  background: #4cc8bf;
}

.teal-portrait img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: block;
  width: var(--photo-width);
  max-width: none;
  height: auto;
  margin-inline: auto;
  border-radius: 0;
}

/* The square owns the size on these original WordPress media slots. */
main picture.teal-portrait.wp-studio-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  width: min(100%, 32rem);
  max-height: none;
  border-radius: 0;
}

main picture.wp-studio-portrait img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  width: var(--photo-width) !important;
  max-height: none !important;
  height: auto;
  border-radius: 0;
}

body .feature-row--rails .wp-media:has(.wp-studio-portrait) {
  background: transparent;
}

@media (max-width: 960px) {
  .split-hero-card picture.wp-studio-portrait {
    max-width: 20rem;
  }
}
