/* Keep the portfolio caption below the artwork, including long translations. */
html[dir] .hero-art {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

html[dir] .hero-art > img {
  display: block;
  width: 100%;
  height: clamp(260px, 25vw, 360px);
  padding: 16px;
  object-fit: contain;
}

html[dir] .hero-art figcaption {
  position: static;
  inset: auto;
  max-inline-size: none;
  padding: 20px 24px;
  border: 0;
  border-top: 1px solid #dce5f0;
  box-shadow: none;
}

html[dir] .hero-art figcaption > span {
  font-size: 12px;
  line-height: 1.5;
}

html[dir] .hero-art strong {
  font-size: 23px;
  line-height: 1.3;
  margin-block: 8px;
}

html[dir] .hero-art a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
}

@media (max-width: 767px) {
  html[dir] .hero-art > img {
    height: clamp(260px, 75vw, 360px);
  }

  html[dir] .hero-art figcaption {
    padding: 16px 20px;
  }
}
