/* ---------------------------------------------------------------------------
 * Blog/archive card grid — equal height, clamped excerpt, bottom-pinned
 * READ MORE, whole (uncropped) thumbnails in a fixed 3:2 box.
 *
 * Source: page 97478's _et_pb_custom_css, moved out so /news/ and every archive
 * that renders through the Theme Builder share ONE source. Divi names the
 * module .et_pb_blog_0 on a page and .et_pb_blog_0_tb_body inside a Theme
 * Builder body layout, so every rule carries both.
 * ------------------------------------------------------------------------ */
/* 2. Equal card height. The grid already stretches each item to the row
   height (align-items:normal), but .et_pb_post computes display:block so the
   spare height is unused and READ MORE trails the text. Making the card a
   flex column gives that height somewhere to go. House pattern from
   .service-card-container in the child theme. */
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* .post-content holds the excerpt AND the READ MORE link, so it has to be the
   flex column that distributes the leftover space. */
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .post-content,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .post-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* 1. Clamp the excerpt to 3 lines. Applied to .post-content-inner (the
   excerpt wrapper) and its paragraph, never to .entry-title. */
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .post-content-inner,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .post-content-inner {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* a flex item's min-height defaults to auto, which would let the text
       push past the clamp; 0 lets the clamp win. */
    min-height: 0;
}
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .post-content-inner p,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .post-content-inner p {
    margin-bottom: 0;
}

/* 3. Pin READ MORE to the card bottom. The module injects
   `margin-top:10px !important` inline on .more-link, so this rule has to
   out-specify AND out-important it or the pin silently does nothing. */
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .post-content a.more-link,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .post-content a.more-link {
    margin-top: auto !important;
    padding-top: 10px;
}

/* 4. Thumbnails: show the WHOLE image.
   Measured across all 95 published posts the featured images run 0.79-2.14
   with a median AND mode of 1.50, so a 3:2 box is the best fit available:
   highest mean fill (86.7% vs 80.9% for 2:1) and 40 of 95 images fill it
   exactly. object-fit:contain keeps the whole image; the functions.php
   filter mnr_news_blog_image_width() is what makes the source uncropped. */
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .et_pb_image_container,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .et_pb_image_container {
    margin: 0 0 20px;
    background-color: var(--gcid-0801664e-c48a-4392-82db-fcd3445a4a4d);
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .et_pb_image_container a.entry-featured-image-url,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .et_pb_image_container a.entry-featured-image-url {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.et_pb_blog_0 .et_pb_blog_posts .et_pb_post .et_pb_image_container img,
.et_pb_blog_0_tb_body .et_pb_blog_posts .et_pb_post .et_pb_image_container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


