/* The two media libraries share one search entry point and filter treatment. */
body.lbfd-media-page--news .lbfd-media-search {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--lbfd-page-gutter));
    max-width: var(--lbfd-page-inner);
    margin: 18px auto 26px;
}
body.lbfd-media-page--videos .lbfd-media-search { margin: 0 0 40px; }
/* Keep Elementor's filter container below the complete search bar. */
body.lbfd-media-page--news:has(.elementor-element-1560b33) .lbfd-media-search { margin-bottom: 0; }
body.lbfd-media-page--news .lbfd-media-search .lbgs-bar,
body.lbfd-media-page--videos .lbfd-media-search .lbgs-bar {
    min-height: 48px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(6, 35, 68, .07);
}
body.lbfd-media-page--news .lbfd-media-search .lbgs-bar input[type=search],
body.lbfd-media-page--videos .lbfd-media-search .lbgs-bar input[type=search] { height: 38px; }
body.lbfd-media-page--news .lbfd-media-search .lbgs-bar button.lbgs-submit,
body.lbfd-media-page--videos .lbfd-media-search .lbgs-bar button.lbgs-submit {
    border-radius: 999px;
    min-height: 38px;
    padding: 8px 20px;
}
body.lbfd-media-page--news .lbfd-media-search .lbgs.is-open .lbgs-bar,
body.lbfd-media-page--videos .lbfd-media-search .lbgs.is-open .lbgs-bar {
    border-radius: 24px 24px 0 0;
}
body.lbfd-media-page--videos .lb-video-search-wrap { display: none; }
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 { justify-content: flex-start; gap: 10px; }

body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #0474a2;
    border-radius: 999px;
    background: #fff;
    color: #0474a2;
    font: 600 14px/1.2 Nunito, Arial, sans-serif;
    text-decoration: none;
}
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item_content { align-items: center; }
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item_title { line-height: 20px; }
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item.uc-selected,
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item:hover,
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item:focus-visible {
    border-color: #0474a2 !important;
    background: #0474a2 !important;
    color: #fff !important;
}
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item:focus-visible {
    outline: 3px solid #62a9ff;
    outline-offset: 3px;
}
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .ue_taxonomy_item .ue_taxonomy_item_num_posts:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 20px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e2f1f7;
    color: #045b83;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
}
body.lbfd-media-page--news #uc_ue_buttons_post_filter_elementor_1560b33 .uc-item-all .ue_taxonomy_item_num_posts:not(:empty) { display: inline-flex !important; }
body.lbfd-media-page--news .uc-filter-load-more__link,
body.lbfd-media-page--videos .lbfd-media-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 23px;
    border: 1px solid #0474a2;
    border-radius: 999px;
    background: #fff;
    color: #0474a2;
    font: 800 15px/1.3 Nunito, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
body.lbfd-media-page--news .uc-filter-load-more__link:hover,
body.lbfd-media-page--videos .lbfd-media-load-more:hover { background: #0474a2; color: #fff; }

/* Match the News story cards and Load More control to the Videos library. */
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_wrap { gap: 24px !important; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_item {
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_item:hover,
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_item:focus-within {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_item:hover .ue_p_title,
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_item:focus-within .ue_p_title { color: #0474a2; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_image_overlay { display: none !important; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_grid_style_one_image {
    display: block;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_image { width: 100%; height: 100% !important; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_image img { width: 100% !important; height: 100% !important; object-fit: cover; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_content { padding: 16px !important; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_title,
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .ue_p_title {
    color: #202125;
    font: 700 18px/1.3 Nunito, Arial, sans-serif !important;
}
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .uc_post_title a { color: inherit; }
body.lbfd-media-page--news .uc-filter-load-more__link {
    padding: 10px 23px !important;
    border: 1px solid #0474a2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0474a2 !important;
}
body.lbfd-media-page--news .uc-filter-load-more__link:hover,
body.lbfd-media-page--news .uc-filter-load-more__link:focus-visible { background: #0474a2 !important; color: #fff !important; }
body.lbfd-media-page--news #uc_post_grid_elementor_72b7311 .ue-grid-item-meta-data--date {
    color: #7a7a7a;
    font: 400 13px/1.3 Nunito, Arial, sans-serif;
}
body.lbfd-media-page--news .lbfd-news-contact {
    margin: 0 auto 58px;
    color: #7a7a7a;
    font: 400 24px/1.2 Nunito, Arial, sans-serif;
    text-align: center;
}
body.lbfd-media-page--news .lbfd-news-contact a { color: #0868dd; }
body.lbfd-media-page--videos .lbfd-media-load-more:disabled { opacity: .6; cursor: wait; }
body.lbfd-media-page--videos .lbfd-media-load-more[hidden] { display: none !important; }
body.lbfd-media-page--videos .lbfd-media-load-more-wrap { text-align: center; margin: 28px 0 40px; }
body.lbfd-media-page--videos .lbfd-media-load-more-wrap [role=status] { margin: 10px 0 0; color: #536982; }

@media (max-width: 700px) {
    body.lbfd-media-page--news .lbfd-media-search { margin-top: 16px; }
    body.lbfd-media-page--news .lbfd-media-search .lbgs-bar button.lbgs-submit,
    body.lbfd-media-page--videos .lbfd-media-search .lbgs-bar button.lbgs-submit { padding: 8px 13px; }
}
