/* Licensed visual prompts keep their example paired with the prompt. */
.resource-card__link { flex-direction: column; padding: 0; }
.resource-card__body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 1.15rem; }
.resource-card__media { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: var(--surface-muted); }
.resource-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 420ms cubic-bezier(.22, 1, .36, 1); }
.resource-card:hover .resource-card__media img { transform: scale(1.025); }
.resource-card__media figcaption { position: absolute; right: .55rem; bottom: .55rem; max-width: calc(100% - 1.1rem); overflow: hidden; padding: .35rem .5rem; border-radius: .45rem; background: rgba(18, 21, 18, .82); color: #fbfbf8; font: 500 .46rem var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.resource-card--visual h3 { margin-top: 1.6rem; }

.resource-gallery { margin: 0 0 clamp(3rem, 6vw, 5rem); padding: clamp(1rem, 2vw, 1.5rem); border-radius: 0 1.35rem 0 1.35rem; background: var(--surface); }
.resource-gallery > header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1rem; }
.resource-gallery > header span { color: var(--muted); font: 500 .5rem var(--mono); }
.resource-gallery > header strong { display: block; margin-top: .4rem; font: 700 clamp(1.35rem, 2.2vw, 2rem) / 1.15 var(--display); }
.resource-gallery > header p { margin: 0; color: var(--muted); font: 500 .54rem var(--mono); }
.resource-gallery__grid { display: grid; gap: .8rem; }
.resource-gallery figure { margin: 0; overflow: hidden; border-radius: 1rem 0 1rem 0; background: var(--surface-muted); }
.resource-gallery img { width: 100%; max-height: 58rem; display: block; object-fit: contain; background: #151815; }
.resource-gallery figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; color: var(--muted); font: 500 .52rem var(--mono); }
.resource-gallery figcaption a { color: var(--ink); }
.resource-gallery__license { margin: .8rem 0 0 !important; color: var(--muted); font: 400 .56rem / 1.6 var(--mono) !important; }

@media (max-width: 520px) {
  .resource-gallery > header { align-items: start; flex-direction: column; gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card__media img { transition: none; }
}
