.full-width {
  padding-left: 50px; padding-right: 50px;
}

.tablet {
  display: inherit;
}

/* Reset hover colors, so it won't cause bugs on touch screens */
.gform_footer input[type="submit"]:hover,
.button--plain:hover {
  background: #71acf4;
}

.button--white:hover {
  background: white;
}

.read-more:hover,
.funding-block:hover .hp-read-more,
.hp-read-more:hover,
.hp-read-more--large:hover {
  border-bottom-color: transparent;
}

.read-more:hover:after,
.funding-block:hover .hp-read-more:after,
.hp-read-more:hover:after {
  right: -30px;
}

.hp-read-more--large:hover:after {
  right: -37px;
}


/* Header */
.menu--main,
.header__right {
  display: none;
}

.header__left {
  width: 100%; display: block;
}

.header {
  height: 60px;
}

.logo__link {
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: 39px;
  margin-top: 10px;
  width: auto;
}

.logo {
  height: 100%; width: auto;
  margin: 0 auto;
}

.search-mobile,
.mobile-menu__toggle {
  position: absolute; left: 0; top: 0; height: 60px; width: 60px;
  background: url('../images/dots-gray.svg') 50% 50% no-repeat; 
}

.search-mobile {
  left: auto; right: 0;
  background-image: url('../images/search.svg');
}

.content {
  margin-top: 60px;
  min-height: calc(100vh - 544px);
}

  /* Sidebar */
  .mobile-nav {
    position: fixed; left: 0; top: 0; bottom: 0; width: 253px;
    background: white; z-index: 2000;
    transition: 0.25s ease-in-out all;
    transform: translateX(-100%);
  }

  .is-menu-open .mobile-nav {
    transform: translateX(0);
    box-shadow: 20px 0 70px 0 rgba(0, 0, 0, 0.2);            
  }

  .mobile-nav__scroll {
    overflow-y: auto; height: 100%;
  }

  .mobile-nav__inner {
    padding-top: 85px; padding-left: 20px; padding-right: 20px;    
  }

  .mobile-nav__header {
    position: absolute; top: 0; left: 0; right: 0;
    height: 60px; z-index: 200;
    background: white;
  }

  .mobile-nav .mobile-menu__toggle {
    background-image: url('../images/dots-blue.svg');
  }

  .menu--mobile-menu {
    margin-top: 37px;
  }

  .mobile-nav__top {
    text-align: center;
  }

  .button--login {
    font-size: 14px;
    padding: 5px 26px;
  }

  .menu-item__wrapper {
    position: relative;
  }

  .menu__item--mobile-menu {
    font-size: 16px; color: #232323;
    font-family: 'Montserrat'; font-weight: 500;
  }

  .menu--mobile-menu .submenu-item__wrapper,
  .menu--mobile-menu .menu-item__wrapper > .menu-item {
    border-bottom: solid 1px #f1f1f1;    
  }

  .menu--mobile-menu .menu-item__wrapper:last-child > .menu-item {
    border-bottom: none;
  }

  .menu--mobile-menu .menu-item__wrapper .menu-item {   
    display: block;
    padding: 16px 0;
  }

  .menu--mobile-menu .menu-item__wrapper--with-submenu > .menu-item .menu-item__inner {
    background: url('../images/mobile-down.svg') 100% 50% no-repeat;
    padding-right: 21px; display: inline-block;
  }

  .menu--mobile-menu .menu-item__wrapper--with-submenu.is-open > .menu-item .menu-item__inner {
    background-image: url('../images/mobile-up-blue.svg')
  }

  .submenu__toggle  {
    height: 58px;
  }

  .footer .submenu__toggle {
    display: none;
  }
  
    
  .menu--mobile-menu .menu-item__wrapper .submenu {
    display: none;
    margin-left: 17px;
    margin-right: 0;
  }

  .menu--mobile-menu .menu-item__wrapper.is-open .submenu {
    display: block;
  }
  
  .menu--mobile-menu .submenu-item__wrapper .menu-item {
    font-size: 15px; font-family: 'Lato';
  }

  .mobile-menu__overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.001); z-index: 1999;
  }

  .is-menu-open .mobile-menu__overlay {
    display: block;
  }

/* Footer */
.menu--footer > ul > .menu-item__wrapper:first-child {
  margin-left: 50px;
}

.menu--footer > ul {
  flex-wrap: wrap;
}

.menu--footer > ul > .menu-item__wrapper {
  margin-left: 50px; margin-bottom: 25px;
}

.footer__info {
  max-width: 200px;
}

.faq-section .section__inner {
  display: block;
}

.faq-section__title {
  margin-bottom: 50px;
}

/* Single post */
.page--post .page-header__title {
  font-size: 1.8rem; line-height: 1.3;
  max-width: 700px;
}

.post-page--with-sidebar .section__inner {
  flex-direction: column-reverse;
} 

.post-page__sidebar {
  flex: 1;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-bottom: -1.5rem;
}

.post-page .post-page__content {
  max-width: none;
}

/* About */
.about-block--image.about-block--left { left: -110px }  
.about-block--image.about-block--right { right: -110px }  
.about-block--image__text {
  font-size: 1rem; width: 309px; 
  margin-left: -158px;
  padding-left: 30px;
  padding-right: 30px;
}

.page-header__image .image-with-caption__text  {
  max-width: 250px;
}

.about-block--image__text p {
  margin-bottom: 10px;
}

.about-block--image__text a {
  font-size: 0.777rem;
}

.about-block--image.about-block--left .about-block--image__text {
  margin-left: auto; margin-right: -158px;
}

/* Error */
.error__text-inner {
  padding-left: 150px;
  padding-right: 150px;
  background-size: 250px;
  max-width: 750px;
  position: relative; left: -45px;
}

/* Grants */
.grant .section__inner {
  flex-direction: column-reverse;  
}

.grant-section {
  display: block;
}

.grant-section__content {
  display: none;
}

.is-current .grant-section__content {
  display: block;
}

.table__wrapper {
  width: auto;
}


.grant__sidebar  {
  display: none;
}

.grant-footer .grant-files__wrapper--mobile {
  display: block; margin-bottom: 50px;
}

.grant-section {
}

.grant-section__title-link {
  padding-bottom: 20px;
  padding-top: 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);  
}

.grant-section__content {
  padding-top: 30px;
}

.grant-section__title-link {
  display: block;
  font-size: 0.875rem;
  padding: 11px 0px;
  font-weight: 500;
  color: #9b9b9b;
  background: url('../images/arrow-gray.svg') 100% 50% no-repeat;
}

.is-current .grant-section__title-link--off {
  display: block;
}

.is-current .grant-section__title-link {
  background-image: none;
  color: #4a90e2;
}

.grant-section__title {
  display: none;
}

.grant-block--table {
  max-width: calc(100vw - 235px);
  overflow-x: auto;
}

.grant-related-thumbs {
  flex-wrap: wrap;
  max-width: 478px;
  margin-bottom: 38px;
}

.grant-related-thumb {
  flex: 0 0 calc(50% - 25px);
  margin-bottom: 21px;
  height: 116px;
}


/* Homepage */


.hp-intro__wrapper {
  margin-bottom: 62px;
}

.hp-funding__title {
  padding-top: 49px;
}

.funding-blocks {
  top: 110px;
}

.hp-dates__sidebar {
  flex-basis: 320px;
}


/* Homepage Banner large */
.hp-banner {
  font-size: 0.6rem;
}

.slideshow--homepage .image-with-caption__text {
  max-width: 200px;
}

.hp-banner__text {
  max-width: 500px;
}

.hp-banner__inner {
  padding-left: 0;
}

.button--white {
  font-size: 0.8rem;
}

/* Homepage Banner small */
.slideshow--homepage {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;    
}

.hp-banner {
  height: 334px;    
  margin-bottom: 0px;
} 

.hp-banner__text {
  height: 100%;
  max-width: 420px;
}

.full-width.hp-banner__inner {
  padding-left: 0;
}

.slideshow--homepage .slideshow-image {
  position: relative;
}

.slideshow--homepage .slideshow-image img {
  right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 0%;
}

.page-template-homepage .slideshow--homepage .slideshow__navs {
  display: none;
}

.slideshow--homepage .image-with-caption__text {
  margin-right: -1px; margin-bottom: 37px;
  max-width: 180px;
}



/* Notable grantees */
.grantees-slideshow__wrapper.desktop {
  display: none;
}

.grantee-award__winners {
  width: 100%;
}

.grantee-award__category:nth-child(3) {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 30px; 
}

.grantees-slideshow__wrapper .slideshow__slide {
  width: 100%; height: 100%;
} 

.grantees-slideshow__wrapper {
  position: relative; top: 0;
  height: auto; margin-left: -60px; margin-right: -60px;
}

.grantees-slideshow {
  padding-top: 66%;
  margin-bottom: 57px;
}

.grantees-slideshow .image-with-caption {
  height: auto; 
}

.grantees-slideshow img {
  height: auto; left: 0; right: 0;
  width: 100%;
  object-position: 50% 0;
}

.grantees-slideshow .image-with-caption__caption {
  position: absolute; bottom: -117px; left: 0; right: 0;  
  background: none; max-width: none; text-align: left;
  display: block; padding-left: 44px;  
}

.grantees-slideshow .image-with-caption__text {
  background: none; color: #868481; 
  font-size: 1rem; margin-bottom: 0; margin-right: 0;
  height: 102px; 
}

.grantees-slideshow .slideshow__navs {  
  bottom: 20px; right: 12px;  
  z-index: 200;
}

.grantees-slideshow .slideshow__nav {
  border-color: white;
  background-image: url('../images/right-white.svg');
}

.grantees-slideshow .slideshow__prev {
  background-image: url('../images/left-white.svg');
}


/* Login */
.page-template-login .login {
  max-width: 500px;
}

.page-template-login .login .section__inner {
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 30px;
  padding-top: 40px;
}

@media (max-width: 1200px) {
  .hp-banner {
    margin-bottom: 52px;
  }
  
 
  .hp-announcements__header {
    justify-content: flex-start;
  }

  .hp-announcements__title {
    margin-right: 20px;
  }

  .hp-intro__wrapper-inner {
    flex-direction: column;
  }

  .hp-intro__content {
    margin-bottom: 50px;
  }

  .hp-announcements {
    margin-left: 0;
    margin-bottom: 0;
    display: block;
  }

  .hp-announcements__list {
    margin-bottom: 43px;
  }

  .follow-us-links {
    display: none;
  }

  .hp-intro__image {
    width: 100%;
  }

  .hp-intro__image__image {
    width: 70%
  }

  .hp-intro__image {
    position: relative; bottom: 0; left: 0; right: 0;
  }

  .hp-intro__image .image-with-caption__text {
    max-width: 100%;
  }

  .hp-facts__slide {
    padding-left: 0;
  }

  .hp-magazine-thumb {
    flex-basis: 100%;
    margin-bottom: 40px;
  }

  .funding-block {
    flex: 0 0 50%;
    padding-top: 25%;
  }

  .hp-funding-block--without-text {
    display: none;
  }

  .funding-blocks {
    margin-bottom: 200px;
  }

  .hp-dates {
    margin-bottom: 0px;
  }

  .hp-notable-grantee__title {
    font-size: 0.777rem;
  }

  .hp-grantees {
    margin-bottom: 70px;
  }

  .hp-achievements__section {
    margin-bottom: 0px;
  }

  .hp-achievements__slideshow .slideshow__navs {
    right: 59px;
  }

  .hp-achievements__section .section__inner {
    padding-bottom: 64px;
  }

  .hp-grantees__inner {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hp-grantees__sidebar {
    flex: 0 0 250px;
  }

  .slideshow__slide .hp-facts__title {
    font-size: 1.111rem;
  }

  .hp-facts__value {
    line-height: 1;
    font-size: 4rem;
    margin-bottom: 10px;
  }

  .hp-facts .section__inner {
    margin-bottom: 83px;
  }
}

/* Facts and figures */
.fact--image .fact__inner {
  display: block;
}

.fact--image .fact__title strong {
  display: block;
}

.fact__title {
  font-size: 3rem; 
  font-weight: 300;
}

.fact__logo {
  height: 74px;
}

.fact--image .fact__title br { 
  display: none;
}

.fact--image__image-wrapper {
  padding-right: 32px; padding-bottom: 76px;
  max-width: 650px; margin-left: auto; margin-right: auto;
}

.fact--image .fact__title {
  margin-bottom: 25px;
  text-align: center;
}

.fact--image .fact__title-inner {
  margin: 0 auto; 
}

.fact-icon__icon {
  max-height: 33px; margin-right: 9px;
}

.fact-icon__number {
  font-size: 3rem;
}

.fact-icon__caption {
  font-weight: 300;
}

.fact__icons {
  padding-bottom: 40px;
}

.legend__title {
  font-size: 1rem;
}

.legend__item {
  margin-bottom: 11px;
}