/* Match the existing object-fit: contain photos without adding an image crop. */
#member-portfolios .portfolio-insight-photo {
  position: relative;
}

#member-portfolios .portfolio-insight-mark {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#member-portfolios .portfolio-insight-photo-ready .portfolio-insight-mark {
  visibility: visible;
}

#member-portfolios .portfolio-insight-mark :is(path, circle) {
  vector-effect: non-scaling-stroke;
}

#member-portfolios .portfolio-insight-halo {
  stroke: rgb(0 0 0 / .76);
  stroke-width: 3px;
}

#member-portfolios .portfolio-insight-ink {
  stroke: rgb(255 255 255 / .95);
  stroke-width: 1.35px;
}

#member-portfolios .portfolio-insight-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  align-items: baseline;
}

#member-portfolios .portfolio-insight-note {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-weight: 550;
  overflow-wrap: anywhere;
}

#member-portfolios .portfolio-insight-note[hidden] {
  display: none;
}

#member-portfolios .portfolio-insight-note svg {
  position: relative;
  top: .12em;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The frame is the public photo's coordinate space. Do not crop members or
   break registration between the photo, its privacy finish and annotations. */
:is(#member-portfolios,.ed-method) .ed-photo{position:relative;isolation:isolate;display:block;aspect-ratio:4/3;height:auto;max-height:none;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--surface) 96%,var(--text))}
:is(#member-portfolios,.ed-method) .ed-photo>img,:is(#member-portfolios,.ed-method) .ed-photo>.lesson-matte{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center}
:is(#member-portfolios,.ed-method) .ed-photo>img{filter:saturate(.73) contrast(.97)}
.lesson-matte{pointer-events:none;filter:saturate(.73) contrast(.97)}
#member-portfolios .ed-portraits .ed-photo{aspect-ratio:3/4}
:is(#member-portfolios,.ed-method) .ed-photos,.ed-portfolio .ed-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.25vw,18px);align-items:start;max-width:none}
#member-portfolios .ed-wide .ed-photo{aspect-ratio:16/10}
:is(#member-portfolios,.ed-method) .ed-fig figcaption{min-width:0;display:grid;align-content:start;gap:3px;padding:7px 0 0;margin:0;line-height:1.45;font-size:14px;font-weight:550;color:var(--body);text-wrap:pretty;overflow-wrap:anywhere}
#member-portfolios .portfolio-insight-note{font-size:12px;color:var(--mute);font-weight:500}
#member-portfolios .portfolio-insight-ink{stroke:#ffe3b4}#member-portfolios .portfolio-insight-mark{z-index:2}
#member-portfolios .ed-more{margin-top:16px}#member-portfolios .ed-more>summary{min-height:48px}
#member-portfolios .ed-record-facts{display:grid;gap:7px}#member-portfolios .ed-record-facts .ed-facts{margin:0}#member-portfolios .ed-record-facts .ed-facts>div:first-child{border-top:0}#member-portfolios .ed-more-body>.ed-testimonial{margin:0}
#member-portfolios .ed-more-body{max-width:900px}.ed-photo:has(#member-c-heel-support){scroll-margin-top:100px}
@media(max-width:780px){#member-portfolios .ed-portraits{max-width:540px}}
@media(max-width:540px){#member-portfolios .ed-wide{grid-template-columns:minmax(0,1fr)}#member-portfolios .ed-wide .ed-photo{aspect-ratio:16/9}#member-portfolios .ed-photos .ed-photo,.ed-method .ed-photos .ed-photo{aspect-ratio:1/1;max-height:none}#member-portfolios .ed-chapter .ed-fig figcaption,.ed-method .ed-fig figcaption{font-size:13px}}
