/* UX: manter o print inteiro e legível, sem cortes ou zoom forçado. */
.before-after{height:auto;align-items:start}.before-after figure{height:auto;aspect-ratio:422/339;background:#572b6b;clip-path:inset(0 round 16px)}.before-after img{width:100%;height:auto;aspect-ratio:422/339;object-fit:contain;object-position:center;transform:none}.before-after figcaption{bottom:0}.case-card:has(.before-after) .metric{margin-top:10px}@media(max-width:991px){.before-after{gap:8px}.before-after figure{border-radius:14px}}@media(max-width:575px){.before-after{padding-top:10px}.before-after figure{aspect-ratio:422/339}.before-after img{aspect-ratio:422/339}.case-card:has(.before-after) .metric{margin-top:8px}}

/* Legenda fora da foto: imagem em cima e “Antes/Depois” abaixo. */
.before-after figure {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  aspect-ratio: auto;
}

.before-after figure img {
  flex: 0 0 auto;
}

.before-after figure figcaption {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  padding: 6px 4px;
  background: #572B6B;
  color: #F8F8F8;
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
}
