Sliding caption

Sliding caption: a CSS card. Copy the rules, or the prompt that rebuilds it.

imageoverlayhover-revealcaptionslide-up

Harbor at dusk

Series 03 · 24 frames

CSS
.card-040 {
  position: relative;
  width: 280px;
  height: 200px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg,#fbbf24,#f97316 45%,#7c2d12);
  font-family: system-ui,sans-serif;
  cursor: pointer
}
.card-040 figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: rgba(15,23,42,.85);
  color: #fff;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1)
}
.card-040:hover figcaption {
  transform: none
}
.card-040 h3 {
  margin: 0 0 2px;
  font-size: 16px
}
.card-040 p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1
}
HTML
<figure class="card-040">
  <figcaption>
    <h3>Harbor at dusk</h3>
    <p>Series 03 · 24 frames</p>
  </figcaption>
</figure>
Prompt

Build a 280x200px image card (14px radius, overflow hidden) filled with a 160deg gradient #fbbf24 to #f97316 to #7c2d12 as the photo. A caption panel is pinned to the bottom, background rgba(15,23,42,.85), white 16px title and 12px #cbd5e1 subtitle, padding 16px 18px, hidden below the card with translateY(100%) and sliding up into view on hover over 350ms with cubic-bezier(.2,.8,.2,1).