/* images-styles.css — estilos para imágenes de contenido Puckómetro */

article figure {
  margin: 2rem 0;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

article figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

article figure figcaption {
  padding: 0.9rem 1.2rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* Hero image inherits layout from [data-content="hero"] figure rules */
[data-content="hero"] figure {
  background: transparent;
  border: none;
  border-radius: 12px;
  margin: 1rem 0 0;
  overflow: hidden;
}

[data-content="hero"] figure img {
  border-radius: 12px;
  aspect-ratio: 1200 / 630;
}

/* Responsive adjustments */
@media (max-width: 720px) {
  article figure {
    margin: 1.5rem 0;
    border-radius: 6px;
  }

  article figure img {
    border-radius: 6px 6px 0 0;
  }

  article figure figcaption {
    padding: 0.75rem 1rem 0.9rem;
    font-size: 0.85rem;
  }

  [data-content="hero"] figure {
    border-radius: 8px;
  }

  [data-content="hero"] figure img {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  article figure {
    margin: 1.25rem 0;
  }

  article figure figcaption {
    padding: 0.7rem 0.9rem 0.8rem;
    font-size: 0.8rem;
  }
}
