/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 
.wrappedtext { word-wrap: break-word; }
.entry-content .ifpri-ebrary-container p.toppage a { padding: 8px 35px 8px 0px;  }
.entry-content div.PubsULlist { margin-left: 0px; list-style-type: none; }
.entry-content div.PubsULlist div.fp-eb-record { margin-top: 15px;  }
.entry-content div.PubsULlist > div { padding-bottom: 12px;   list-style-type: none;  }
.entry-content #ifeb-featured div.PubsULlist > div { border-bottom: 0px  }
p.more-from-section { clear: both; text-transform: uppercase; color: #0D2A3D; padding: 12px 0px; margin-top: 10px; margin-bottom: 0px;font-size: 16px; }
p.more-from-section a { color: #0D2A3D;  }
.ifpri-ebrary-container h2 { margin-top: 20px; clear: both; }
.ifpri-ebrary-container h2#results-title, h2.IfEb-featured-heading { margin-bottom: 4px; color: #405361; font-size: 26px; }
.ifpri-ebrary-container #IfEbFilters { margin-bottom: 20px; display: block;   }
.ifeb-filters-sel { display: inline-block; }
.IfEb-intro-text { color: #405361; /*! height: 0; */}
.ifeb-main-col, .ifeb-side-col-left { display: inline-block; vertical-align: top; text-align: left; box-sizing: border-box; } 
.ifeb-row { clear: both; width: 100%; display: block; margin-top: 12px;}
.ifeb-side-col-left { width: 24%; }
.ifeb-main-col.ifeb-with-filters { width: 75%; padding-left: 12px; }
.ifeb-main-col.ifeb-nofilters { width: 100%; padding-left: 0px; }

/* following class specific to plugin page type */
.single-ebrary-publ-page  .entry-meta {display: none; }
#if-eb-search-record { visibility: hidden; height: 0;}
.ifeb-filters-share { display: inline-block; margin-right: 20px;text-transform: capitalize; }
.ifpri-ebrary-data { display: none; }
#ifeb-main-container button { font-size: 14px; padding: 3px 10px; }

#ifebsort p { display: inline-block; vertical-align: top;color: #F78D2C;padding: 0;}
#ifeb-featured { color: #405361; padding: 5px 0px; margin-bottom: 15px;  }

.fp-eb-record-featured { width: 23%;  margin-right: 2.2%; display: inline-block; vertical-align: top; text-align: left; box-sizing: border-box;  }
.fp-eb-record-featured:last-child { margin-right: 0%;   }
.ifpri-ebrary-container .ifeb-featured-col1 .results_tn_img, .holder_img {  width: 100%; height: auto; border: 1px solid #cccccc;  box-shadow: none;  margin-bottom: 0px;}
.ifpri-ebrary-container .ifeb-featured-col1 .results_tn_img { border-bottom: 0px; }
.ifpri-ebrary-container .ifeb-featured-col2 { margin-top: -4px; }
.ifpri-ebrary-search p { display: none; }
.if-eb-categories { margin-top: 23px; }
ul.ifeb-filters { padding: 0; list-style-type: none; margin-left: 0;   }  
ul.ifeb-filters li, ul.ifeb-filters2 li, .ifeb-filtersLang li { padding: 0; list-style-type: none; width: 90%; }  

ul.ifeb-filters li input { display: block; display:inline-block;  }  
input.termS[type=checkbox] { opacity: 0; margin-left: -20px;  }
.ifeb-label { display: inline-block; padding: 2px 0px 3px 3px; margin-bottom: 1px; width: 97%; }
input.termS:checked + .ifeb-label {color: #ffffff; background: #F78D2C url("close2.png") no-repeat 98%; }
#regiondivide { border-bottom: 1px solid #cccccc; padding-bottom: 5px; margin-bottom: 5px; }
#IfEb-PageURL { visibility: hidden; height: 0;}
.ifpri-ebrary-container { font-size: 14px; font-weight: normal; line-height: 120%; }
#IfEb-share-top { display: inline-block; clear: both;  width: 100%; vertical-align: top; text-align: left; box-sizing: border-box;}
#shareDiv { display: inline-block;  margin: 0px; vertical-align: top; text-align: left; box-sizing: border-box; }
#shareDiv #shareShow, #ifebsuggest, #ifebsuggest2 { padding: 5px 20px 5px 45px; color: #ffffff; font-weight: bold; font-size: 16px; background: #405361 url("people.png") no-repeat 5% 50%; display: inline-block; clear: both; margin: 0px; width: auto; vertical-align: top; text-align: right; box-sizing: border-box; border-radius: 3px; cursor: pointer;}
#ifebsuggest, #ifebsuggest2  { background-image: url("feedback.png"); }
#ifebsuggest2 { display: none; }
#shareDiv #shareResult { display: none; }
@media only screen and (min-width: 1170px) {
    #shareResult textarea { width: 843px; }
}
@media only screen and (max-width: 1170px) {
   #shareResult textarea { width: 100%; }
}

#IfEb-ShareResultLink { display: inline-block; width: 85%; }
#IfEbTop { display: inline-block; text-align: right; padding-top: 15px; width: 15%; }


.ifpri-ebrary-container #IfEb-pager { clear: both; border-bottom: 1px dotted #cccccc; display: inline-block; width: 100%;  }
#IfEb-pager-L, #IfEb-pager-R, #IfEb-pager-records { display: inline-block; vertical-align: top; text-align: left; box-sizing: border-box; }
#IfEb-pager-L { width: 45%; }
#IfEb-pager-R { width: 30%; margin-right: -1%; }
#IfEb-pager-records { width: 25%; margin-right: -1%; }
#IfEb-pager-R { text-align: right;  }
.ifpri-ebrary-container #ifeb-page-left { float: left; padding: 3px 10px; margin-bottom: 10px; }
.ifpri-ebrary-container #ifeb-page-right { float: right; padding: 3px 10px; margin-bottom: 10px; }
.ifpri-ebrary-container #ifeb-totalNum { clear: both; display: none; }



.ifpri-ebrary-container ul, .ifpri-ebrary-container ul li { list-style-type: none; margin-left: 0;}
.if-eb-hidden { visibility: hidden; height: 0; display:block;   }
.if-eb-shown { visibility: visible; height: auto; }
.ifeb-clear { clear: both;}
.if-eb-featured-title { background: #f78d2c; bottom: 0px; color: #fff; font-size: 14px; font-weight: 400; line-height: 18px; margin: 0 0 15px 0; min-height: 44px; padding: 14px 5px;
text-align: center; text-transform: uppercase; width: 100%;}
.if-eb-featured-title a { color: #ffffff;}
p.IfEbFeatLinks { margin: 10px 0 10px 0; padding-bottom: 0; }
#ifeb-showfilters { padding:3px 10px; }
/* Toggled State */
div.checkboxIndicator {
display: block;
width: 100%;
height: 3px;
clear:left;
background-color: transparent;
}
.ifeb-filter-header { background: url("arrow-down.png") no-repeat 85%; color: #405361;}
.ifeb-filter-header.ifeb-arrow-up { background-image: url("arrow-up.png") ;}
#ifeb-filter-lang-h { color: #405361; }
.ifeb-full-width { width: 100%;}
.ifeb-side-col-left ul li { margin-left: 3px; }

.ifeb-filters-sel { text-transform: capitalize; font-size: 14px; color: #60982D; background: url("close.png") no-repeat right; padding-right: 20px; margin-right: 5px }
.ifpri-ebrary-container .holder_img { display: block; height: 75px; background-color: #f2f2f2; }
.ifpri-ebrary-search  fieldset { padding: 0px; border: 0;}
.ifpri-ebrary-search #cs, .ifpri-ebrary-search #ifeb-searchsubmit { float: left; /*! display: inline-block; */ vertical-align: top; box-sizing: border-box; }
.ifebAuthors { margin-left; 12px; }
.pub-search br {display: none; }
.ifpri-ebrary-search #cs { width: 81%; margin-right: 0px; padding: 6px;}
.ifpri-ebrary-search #ifeb-searchsubmit { width:12%; padding: 6px; background: #f78d2c url('ic_search.png') no-repeat 3px 5px; }
.IfEbShowHideBtn2 { background-color: #fff; border-radius: 10px; border: 1px solid #ccc; color: #444; margin: 0 14px 0 0; padding: 3px 7px; border-radius: 10px; width: 28px;
}

#IfEbRemoveAll, #ifeb-searchinstead2, #ifeb-reset-div { background-color: rgb(96, 152, 45); color: white; display: inline-block; align-content: right; text-align: right; margin-left: 50px; padding: 2px 15px 2px 30px; background: #60982D url("close3.png") no-repeat 7px center; text-transform: none; }
#ifeb-reset-div { margin-left: 0; }
#ifeb-searchinstead2 { background-image: url('ic_add_circle.png'); background-position: 4px center;  }
#ifeb-remove-div { display: inline-block; margin-left: 0px; }
#ifeb-remove-div.ifeb-next-line { display: block; clear: both; margin-top: 30px; margin-left: -50px;}

#pub-search { display: inline-block;width: 100%;}
#pub-search br { display: none; width: 0; }
#totalNum { display: none; }

.ifeb-changesort, .ifeb-changesort-rev, .ifeb-col1, .ifeb-col2, .ifeb-col3, .ifeb-col4, #ifebsort, #ifeb-sort-type, #ifebsuggest, .ifeb-width-24 { display: inline-block; vertical-align: top; box-sizing: border-box;   margin-left: -2px;}

.ifpri-ebrary-search { display: inline-block; margin-bottom: 0px; }
#ifebsuggest { margin-right: 1%; }
#ifebsort { text-align:left; padding: 7px 2px 2px 4px; height: 35px;}
.ifeb-width-25 { width: 25%; }
.ifeb-width-50 { width: 50%; }
.ifeb-width-24 { width: 24%; }

.ifeb-changesort, .ifeb-changesort-rev { text-align: right; width: auto; margin-right: 10px; margin-left: 10px; padding: 3px 9px; margin-top: -3px; cursor:pointer; }
.ifeb-sortsel { color: white; background-color: #F78D2C; }
.ifeb-col1 { width: 13%;} 
.ifeb-col2  { width: 86%; }
.ifeb-col3 { width: 50%; }
.col3-right { text-align:right; }
#ifeb-main-container .ifeb-filters2 { margin-bottom: 0; position:relative; }
#ifeb-main-container .if-eb-categories br { display: none; }
p.ifeb-helper-buttons { clear: both;  text-align: center; margin-top: 30px;  }
.ifeb-helper-buttons button {  display: inline-block; margin: 10px; padding: 5px; }
.ifpri-ebrary-container .results_tn_img, .holder_img {  width: 60px; height: auto; border: 1px solid #cccccc;  box-shadow: 1px 1px 4px #989595; margin-left: 0; float: none;}
.col-md-10.ifeb-rec-details { margin-left: -5%; } 

#IfEbshowQuery { background-color: #6ab446; border: none; border-radius: 3px; color: #fff; cursor: pointer; font-size: 14px;  font-weight: 400; padding: 4px 8px 5px 8px;  text-transform: uppercase;  width: auto; text-align: center; display: inline-block; margin-left: 4px; margin-top: -1px;  }
#IfEbshowQuery a { color: #ffffff; }
.ifeb-helper-buttons {  display: inline-block; padding: 4px 10px;}
#ifeb-admin-buttons { width: 100%; text-align: center;  }
#ifeb-searchinstead, #ifeb-remove-all { clear: both; display: inline-block; color: #f78d2c; cursor: pointer; }
#AbstSeriesA1 { background-color: #DEDEDE; padding: 15px; border: 1px solid #444444; margin-bottom: 14px;  }
#ifeb-no-matching { display: block; width: 80%;text-align: center; margin: 100px 0px;  margin-left: 10%; background-color: #EEEEEE; font-size: 40px; padding: 40px 0; color: #888888; border-radius: 12px; }
#ifeb-furtheropts {  display: block; width: 100%; text-align: center; font-size: 16px;  }
#NoResultsMsg  { margin-bottom: 25px; }
/* To correct for auto insert of paragraphs on some versions WP: */
.if-eb-categories ul.ifeb-filters2 p { margin-top: -26px; }
.ifeb-fadeout {
	 display: block; 
    position: absolute; 
    bottom: 0em;
    width:100%;
    height: 32px;
    margin-left: -4%;
    background: -webkit-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    ); 
    background-image: -moz-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: -o-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: -ms-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
} 
.ifeb-sortsel[data-sort-order="dec"] .ifeb-arrow { 
width: 0px;
height: 0px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 7px solid #405361;
display: inline-block;
margin-left: 4px;
}

.ifeb-sortsel[data-sort-order="asc"] .ifeb-arrow { 
width: 0px;
height: 0px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 7px solid #405361;
display: inline-block;
margin-left: 4px;
}

#ifeb-sort-year.ifeb-sortsel[data-sort-order="asc"] .ifeb-arrow { 
width: 0px;
height: 0px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 7px solid #405361;
border-bottom:0px;
display: inline-block;
margin-left: 4px;
}

#ifeb-sort-year.ifeb-sortsel[data-sort-order="dec"] .ifeb-arrow { 
width: 0px;
height: 0px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 7px solid #405361;
border-top: 0px;
display: inline-block;
margin-left: 4px;
}

#ifpri-ebrary-container input#cs { width: 85%; }
#ifpri-ebrary-container #pub-search fieldset { border: 0; }

#ifeb-showfilters { display: none; } 
.ifeb-Combined-List-Template div.IfEbShowHide { display: none; }
.ifeb-Combined-List-Template .if-eb-hidden { visibility: hidden; height: 0; display: block;  }
.ifeb-altmetric { margin-top: 12px;  }
.if-eb-downloads { margin-top: 12px; }

.ifeb-row.ifeb-shortcode .ifeb-col1 img, .ifeb-records.ifeb-shortcode .ifeb-col1 img { max-width: 80%; }

.PubsULlist.ifeb-widget-template .holder_img { width: auto; max-width: 80%; }

/* Added 20190522 */

.ifeb-filters.if-eb-hidden li {
	margin: 0px;
	padding: 0px;
	height: 0px;
}

#ifeb-main-container .ifeb-filters2, #ifeb-main-container .ifeb-filters { padding-left: 12px; }

#ifeb-main-container .ifeb-filters2, #ifeb-main-container .ifeb-filters, .ifpri-ebrary-container ul {
    padding-left: 12px;
}
#ifebAdditional { display: none; }
@media only screen and (max-width: 768px) {
#ifeb-showfilters { display: block; }
.fp-eb-record-featured {  width: 46%; margin-left: 0%;  }
.fp-eb-record-featured:nth-child(odd) {  margin-right: 6%;    }
.content .ifpri-ebrary-container .results_tn_img, .holder_img { width: 80%; }
#ifeb-featured .results_tn_img { width: 100%; }
.ifeb-side-col-left { position: absolute; width: 45%; margin-left: -56%; overflow:hidden; -webkit-transition: all 1s; transition: all 1s }
.ifeb-main-col { width: 100%; padding-left: 0px; -webkit-transition: all 0.5s; transition: all 0.5s }
.ifeb-width-25, .ifeb-width-24, .ifeb-width-50 { width: 100%; margin-bottom: 5px; text-align: center; }
.col3-right { text-align: left; }
#ifebsuggest { display: none;  }
#ifebsuggest2 { display: block; width: 75%;  }
#ifeb-showfilters { margin-top: 12px; }
.fadeout { width: 95%; }
#ifeb-no-matching { width: 100%; 	margin-left: 0px; line-height: 1.2; }
    .fp-eb-record-featured { margin-right: 0; }   
.fp-eb-record-featured:nth-child(2n+1) { margin-right: 6%; }   
.if-eb-featured-title {  min-height: 85px; }
.ifeb-changesort, .ifeb-changesort-rev { margin: -2px 2px 3px 1px; padding: 2px 10px 2px 5px; }   
#ifebsort { font-size: 13px;}    
#ifebsort p { color: #F78D2C; }
.ifeb-helper-buttons { margin-right: 10px;margin-bottom: 5px; }
#IfEbTop { width: 30%; float:right; }    
}    


@media only screen and (max-width: 360px) {
#ifeb-showfilters { display: block; }
.fp-eb-record-featured {  width: 100%; margin-left: 0%;  }
.fp-eb-record-featured:nth-child(odd) {  margin-right: 6%;    }
.content .ifpri-ebrary-container .results_tn_img, .holder_img { width: 80%; }
#ifeb-featured .results_tn_img { width: 100%; }
.ifeb-side-col-left { position: absolute; width: 45%; margin-left: -56%; overflow:hidden; -webkit-transition: all 1s; transition: all 1s }
.ifeb-main-col { width: 100%; padding-left: 0px; -webkit-transition: all 0.5s; transition: all 0.5s }
.ifeb-width-25, .ifeb-width-24, .ifeb-width-50 { width: 100%; margin-bottom: 5px; text-align: center; }
.col3-right { text-align: left; }
#ifebsuggest { display: none;  }
#ifebsuggest2 { display: block; width: 75%;  }
#ifeb-showfilters { margin-top: 12px; }
.fadeout { width: 95%; }
#ifeb-no-matching { width: 100%; 	margin-left: 0px; line-height: 1.2; }
    .fp-eb-record-featured { margin-right: 0; }   
.fp-eb-record-featured:nth-child(2n+1) { margin-right: 6%; }   
.if-eb-featured-title {  min-height: 85px; }
.ifeb-changesort, .ifeb-changesort-rev { margin: -2px 2px 3px 1px; padding: 2px 10px 2px 5px; }   
#ifebsort { font-size: 13px;}    
#ifebsort p { color: #F78D2C; }
.ifeb-helper-buttons { margin-right: 10px;margin-bottom: 5px; }
#IfEbTop { width: 30%; float:right; }    
}    
    

    
p:empty { display: none; }
/* Larger screens */
@media only screen and (min-width: 1000px) {
    .if-eb-featured-title { min-height: 58px; }
    
}


/* Version 2 - may cause issues with legacy */
div.IfEbShowHide { display: none; padding-top: 10px; clear: both;}
div.if-eb-extra-info { display: none; }
div.if-eb-extra-info-shown { height: auto; display: block;  border-top: 1px solid #cccccc; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid #cccccc; margin: 8px; 0px; }

.ifeb-row.if-eb-custom-template-row {margin-top: 8px; border-bottom: 1px dotted #C2CCD9; }
.ifeb-sortdefault { visibility: hidden; height: 0; }

/* Some Color customizations */
.ifpri-ebrary-color2 .ifpri-ebrary-search #ifeb-searchsubmit {background-color: #89A527 }
.ifpri-ebrary-color2 .ifeb-sortsel {background-color: #89A527 }
.ifpri-ebrary-color2 a {color: #89A527 }
.ifpri-ebrary-color2 input.termS:checked + .ifeb-label {background-color: #89A527}

.ifpri-ebrary-color3 .ifpri-ebrary-search #ifeb-searchsubmit {background-color: #0088AF }
.ifpri-ebrary-color3 .ifeb-sortsel {background-color: #0088AF }
.ifpri-ebrary-color3 a {color: #0088AF }
.ifpri-ebrary-color3 input.termS:checked + .ifeb-label {background-color: #0088AF}

.ifpri-ebrary-color4 .ifpri-ebrary-search #ifeb-searchsubmit {background-color: #4D4D4D }
.ifpri-ebrary-color4 .ifeb-sortsel {background-color: #4D4D4D }
.ifpri-ebrary-color4 a {color: #4D4D4D }
.ifpri-ebrary-color4 input.termS:checked + .ifeb-label {background-color: #4D4D4D}
.ifpri-ebrary-thumbnails-no .ifeb-col1 { display: none; }
.ifpri-ebrary-thumbnails-no .ifeb-col2 { width: 100%; }


#ifeb-main-container.ifpri-ebrary-biblio-bibliography a.thetitle {

    font-weight: 600; color: #405361;
}


/* Reference https://coryrylan.com/blog/css-gap-space-with-flexbox
.FeaturedPubsULlist > * {
    margin: 12px 0 0 12px;
  }
.FeaturedPubsULlist ...
     margin: -12px 0 0 -12px;
    width: calc(100% + 12px);

 */ 

.FeaturedPubsShortlist { 
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-column-gap: 8px;
    grid-row-gap: 10px;
}
.FeaturedPubsShortlist.NumRecs2 { 
 grid-template-columns: repeat(2, 1fr);
}
.FeaturedPubsShortlist.NumRecs3 { 
    grid-template-columns: repeat(3, 1fr);
}
.FeaturedPubsShortlist.NumRecs4 { 
grid-template-columns: repeat(4, 1fr);
}
.FeaturedPubsShortlist.NumRecs5 { 
grid-template-columns: repeat(5, 1fr);
}
.FeaturedPubsShortlist.NumRecs6 { 
grid-template-columns: repeat(3, 1fr);
}
.FeaturedPubsShortlist.NumRecs8 { 
    grid-template-columns: repeat(4, 1fr);
}
.FeaturedPubsShortlist.NumRecs9 { 
grid-template-columns: repeat(3, 1fr);
}
.FeaturedPubsShortlist.NumRecs10 { 
    grid-template-columns: repeat(5, 1fr);
    }
.if-eb-short-featured {
    background-color: #f2f2f2;
    display: flex;
    margin-bottom: 20px;
    flex-direction:column;
}

.if-eb-short-featured .ifeb-featured-col2 {
    flex:1;
    position: relative; 
    display: grid;
    grid-template-rows: 1fr auto;
}
.if-eb-short-featured p.IfEbFeatLinks {
    text-align:center;
}
.FeaturedPubsShortlist .ifeb-featured-col1 { max-height: 115px; overflow: hidden; }
.FeaturedPubsShortlist.NumRecs4 .ifeb-featured-col1 { max-height: 118px; overflow: hidden; }
.FeaturedPubsShortlist.NumRecs9 .ifeb-featured-col1, .FeaturedPubsShortlist.NumRecs3 .ifeb-featured-col1 { max-height: 158px; overflow: hidden; }
.FeaturedPubsShortlist .if-eb-featured-title {
    background-color: #f2f2f2;
}

.FeaturedPubsShortlist .if-eb-featured-title a {
    color: #000000;
}

.if-eb-short-featured.if-eb-hidden {
    display: none; 
}


#ifebAdditional { display: none; }

#ifeb-featured #IfEb-pager-L { width: 30%; }
#ifeb-featured #IfEb-pager-R { width: 30%; margin-right: 0%;  }
#ifeb-featured #IfEb-pager-records { width: 40%; margin-right: 0%;  text-align: center; }


@media only screen and (max-width: 768px) {
    #ifeb-featured .FeaturedPubsShortlist {
        grid-template-columns: 1fr 1fr;
    }

    #ifeb-featured .FeaturedPubsShortlist .ifeb-featured-col1 {
        max-height: 190px;
    }
    .ifpri-ebrary-container .results_tn_img { width: 80%; }


}

@media only screen and (max-width: 450px) {
    #ifeb-featured .FeaturedPubsShortlist {
        grid-template-columns: 1fr;
    }
    .ifpri-ebrary-container .results_tn_img { width: 60%; }
}    