/**
* CAHNRS Core
* @author Efren Vasquez
* @version 1.0.0
*/

.sronly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

input#pf_search {
    width: 100%;
    margin-right: 1rem;
}

.cahnrs-search-container {
    display: flex;
}

/* == Filters == */
fieldset.core-post-feed-filters select {
    width: 100%;
}

.core-post-feed-filter {
    margin-bottom: 1rem;
}

@media(min-width: 680px){
    fieldset.core-post-feed-filters {
        display: flex;
    }
    
    fieldset.core-post-feed-filters > div {
        width: 30%;
        margin: 0 1rem 1rem 0;
    }

    .item-image-wrapper {
        width: 100%;
        float: left;
    }
    
}

/* == Pagination == */
fieldset.core-post-feed-pagination {
    border: none;
    margin-left: 0;
    padding-left: 0;
}

@media(min-width:717px){
    fieldset.core-post-feed-pagination {
        display: flex;
        justify-content: end;
        align-items: center;
        margin-bottom: 0 !important;
    }
}



.core-post-feed-pagination-summary {
    margin-right: 10px;
}

.core-post-feed-item.promo {
    margin-bottom: 2rem;
    clear: both;
}


.core-post-feed-items.display-promo.post-type-post .item-image a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0;
}

article.core-post-feed-item.promo.has-image {
    display: flex;
}

.core-post-feed-items.display-promo.post-type-post .item-image-wrapper {
    margin-right: 25px;
    flex: 0 0 175px;
}

.item-caption-wrapper {
    flex: 1;
}

.core-post-feed-items.display-promo.post-type-post .item-image {
    height: 175px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.core-post-feed-items.display-promo.post-type-post .item-image-wrapper {
    margin-right: 25px;
}

/* ============================ Module: Grants ============================ */

.core-grant-content .grant-meta {
    border-bottom: 1px solid #ddd;
}

.core-grant-content .grant-annual-entry {
    margin: 16px 0;
}

.core-grant-content .grant-label {
    font-weight: bold;
}

.core-grant-list-display-item {
    position: relative;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.core-grant-list-display-item h3,
.core-grant-list-display-item h2 {
    font-size: 22px;
}

.core-grant-list-display-item ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.core-grant-list-display-item ul span {
    font-weight: bold;
}

.core-grant-list-display-item .has-project-id .project-id {
    width: 60px;
    float: left;
    text-align: center;
    background-color: #eee;
    padding: 18px 0;
    font-weight: bold;
}

.core-grant-list-display-item .has-project-id:after {
    content: "";
    display: block;
    clear: both;
}

.core-grant-list-display-item .has-project-id .project-pi,
.core-grant-list-display-item .has-project-id .grant-title {
    padding-left: 12px;
    margin-left: 60px;
    display: block;
    box-sizing: border-box;
}

.core-grant-list-display-item .project-pi {
    font-size: 14px;
}

.core-grant-list-display-item .grant-link a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
}

.core-grant-list-display-item .grant-link a:hover {
    background-color: rgba(0,0,0,0.1);
}