/* GRID OP INDEX.PHP */
.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: 0.3s;
}

.blog-post-card:hover {
  transform: translateY(-8px);
}

.blog-post-image {
  height: 220px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content {
  padding: 20px;
}

/* DETAIL PAGINA (POST.PHP) */
.blog-post-container {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

/* TinyMCE Content styling */
.blog-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.blog-content h2, .blog-content h3 {
  color: var(--accent-color);
  margin-top: 1.5em;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.post-gallery img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}