/* ===== IJssel Divi Blog Cards =====
   Doel: gelijke hoogte, nette grid, compacte witruimte, consistente afbeeldingen.
   Werkt met Divi Blog Module (.et_pb_blog_grid)
*/

/* 1) Zet Divi Masonry om naar echte Grid */
.et_pb_blog_grid .et_pb_salvattore_content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}

/* Masonry wrappers neutraliseren */
.et_pb_blog_grid .et_pb_salvattore_content .column {
  display: contents !important;
  width: auto !important;
  min-height: 0 !important;
}

/* 2) Card basis */
.et_pb_blog_grid .et_pb_post {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #9CC224 !important;           /* subtiele groene rand */
  border-radius: 0px !important;
  overflow: hidden;                     /* zodat corners ook bij image gelden */
  padding: 0;                           /* padding komt in body */
  transition: box-shadow .2s ease, transform .2s ease;
}

.et_pb_blog_grid .et_pb_post:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* 3) Afbeelding: vaste verhouding + full-bleed */
.et_pb_blog_grid .entry-featured-image-url {
  display: block;
  margin: 0 !important;
  aspect-ratio: 16/9;                   /* 3:2 of 4:3 kan ook; 16:9 oogt modern */
  overflow: hidden;
  line-height: 0;
}
.et_pb_blog_grid .entry-featured-image-url img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
	padding: 20px;
}

/* 4) Inhoud */
.et_pb_blog_grid .post-content,
.et_pb_blog_grid .entry-title,
.et_pb_blog_grid .post-meta {
  padding-left: 12px;
  padding-right: 12px;
}

.et_pb_blog_grid .entry-title {
  margin: 12px 12px 8px !important;
  line-height: 1.25;
}
.et_pb_blog_grid .post-meta {
  margin: 0 12px 12px !important;
  font-size: 14px;
  opacity: .85;
}
.et_pb_blog_grid .post-content {
  margin-top: 0;
  padding-bottom: 12px;
}

/* 5) Button/Link onderaan netjes uitlijnen (als je "lees meer" gebruikt) */
.et_pb_blog_grid .more-link {
  margin-top: auto;
  padding: 0 22px 22px;
  display: inline-block;
}

/* 6) Responsive kolommen */
@media (max-width: 1200px) {
  .et_pb_blog_grid .et_pb_salvattore_content {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px !important;
  }
}
@media (max-width: 980px) {
  .et_pb_blog_grid .et_pb_salvattore_content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_salvattore_content {
    grid-template-columns: 1fr;
    gap: 18px !important;
  }
}

/* 7) Optioneel: beperk maximaal de row-breedte lichtjes */
@media (min-width: 981px) {
  .et_pb_section .et_pb_row {
    width: 95%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 8) Extra typografische polish */
.et_pb_blog_grid .entry-title a {
  text-decoration: none;
}
.et_pb_blog_grid .entry-title a:hover {
  text-decoration: underline;
}

/* 9) Fallback: als Divi extra marge tussen image en titel zet, overschrijven */
.et_pb_blog_grid .et_pb_post .entry-featured-image-url { margin-bottom: 0 !important; }
.et_pb_blog_grid .et_pb_post .entry-title { margin-top: 18px !important; }
