/* Grid op de Index */
.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

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

.blog-post-card:hover .blog-post-image img { transform: scale(1.08); }

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

/* Detail Pagina (post.php) */
.blog-post-container {
  max-width: 850px;
  margin: 40px auto;
}

.blog-hero-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

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

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

/* Blog Post Detail Styling */
.blog-post-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.post-header h1 {
    font-family: 'Dancing Script', cursive; /* Voor Trouw */
    color: var(--accent-color);
    margin-bottom: 10px;
}

.post-meta {
    margin-bottom: 30px;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.main-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.blog-content {
    margin: 30px 0;
    line-height: 1.8;
}

/* Galerij */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Lightbox Quick CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}