.tilted-card-figure {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.tilted-card-inner {
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilted-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  will-change: transform;
}

.tilted-card-caption {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 6px;
  background: var(--color-text, #2d2d2d);
  color: var(--color-bg, #fff);
  padding: 4px 10px;
  font: 600 11px var(--font-heading, inherit);
  opacity: 0;
  z-index: 3;
  white-space: nowrap;
  transform: translate(-50%, -140%);
  transition: opacity 0.2s ease;
}

@media (max-width: 640px) {
  .tilted-card-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilted-card-inner {
    transition: none;
  }
}
