/* =============================================================================
   LF GRID — REUSABLE COLUMN LAYOUT
   ============================================================================= */

.lf-grid {
    display: grid;
    gap: 2.25rem;
    align-items: stretch;
    /* MAKES ALL CELLS THE SAME HEIGHT */
    /* align-items: start; */
    /* EACH CARD IS ITS OWN NATURAL HEIGHT */
}

.lf-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.lf-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.lf-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

/* =============================================================================
   LF CARD — REUSABLE GRID CARD (USED BY POSTS, PEOPLE, PROJECTS, ETC.)
   ============================================================================= */

.lf-card {
    border: 1px solid #DEDEDE;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lf-card__image {
    display: block;
    overflow: hidden;
}

.lf-card__image img {
    width: 100%;
    display: block;
    object-fit: contain;
    margin-bottom: 0 !important;
}

.lf-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.lf-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0 !important;
}

.lf-card__title a {
    color: #000;
    text-decoration: none;
}

.lf-card__title:hover a {
    color: #0000EE !important;
}

.lf-card__excerpt {
    font-size: 0.875rem;
    color: #000;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1rem;
}

.lf-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lf-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #000;
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
}

.lf-card__footer-date {
    color: #fff;
}

.lf-card__footer-sep {
    color: #fff;
    opacity: 0.5;
}

.lf-card__footer-author {
    color: #fff;
    text-decoration: none;
}

.lf-card__footer-author:hover {
    color: #fff;
}

/* =============================================================================
   LF LIST — REUSABLE LIST LAYOUT (tag.php, category.php, AND SHORTCODE)
   ============================================================================= */

.lf-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.lf-list__item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: stretch;
}

.lf-list__item--no-image {
    grid-template-columns: 1fr;
}

/* FEATURED — FIRST ITEM ONLY, IMAGE 2/3 + CONTENT 1/3 */
.lf-list__item--featured {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.lf-list__item--featured .lf-list__title {
    font-size: 1.75rem;
}

.lf-list__item--featured .lf-list__excerpt {
    font-size: 1rem;
}

.lf-list__image {
    display: block;
    overflow: hidden;
    height: 100%;
}

.lf-list__image a {
    display: block;
    height: 100%;
}

.lf-list__image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    margin-bottom: 0 !important;
}

.lf-list__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

/* BYLINE — DATE AND AUTHOR, PLAIN BLACK TEXT */
.lf-list__byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #000;
    margin: 0;
    padding: 0;
}

.lf-list__byline-date {
    color: #000;
}

.lf-list__byline-sep {
    color: #000;
    opacity: 0.4;
}

.lf-list__byline-author {
    color: #000;
    text-decoration: none;
}

.lf-list__byline-author:hover {
    text-decoration: underline;
}

.lf-list__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lf-list__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 !important;
}

.lf-list__title a {
    color: #000;
    text-decoration: none;
}

.lf-list__title:hover a {
    color: #0000EE !important;
}

.lf-list__excerpt {
    font-size: 0.875rem;
    color: #000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* =============================================================================
   LF PILL — REUSABLE TAXONOMY PILL (CATEGORIES AND TAGS)
   ============================================================================= */

.lf-pill {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.lf-pill:hover {
    background-color: #333;
    color: #fff;
}

.lf-pill--tag {
    background-color: #000;
}

.lf-pill--tag:hover {
    background-color: #333;
}

/* =============================================================================
   LF PAGINATION — PLAIN TEXT, NO BACKGROUNDS, CURRENT PAGE BOLD
   ============================================================================= */

.lf-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* REMOVE ALL BACKGROUNDS AND BORDERS — PLAIN TEXT ONLY */
.lf-pagination .page-numbers {
    display: inline-block;
    background: none;
    color: #000;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0 0.1rem;
    border: none;
}

/* CURRENT PAGE — BOLD AND SLIGHTLY LARGER */
.lf-pagination .page-numbers.current {
    background: none;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
}

.lf-pagination .page-numbers:hover {
    background: none;
    color: #000;
    text-decoration: underline;
}

/* ALSO TARGET THE_POSTS_PAGINATION OUTPUT USED IN tag.php AND category.php */
.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 2rem;
}

.nav-links .page-numbers {
    display: inline-block;
    background: none;
    color: #000;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    border: none;
}

.nav-links .page-numbers.current {
    background: none;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
}

.nav-links .page-numbers:hover {
    background: none;
    color: #000;
    text-decoration: underline;
}

/* =============================================================================
   LF ARCHIVE HEADER — USED BY tag.php AND category.php
   ============================================================================= */

.lf-archive-header {}

/* H1 ALWAYS JUST SAYS "CATEGORIES" OR "TAGS" */
.lf-archive-title {
    margin-bottom: 0.75rem;
    font-size: 34px;
    line-height: 44px;
    padding-top: 35px;
}

/* TERM PILLS ROW — LINKED PILLS SHOWING WHICH TERMS ARE IN THE CURRENT URL */
.lf-archive-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.lf-archive-term-pill {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.lf-archive-term-pill:hover {
    background-color: #333;
    color: #fff;
}

/* =============================================================================
   LF EMPTY STATE — REUSABLE NO RESULTS MESSAGE
   ============================================================================= */

.lf-none {
    text-align: center;
    color: #000;
}