/* Altitude Pro theme specific styling

/* Replace theme fonts
--------------------------------------------- */
/* Correct REM scaling error in MacOS Chrome)*/
html {
    font-size:10px;
}

main {
    font-size:110%;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Sans Pro", sans-serif;
}


body {
    font-family: "Source Sans Pro", sans-serif;
}


h3{
    font-size: 2.5rem;
}


.entry-content h2,
.entry-content h3,
.nocenter h2,
.nocenter h3{
    border-bottom: 1px solid #ddd;
}
.entry-content h2.no-underline,
.entry-content h3.no-underline,
.nocenter h2.no-underline,
.nocenter h3.no-underline
{
    border-bottom: none;
}

div  [id^='front-page-']  h3,
div  [id^='front-page-']  h1 {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: unset;
    display:block;
    margin: 0 0 20px;
    letter-spacing: unset;
}
/* Archive pages
--------------------------------------------- */

.archive-description{
    padding:0;
}

/* Header
--------------------------------------------- */

/* Site header to dark blue */
.site-header,
.site-header.dark,
.page .site-header,
.featured-section .site-header {
    background-color: #fff!important;
}

.title-area, .header-site-title {

    float: none !important;
}

.title-area {
    z-index: 20;
    position: relative;
}

.header-site-title {
    margin-left: 340px;
}

.header-site-title h1 {
    padding-top: 10px;
}

.header-site-title h1 {
    font-weight: 300;
}

.site-header form {
    width: 260px;
    float: left;
}

.site-header form input, .searchblock form input {
    font-size: 1.6rem;
    padding: 5px;
}

.site-header form input[type=search], .searchblock form input[type=search] {
    width: 200px;
}


    /* .header-site-title, .header-image .title-area {
        width: 50% !important;
    } */

.header-image .site-title > a {
    height: 55px;
    width: 57px;
    margin-top: 20px;
}

.header-site-title-right {
    float: right;
    z-index: 1000;
    position: relative;
}

.header-site-title-right form {
    margin-right: 20px;
    margin-top: 25px;
}

.header-site-title-right h1 {
    display: block;
    text-indent: -100000px;
    font-size: 0;
    width:57px;
    height: 55px;
    margin-top: 16px;
    background: url('../img/cropped-arc-logo.png') no-repeat;
    background-size: contain;
    float: left;
}

/* Main menu font*/
.genesis-nav-menu a{
    /* make the menu easier to see */
    font-weight: 300;
    /* Make the menu item hover more noticeable by raising it*/
    padding: 30px 25px 10px 25px
}
/*Highlight class for menu items*/
.site-header .genesis-nav-menu .menu-item.highlight a {
    border: 2px solid #fff;
    padding: 10px;
}

/* Home Page Styling
--------------------------------------------- */

/* Hidden widgets*/

#front-page-4,
#front-page-7
{display:none;}
/* Common front-page widget styles*/
#front-page-1 .image-section .widget-area,
#front-page-3 .image-section .widget-area{
    vertical-align: top;
}

#front-page-3, #front-page-6 {
    border-top: none;
}

#front-page-1 .image-section .widget:last-of-type {
    position: absolute;
    bottom: 80px;
    left: 0;
}

.front-page-1,
.front-page-3,
.front-page-5,
.front-page-7 {
    background-position: 50% 15%;
}


.front-page-1,
.front-page-3,
.front-page-5,
.front-page-7 {
    background-attachment: scroll;
}


div  [id^='front-page-']  h3,
div  [id^='front-page-']  h1,
div [id^='front-page-'] .widget-title
{
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: unset;
    display:block;
    margin: 0 0 20px;
    letter-spacing: unset;
}


#front-page-1 {
/*    height:700px;*/

}

.image-section {
    background: none;
}

#front-page-1 .textwidget h1 {
    font-weight: 300;
    font-size: 6.0rem;
    text-shadow: 2px 2px 2px black;
    color: #fff;
}

#front-page-1 .textwidget p {
    font-size: 3.0rem;
    /*text-shadow: 2px 2px 2px black;*/
}

/* Increase the black filter on fp1 image background */
.front-page-1::after {
    display: block;
    position: relative;
    background:linear-gradient(to bottom,  rgba(0,0,0,0.7)50% ,rgba(0,0,0,0));
    content:'';
}

#front-page-3{
/*    padding-top: 50px;*/
    background-color: white;
    padding-bottom: 50px;
}

#front-page-3 .image-section{
    background: none !important;
    color: black;
}

#front-page-3 .flexible-widgets {
    padding-bottom: 5px;
    padding-top: 20px;
}

#front-page-3 .textwidget h1,
#front-page-3 .textwidget p{
    color: black;
}

#front-page-3 .project-summary .button{
    margin-top: 0px;
}
#front-page-3 .button:hover {
    background-color:#008080;/*teal*/
    color: #ffffff;
}
#front-page-3 hr{
    margin-bottom: 0;
}
/* Soliloquy full width in FP2*/
#front-page-4 .wrap,
#front-page-4 .flexible-widgets,
#front-page-4 .flexible-widgets section{
    max-width: none ;
    margin: 0;
    padding:0;
}

#front-page-4 h3.widgettitle.widget-title{
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 20px;
    font-size: 3.6rem;
    text-transform: none;
    /*color: #fff;*/
}

#front-page-5 .flexible-widgets.widget-area.widget-full{
 padding:40px 0 0 0;
}

#front-page-5 .image-section{
    background:  #194978 !important;
    color: white;
    height: 100px !important    ;

}
#front-page-5 .widget-title,
#front-page-5 .type-post,
#front-page-5 .type-publication  {
    text-align: left;
}
#front-page-5 .entry-header::after {
    margin-bottom: 0;
    padding-bottom: 0;
}
#front-page-6 .flexible-widgets{
    padding-top: 10px;
}
#front-page-6 .publication {
    text-align: left;
    margin-bottom: 20px;
}


#front-page-6 .pubmeta,
#front-page-6 .authors {
    font-size: 0.8em;
}
#front-page-6 .widget{

}
#front-page-6 .widget-title,
#front-page-6 .type-post,
#front-page-6 .type-publication  {
    text-align: left;
    padding-bottom:0px;
}

#front-page-7 .image-section{
    /*background:linear-gradient(to bottom,  rgba(0,0,0,0.8)80% ,rgba(0,0,0,0))*/
    background:  #194978 !important;
    color: white;

}

/* Twitter widget front page styling */

.front-page .ctf-tweets{
    text-align:left;
}

/* Page styling
---------------------------------------------*/
/* Expand page width */
main#genesis-content.content{
    padding:0px;
}

.entry-header::after {
    border-bottom: none;
    margin-bottom:20px;

}

/* Featured image attribution */
.header-image {
    position: relative;
}
.image-ref {

    font-size: 55%;
    color: #aaa;

    position: absolute; bottom: -20px; right: 10px;
}

/* Footer fix for short pages */

.site-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -webkit-box;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    height: 100%; /* for IE */
    min-height: 100vh;
}

/* Footer widgets for social media */

.footer-widgets .wrap {
    padding-bottom: 50px;
    padding-top: 50px;
}

.footer-widget-area {

}

.footer-widget-area .widget {
    margin-bottom: 0;
}

.footer-widget-area .widget-wrap i {
    font-size: 3em;
}

/* Page header image */

.bw-featured-title {
    background-size:cover;
    background-repeat:no-repeat;
    background-position: 50% 50%;
    text-align:center;
    width:100%;
}

.bw-featured-title .entry-header {
    position: relative;
    top: 50%;
    transform:translateY(-50%);
}

.bw-featured-title h1.entry-title {
    color:#fff;
}



.bw-featured-title .entry-title {
    /*

    padding-top:  10    rem;
        color: #ffe58f;
        font-size: 64px;
        text-shadow: 2px 2px 2px black;
    */
    box-sizing: inherit;
    font-family: "Source Sans Pro",sans-serif;
    font-size: 2em;
    font-size: 4.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0px 0 20px;
    padding-top: 9rem;
}

/* FAQ page styling
--------------------------------------------- */
.question{
    padding-right:50px;
}
.faq_container{
    border:none;
    padding-bottom: 50px;
}

button.accordion-button-icon{
    padding: 15px 15px;
}


/* Staff short-code image listing
--------------------------------------------- */
.staff-item {
    float: left;
    margin: 0 0px 100px 0;
    height: 210px;
    padding-right:20px;
}

.staff-name{
    font-weight: 600;
}

/* am867
*
* Rewrite staff layout to use flexbox -
* Fixed heights break.
*/


.staff-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

}

.staff-item {
    width: 33%;
    float: left;
    margin: 0 0px 40px 0;
    height: auto;
    padding-right:20px;
}

/* See media queries below for more*/


/* Publication styling
--------------------------------------------- */

.facetwp-template .publication {
    margin-bottom:20px;
}


.fwpl-col button{
    margin-top:10px;
}



/* Project list styling
--------------------------------------------- */

.archive .project-item {
    width: 100%;
    float: left;
    margin-bottom: 0.5rem;
}

.project-filter{
    float:left;
}
.project-filter.filter-label{
    font-weight: 600;
}
.filter-programme,
.filter-status,
.filter-programme{
    margin-right: 10px;
}
.filter-programme{
    margin-left:10px;
}
.project-list-template{
    padding-top:20px;
}

/* n.b. .project-excerpt must be set in wpfacet template */
.altitude-pro-project .facetwp-template{
    padding-bottom: 30px;
}

 .project-grid-excerpt{
    padding:10px 0;
}
.post-type-archive-project.full-width-content .content {
    padding: 0 5%!important;
}

/* Staff single template
--------------------------------------------- */
.single-staff h1{
   margin-bottom:0;
}

.single-staff .staff-job-title{
    margin-right:30%;
}

.search-result {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

/* Test single template
--------------------------------------------- */

.test-downloads {
    margin-bottom: 30px;
}

span.anchor {
    display: block;
    position: relative;
    top: -150px;
    visibility: hidden;
}

@keyframes border-pulsate {
    0%   { border-color: rgba(1,48,94, 1); }
    50% { border-color: rgba(1,48,94, 0); }
    100%   { border-color: rgba(1,48,94, 1); }
}

span.anchor:target + div {
    border: 2px solid rgba(1,48,94,1);
    animation: border-pulsate 2s;
}

.test-downloads .test-headers h4{

    margin-bottom: 0px;

}
.test-downloads .test-headers{

    border-bottom:1px solid #ccc;

    margin-bottom: 30px;
}


.test-download-row{
    padding:5px;

   display: block;

}

.test-download-row {

    overflow:auto;

    height: 100%;

    padding: 7px 0 7px 5px;


}

.test-download-row.even
{
    background-color: #f9f5ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%2392aaac' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");

}
/* Test archive template
--------------------------------------------- */

/* Reduce the height of the FacetWP search bar to match other facets */
.arc-test-archive .facetwp-search{

    padding:0px;

}


/* FacetWP
--------------------------------------------- */
/* Reduce margins on pages using WPFacet grids */

.wpfacet .site-inner{
    max-width: none;
}

/* News Listing  */
.fwp-news-date,
.fwp-news-title,
.fwp-news-excerpt{
    padding-bottom: 10px;
}

.facetwp-facet-post_types div {
    float: left; display; inline-block;
    margin-left: 10px;
}

.facetwp-facet.facetwp-facet-site_search, .facetwp-facet.facetwp-facet-site_search .facetwp-search-wrap {margin-bottom: 0;}

/* CPT Project widget
--------------------------------------------- */

.project-home-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.home .project-item{
    width: 33%;
    float: left;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home .project-item a.button {
    margin: 0 auto;
    margin-top: auto;
    width: auto;
}

.project-item .captions {
    top: 10px;
    position: absolute;
    background-color: black;
    left: 0px;
    padding: 5px;
    font-weight: bold;
}

.project-image {
    width: 100%;
    padding-left:0!important;
    float: none;
    position: relative;

    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 3rem;
    padding-top: 1rem;
}
.project-image-img {
    display: block;
    width: 100%;
}
.project-image:after,  .project-image:before {
    /* content: "";
     display: table;*/
}

.project-summary {
    width: 100%;
    float: none;

    padding-left: 30px;
    padding-right: 30px;
}


.project-home-block h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color:#01305E!important
}

/* CPT News widget
--------------------------------------------- */

.news-home-block {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.home .news-item{
    width: 100%;
    float: left;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.home .news-item a.button {
    margin: 0 auto;
    margin-top: auto;
    width: auto;
}

.news-item .captions {
    top: 10px;
    position: absolute;
    background-color: black;
    left: 30px;
    padding: 5px;
    font-weight: bold;
}

.news-image {
    width: 100%;
    padding-left:0!important;
    float: none;
    position: relative;

    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 3rem;
    padding-top: 1rem;
}
.news-image-img {
    display: block;
    width: 100%;
}
.news-image:after,  .news-image:before {
    /* content: "";
     display: table;*/
}

.news-summary {
    width: 100%;
    float: none;
    text-align: left;
}


.news-home-block h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color:#01305E!important
}

@media screen and (max-width: 768px) {
    .news-home-block {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.home .news-item{
    width: 100%;
    float: left;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
    .news-summary {
    width: 100%;
    float: none;
    text-align: center;
}
}

/* Sub menu indicators
--------------------------------------------- */

.genesis-nav-menu > .menu-item.menu-item-has-children > a:after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 1.2rem;
    padding-left: 0.5rem;
    speak: none;
}

ul.sub-menu li.menu-item-has-children > a:after {
    content: "\f105";
    font-family: 'FontAwesome';
    font-size: 1.2rem;
    padding-left: 1rem;
    speak: none;
}
/* Left-align post listing widget output*/

.display-posts-listing{text-align:left;}

/* site-header dark*/

.site-header .genesis-nav-menu a, .site-header.dark .genesis-nav-menu a {
    font-size: 1.8rem;
    padding: 15px 25px 10px 25px;
}

.site-header .genesis-nav-menu>li{
    border-right: 1px solid rgba(255,255,255,0.25);
}
.site-header .genesis-nav-menu>li:last-child {
    border: none;
}


.site-header .genesis-nav-menu .menu-item {
    margin-top: -15px;
}

.genesis-nav-menu .sub-menu .menu-item {
    margin-top: 0px;
}

.genesis-nav-menu .sub-menu .menu-item a:hover{
    background-color:#1e73be;
}



/* Remove white bottom border from site header */
.featured-section .site-header > .wrap{
    border-bottom: none;
}
.page .site-inner,.single .site-inner {
    -ms-flex: 1;
    -webkit-flex: 1;
    -webkit-box-flex: 1;
    flex: 1;
    width: 100%;
    padding:0 5%;
    word-wrap: break-word;
}


/* am867 2019-02-05 */

/* correct submenu position on non-scrolled header */

header .genesis-nav-menu .sub-menu .sub-menu {
    margin-top: -56px;
}

header.site-header .genesis-nav-menu .menu-item.highlight ul .menu-item {
    top: 16px;
    position: absolute;
}

header:not(.dark) .genesis-nav-menu .sub-menu .sub-menu {
    margin-top: -41px;
}

header.site-header:not(.dark) .genesis-nav-menu .menu-item.highlight ul .menu-item {
    margin-top: 1px;
    top: 0px;
}

.header-image .title-area {
    
}


.nav-primary .wrap {
    clear: both;
}

/* add left border to twitter widget: */

#front-page-6 .wrap .widget:last-of-type {
    
}
#front-page-6 .wrap .widget:nth-last-of-type(2) {
    border-right: 1px solid #ddd;
    margin-right: -1px;
}

@media screen and (min-width: 1213px) {
    
    
}

@media screen and (max-width: 1213px) {
    #front-page-6 .wrap .widget:last-of-type {
        border-left: none;
    }
    #front-page-6 .wrap .widget:nth-last-of-type(2) {
        border-right: none;
        margin-right: 0px;
    }
    .site-header .genesis-nav-menu a, .site-header.dark .genesis-nav-menu a {
        padding: 15px 10px 10px 10px;
    }

}

.flexible-widgets .widget {
    margin-left: 0;
}

.test-downloads span, .download-credits {font-size: 80%;}

.test-downloads h6, .test-downloads p {
    margin-bottom: 0;
}

.test-downloads p, .test-downloads span {
    margin-bottom: 5px;
}

/* add key line to headers */

div [id^='front-page-'] h3,
div [id^='front-page-'] .widget-title,
.post-type-archive-project .archive-title,
.post-type-archive-staff .archive-title,
.post-type-archive-test .archive-title
{
    border-bottom: 1px solid #ddd;
    display: inline-block;
    padding-bottom: 10px;
}

.post-type-archive-project .archive-description,
.post-type-archive-staff .archive-description,
.post-type-archive-test .archive-description
{
    text-align: center;
    width: 100%;
}

.archive-description .nocenter {
    text-align: left;
}

.entry-header h1.entry-title {
    border-bottom: 1px solid #ddd;
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 10px;
}

.filter-programme {
    margin: 0;
}

.project-filter {
    float: none;
}

.arc-test-archive .facetwp-search {
    padding: 17px;
}

.post-type-archive-project .facetwp-type-fselect .fs-wrap .fs-label-wrap, .post-type-archive-project .facetwp-type-fselect .fs-dropdown .fs-label-wrap, .page .facetwp-type-fselect .fs-wrap .fs-label-wrap {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    color: #000;
    font-size: 20px;
    font-size: 2rem;
    font-weight: 200;
    padding: 20px;
    width: 100%;
}

.post-type-archive-project .facetwp-type-fselect .fs-wrap, .post-type-archive-project .facetwp-type-fselect .fs-dropdown,
.page .facetwp-type-fselect .fs-wrap, .page .facetwp-type-fselect .fs-dropdown
{
    width: 100% !important;
    position: relative;
}

.post-type-archive-project .facetwp-type-fselect .fs-dropdown, .page .facetwp-type-fselect .fs-dropdown
{
    box-sizing: border-box;
    margin-top: -6px;
    position: absolute;
}


.post-type-archive-project .fs-label-wrap .fs-label {
    padding: 0;
}

.facetwp-selections {
    margin-bottom: 10px;
    font-size: 75%;
}

.facetwp-selections .facetwp-selection-label {
    font-weight: 600;
}


.facetwp-template {

}

.facetwp-template .fwpl-result {
    display: flex;
    flex-direction: column;
    position: relative;
}

.facetwp-template .fwpl-result .captions {
    color: #fff;
    top: 0;
    left: 0;
}

.facetwp-template .fwpl-result .fwpl-row:last-of-type {
    margin-top: auto;
}

.test-downloads .test-headers {
    margin-bottom: 10px;
}


/* use flexbox to lay out the project grid items */

.archive .project-item {
    margin-bottom: 80px;
}

.archive .project-item .fwpl-result {
    display: flex;
    flex-direction: column;
}

.archive .project-item .fwpl-result div:last-of-type {
    margin-top: auto;
}


/* style the talks pulled in from talks.cam.ac.uk using RSS plugin */

div.rss-talks > ul {
    margin: 0; padding: 0;
}

div.rss-talks > ul > li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

div.rss-talks > ul li ul li {
    list-style-type: disc;
}

div.rss-talks > ul li p {
    margin-bottom: 10px;
}

div.rss-talks > ul li a {
    display: none;
}

div.rss-talks > ul li div.vevent a {
    display: initial;
}

div.rss-talks > ul li div.vevent img {
    float: right;
}

div.rss-talks > ul li div.details {
    margin-bottom: 20px;
}

div.rss-talks > ul li abbr {
    text-decoration: none;
}


/* style the recruitment block */

.recruitment-details {
    float: right;
    display: block;
    border: 1px solid #01305E;
    padding: 20px;
    margin: 0 0 10px 10px;
    width: 50%;
    font-size: 90%;
}

.recruitment-details h2 {
    font-size: 26px;
}

/* Home page slider */

.slideshow-wrap {
    position: relative;
    margin-bottom: 20px;
}

.slick-slider {
    position: absolute;
    width: 100%;
    z-index: 1;
}

.single-slide {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    height: 100%;
}

.front-page-1 {
    background: none !important; /* sorry! */
    position: relative;
    min-height: 619px;
    height: 100%;
    z-index: 10;
}

.morelink {
    display: block;
    bottom: 40px;
    border: 1px solid #fff;
    border-radius: 5px;
    text-align: center;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    line-height: 35px;
    color: #fff;
    margin: 0 auto;
    position: relative;
}

.morelink:hover {
    background: #fff;
    color: #000;
}

.image-section .wrap {
    height: 100%;

}

/* Slider */
.slick-slider
{

    z-index: 5;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}


/* Updates feb 2020 */
.wrap {
    position: relative;
    text-align: center;
}

.nav-primary .genesis-nav-menu {
    float: none;
}

.genesis-nav-menu .menu-item {
    display: inline-block;
    float: none;
}

.header-site-title {
    float: left;
    width: 100%;
    position: absolute;
    margin: 0;
    z-index: 10;
}

.header-site-title h1 {
    text-align: center;
    display: block;
    font-weight: 300;
    font-size: 4.5rem;
    color: #fff;
    margin: 0;
}

.home-navigation-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.home-navigation {
    width: 30%;
    margin: 15px 0;
}

.home-navigation img {
    width: 100%;
}

.home-navigation a {
    color: #01305E;
    font-weight: 900;
}

.page-template-template-past-projects .site-inner {
    max-width: 2000px;
}


/* Media Queries
--------------------------------------------- */
/* iPhone SE portrait*/
@media only screen and (max-width:320px) {
    .staff-item{
        margin-bottom:100px;
        padding-right: 0;
    }
    .staff-info{width: 100%;}

    #front-page-6 .solid-section .widget{
        padding:0;
    }
}
#front-page-6 .publication a {
    /*border-bottom: solid 1px #cef;*/
}
/* iPhone Plus portrait */
@media only screen and (max-width:414px) {
    .staff-item{
        margin-bottom:60px;
        padding-right: 0;
    }
    .staff-info{width: 100%;}
    .filter-programme{
        margin-left:0px;
    }
}
@media only screen and (max-width:507px) {
    .staff-item{
        margin-bottom:100px;
        padding-right: 0;
    }
    .staff-info{width: 100%;}
}
@media only screen and (max-width:551px) {
    .staff-item{
        margin-bottom:60px;
        padding-right: 0;
    }
    .staff-info{width: 100%;}
}


@media only screen and (max-width:600px) {
       .bw-featured-title .entry-title {
        padding-top: 0px;
    }

    .header-site-title h1 {
        font-size: 3.0rem;
    }

    .home-navigation-wrapper .home-navigation {
        width: 100%;
    }

}

@media only screen and (max-width:700px) {

    #front-page-1 {
        height:40vh;
        min-height: 0;
        padding-bottom: 0;
    }

    #front-page-1 .image-section .widget-area {
        padding-bottom: 0;
        padding-top: 0;
    }

    #front-page-1 .image-section {
        height: 100% !important;
    }

    .slick-slider, .slick-slide, .single-slide {height: 40vh !important}
    .slideshow-wrap {height: 40vh;}
    .image-section .wrap {height: 36vh;}
    .bw-featured-title {min-height:290px !important;}

}
/* iPad portrait */
@media only screen and (max-width:768px) {

    .staff-item{
        margin-bottom:100px;
        padding-right: 0;
    }
    .staff-info{
        width: 100%;
    }
    .filter-label{
        clear:left;
    }

    .recruitment-details {
        float: none;
        display: block;
        border: none;
        padding: 0px;
        margin: 0;
        width: 100%;
        font-size: 100%;
        order: 2;
    }

    .recruitment-details h2 {
        font-size: 32px;
    }

    .project-content {
        display: flex;
        flex-direction: column;
    }

    .header-site-title h1 {
        font-size: 3.0rem;
    }

}

@media only screen and (max-width:890px) {
    .header-site-title-right form input[type=search] {width:80px;}
    .header-site-title h1 {font-size: 3rem;}
}

@media only screen and (max-width:920px) {
    .header-site-title-right form {
        margin-right:10px;
    }
}


@media only screen and (max-width:1098px) {
    .staff-item {
        width: 33%;
    }
}
@media only screen and (max-width:1098px) {
    .single-staff .staff-job-title{
        margin-right:40%;
    }

}

@media only screen and (max-width:870px) {

    .staff-item {
        width:100%;
        margin-bottom: 0;
    }
    .staff-item img, .staff-info{
        float:left;
        margin-right: 20px;

    }
    .staff-info{width: 100%; margin-bottom: 30px;}
    .header-site-title {
        float: left !important;
        width: 100%;
        clear: both;
        margin-left: 0;
    }

    .header-site-title h1 {
        font-size: 3rem;
    }



}
/*iPad Pro portrait*/
@media only screen and (max-width:1024px) {
    /* Force 1 item per row instead of grid */
    .fwpl-layout{
        display: unset!important;
    }
    .project-item, .fwpl-result{
        width: 100%;
        margin-bottom: 40px;
    }

    .fwpl-result img {
        width: 100%;
    }

    .home .project-item{
        width:100%;
    }

    /* Hide the download headers on single test post */

    .test-headers{

        display: none;

    }

    .test-download-row .download-language h4::before {

        font-weight: bold;

        content: "Language: ";

    }


    .test-download-row .download-url h4::before {

        font-weight: bold;

        content: "Link: ";

    }

    .test-download-row .download-credits h4::before {

        font-weight: bold;

        content: "Contributors/Notes: ";

    }

    .wrap {
        max-width: 100%;
    }

    .header-image .site-title > a {
        margin-top: 5px;
        margin-left: 20px;
    }

    .header-site-title h1 {font-size: 4.0rem;
    margin-top: 5px;}

}


@media only screen and (max-width: 870px) {
    .header-site-title h1 {font-size: 3.5rem;}
}


@media only screen and (max-width: 1213px) {


    .secondary-nav .site-inner {
        margin-top: 80px;
    }

    .front-page .site-inner {
        max-width: none;
    }

    .site-header {
        position: static;
    }


    .front-page .site-header > .wrap {
        border: none;
    }

    .content,
    .sidebar,
    .site-header .widget-area,
    .title-area {
        width: 100%;
    }

    /* .site-header .title-area,
    .site-header.dark .title-area {
        padding: 15px 0;
    } */

    .header-image .dark .site-title > a {
        height: 76px;
    }

    .genesis-nav-menu,
    .site-header .widget-area,
    .site-title {
        text-align: center;
    }

    .header-image .site-title > a {
        background-position: right !important;
    }

    .nav-primary .genesis-nav-menu {
        float: none;
    }

    .nav-secondary,
    .site-header.dark .nav-secondary {
        border-bottom: none;
    }

    /* .genesis-nav-menu a,
    .site-header.dark .genesis-nav-menu a {
        padding: 10px;
    } */

    .front-page .site-inner {
        margin-top: 0;
    }

    .site-inner {
        margin-top: 80px;
    }

    .full-width-content .content {
        padding: 0;
    }

    .full-width-content img.pull-left {
        margin-left: 0;
    }

    .full-width-content img.pull-right {
        margin-right: 0;
    }

    .five-sixths,
    .four-sixths,
    .one-fourth,
    .one-half,
    .one-sixth,
    .one-third,
    .three-fourths,
    .three-sixths,
    .two-fourths,
    .two-sixths,
    .two-thirds {
        margin: 0;
        width: 100%;
    }

    .flexible-widgets.widget-full .widget,
    .flexible-widgets.widget-halves .widget,
    .flexible-widgets.widget-thirds .widget,
    .flexible-widgets.widget-fourths .widget {
        margin: 0 auto 20px;
        width: 100%;
    }

    .front-page-1 .widget:first-of-type h4,
    .front-page-2 .widget:first-of-type h4 {
        font-size: 60px;
        font-size: 6rem;
    }

    .front-page-1 .image-section,
    .secondary-nav .front-page-1 .image-section {
        padding-top: 0;
    }
    /* 
        .header-site-title h1 {
            font-size: 4rem;
        } */

}
/* TODO: replace with max-width*/

@media only screen and (min-width:100px) {
    #front-page-4 section{
        margin-top: -130px!important;
        margin-bottom: -30px!important;
    }
}

@media only screen and (max-width:800px) {
    .site-header .genesis-nav-menu>li {
        border-right: none;
    }

    .header-site-title {
        
        position: relative;
    }
    .menu {
        margin-top: 10px;
    }
    .header-site-title-right form {
        display: none;
    }
}

/* Add styling for logo boxes */

div.logowrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

div.logowrap .logo {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 31%;
    margin: 1%;
    padding: 20px;
    border: 1px solid #ccc;
    text-align: center;
    justify-content: center;
    font-size: 80%;
}

div.logowrap .logo img {

}

.border-bottom {
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 676px) {
    div.rss-talks > ul li div.vevent img {
        float: none;
    }
    div.logowrap .logo {
        width: 100%;
    }

    .header-site-title h1 {
        text-align: right;
        display: block;
        font-weight: 300;
        font-size: 4.5rem;
        color: #fff;
        margin: 0;
        margin-left: 70px;
    }

}

@media screen and (max-width: 500px) {
    .header-site-title h1 {
        font-size: 3.5rem;
        
    }
}

@media screen and (max-width: 380px) {
    .header-site-title h1 {
        font-size: 2.3rem;        
    }
}


@media screen and (max-width: 320px) {
    .flexible-widgets {
        padding-top: 20px;
    }

}

@media only screen and (min-width:1024px) {
    .page .facetwp-facet-project_volunteer_type.facetwp-type-fselect .fs-wrap.fs-default {
        width: 33% !important;
    }
    
}

h3.faq-title {
    font-size: 1.4em;
    text-transform: uppercase;
}

/* .page .facetwp-facet-project_volunteer_type .fwpl-item a {
    margin-bottom: 20px;
} */

.facetwp-search-wrap {
    position: relative;
    display: block;
    float: none;
    width: 100%;
    margin-bottom: 30px;
}

.facetwp-facet-publication_authors .facetwp-search-wrap {
    position: relative;
    display: block;
    float: left;
    width: 100%;
    margin-bottom: 30px;
}

.facetwp-search-wrap .facetwp-btn {
    top:26px;
}

/*
Twitter in header 
*/

.twitter-header, .twitter-header-mobile {
float: left;
    line-height: 1em;
    margin-left: 15px;
    margin-right: 15px;
    padding-top: 3px;
}   
.twitter-header-mobile {
    display: none;
}
.twitter-header {
    float: none;
    display: inline-block;
    position: relative;
    z-index: 100;
}
.twitter-header a, .twitter-header-mobile a {
    color: #00529c;
}
.twitter-header a i, .twitter-header-mobile a i {
    font-size: 4rem;
    margin-top: 10px;
}

.header-site-title-right h1 {
    padding-bottom: 0;
    margin-bottom: 0;
}

.search-row {
    display: block;
    clear: both;
    width: 100%;
    float: right;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: right;
}

.search-row form {
    float: right;
    margin-right: 5px;
}

.title-area {
    position: absolute;
    top: 0;
}

@media screen and (max-width: 800px) {
    .title-area {
        position: relative;
    }
}

@media screen and (max-width: 360px) {
    .twitter-header {
        
            margin-left: 0px;
            margin-right: 0px;
        }
}

.mobile-search {
    display: none;
}

@media screen and (max-width: 800px) {
    .mobile-search {
        display: block;
    }

    .searchblock {
        display: none;
    }

    .genesis-responsive-menu .genesis-nav-menu > .menu-item-has-children > a::after {
        display: none;
    }

    .search-row > form {
        display: none;
    }

    .site-header .mobile-search form {
        width: 100%;
        margin: 10px 0;
    }

    .site-header .mobile-search form input[type=search] {
        width: 65%;
    }

    .site-header .mobile-search form input[type=submit] {
        width: 19%;
    }

    .twitter-header {
        display: none;
    }
    .twitter-header-mobile {
        display: block;
        width: 100%;
        margin: 0;
    }

    .twitter-header-mobile a i {
        font-size: 5rem;
    }
}

.homelink i {
    font-size: 140%;
}

.genesis-nav-menu > .menu-item > a {
    text-transform: none;
}

.site-footer p {
    text-transform: none;
}

.genesis-nav-menu a {
    color: #00529c;
}

.genesis-nav-menu .sub-menu a {
    background: #fff;
    text-transform: none;
}

.genesis-nav-menu .sub-menu a:focus, .genesis-nav-menu .sub-menu a:hover, .genesis-nav-menu .sub-menu li.current-menu-item > a {
    background-color: #1e73be;
}

.site-header .genesis-nav-menu a, .site-header.dark .genesis-nav-menu a {
    padding: 15px 10px 10px 10px;
}

.widget-column-wrap {
    display: flex;
    flex-direction: row;
}

.widget-column-wrap .single-widget {
    width: 45%;
    padding-left: 20px;  
    margin-right: 20px;
}

.widget-column-wrap .single-widget:last-of-type {
    margin-right: 0;
   
    border-left: 1px solid #ddd;
}

@media screen and (max-width: 800px) {
    .widget-column-wrap {
        display: block;
    }
    
    .widget-column-wrap .single-widget {
        width: 100%;
        margin-right: 0px;
    }
    
    .widget-column-wrap .single-widget:last-of-type {
        margin-right: 0;
        padding-left: 0px;  
        border-left: none;
    }
}

.tint {
    display: block;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.site-header {
    position: relative;
}

#front-page-2 .widget-area .wrap .wrap {
    border-bottom: 1px solid #ddd;
}

.staff-photo {
    float: right;
    margin: 0 0 0 20px;
}

@media screen and (max-width: 800px) {
    .staff-photo {
        float: left;
        width: 100%;
        margin: 0 0 20px 0;
    }
    img {
        width: 100%;
    }
}

/**
Add pre-header
*/

.cscs_preheader {
    background: #000;
    color: #fff;
    text-align: left;
}

.cscs_preheader a {
    color: #fff;
    text-decoration: underline;
}

.cscs_preheader .wrap .logoblock {
    float: left;
}

.cscs_preheader .wrap .logoblock h1 {
    display: block;
    text-indent: -100000px;
    font-size: 0;
    width:172px;
    height: 35px;
    margin: 10px 0;
    background: url('../img/cropped-cam-logo.png') no-repeat;
    background-size: contain;
    float: left;
}

.searchblock form {
    float: right;
    margin: 10px 0;
}