/* Stack logo above title and set academic proportions */
.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.custom-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 12px;
}

/* Center header container, logo, title, and tagline */
.site-header {
    text-align: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally in flex */
    text-align: center;
    margin: 0 auto;
}

.custom-logo-link {
    display: inline-block;
    margin: 0 auto 15px auto;
}

.custom-logo {
    max-width: 140px; /* Adjust size if needed */
    height: auto;
    display: block;
    margin: 0 auto;
}

.site-title,
.site-description {
    text-align: center;
}
/* Style Display Posts into a 3-column Rolfs Lab card layout */
.display-posts-listing {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.display-posts-listing .listing-item {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

.display-posts-listing .image {
    order: 1;
    margin-bottom: 12px !important;
}

.display-posts-listing .image img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Forces images to be square */
    object-fit: cover !important;
    border-radius: 2px !important;
    display: block !important;
}

.display-posts-listing .date {
    order: 2;
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-bottom: 6px !important;
}

.display-posts-listing .title {
    order: 3;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: #3b8b88 !important; /* Rolfs-style teal link */
}

@media (max-width: 768px) {
    .display-posts-listing {
        grid-template-columns: 1fr !important;
    }
}
/* Hide default page title on the front page only */
.home .entry-header,
.home .entry-title {
    display: none !important;
}
/* Stack the rows vertically */
.funder-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

/* Align logos side-by-side inside each row */
.funder-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.funder-row a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.funder-row img {
    max-width: 125px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}