html {
  font-size: 16px;
}

/* Header */
.is-search-open .search__input,
.search:focus + .search__input {
  max-width: 81px;
}    

/* Notable grantees */
.grantee-award .section__inner {
  display: block;
}

.grantee-award .grantee-award__sidebar {
  flex: 1;
}

.grantees-slideshow .image-with-caption {
  height: calc(93vw - 650px)
}


.grantees-slideshow__wrapper .slideshow__slide {
  width: calc(100vw - 650px);
}

.slideshow__navs {
  left: auto; right: 90px;
}

/* Magazine */
.magazine-issue__header {
  flex: 0 0 220px;
}

@media (max-width: 1150px) {
  .magazine .section__inner {
    flex-direction: column;
  }

  .magazine-issue__header {
    flex: 1; margin-bottom: 1rem;
  }

  .magazine-issue__title {
    max-width: none;
  }
}

/* About */
.about-block--image {
  right: -140px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.about-block--image.about-block--left {
  left: -140px; right: auto;
}

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

.about-block--image .image-with-caption__text {
  max-width: 31vw;
}

.about-block--image__text {
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 400px;
  margin-left: -200px;
  padding-top: 30px;
}

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

/* 404 */
.error__text {
  background-size: auto 400px;  
}

.error__text-inner {
  background-size: auto 350px;
  max-width: 900px;
}

.error__text-inner {
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 80px; padding-right: 80px;
}

.error__text h3 {
  margin-bottom: 20px;
}

.error__text a {
  min-width: 150px;
}

/* Grant */
.grant__sidebar {
  flex-basis: 250px;
}

@media (max-width: 1095px) {
  .table__wrapper {
    width: calc(100vw - 536px);
  }  




  .table__wrapper:after,
  .table__wrapper:before {
    content: ''; position: absolute;
    top: 0; bottom: 0; width: 40px; right: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.08) 100%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: 0.15s all;
  }

  .table__wrapper.is-scrollable-left:before {
    right: auto; left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.0) 100%);
  }

  .table__wrapper.is-scrollable-right:after,
  .table__wrapper.is-scrollable-left:before {
    opacity: 1;
  }

  .simplebar-track {
    background: #f6f6f6;
    border-radius: 50px;
  }

  .simplebar-scrollbar:before {
    background: #bbb;
  }

  .simplebar-hover .simplebar-scrollbar:before {
    background: #999;
  }
}

/* Homepage */
.hp-notable-grantees__inner {
  margin-left: 40px; margin-right: 40px;
}

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

.hp-notable-grantee {
  margin-bottom: 40px;
  padding-left: 10px; padding-right: 10px;
}

.hp-notable-grantee__number {
  font-size: 4rem;
  margin-bottom: 8px;
}

.hp-notable-grantee__title {
  font-size: 0.88rem; line-height: 1.2;  
}

.hp-announcements {
  margin-left: 60px;
}

.funding-block {
  padding-top: 23%;
}

.hp-dates__title{
  max-width: 120px;
}

.hp-achievements__slideshow .image-with-caption__caption {
  max-width: 300px;  
}

.hp-achievements__slideshow .image-with-caption__text {
  font-size: 0.7rem;
  line-height: 1.4;
}

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

.hp-achievements__slideshow .image-with-caption__caption {
  bottom: 0; left: 15px; top: auto;
}

.hp-achievements__slideshow .image-with-caption__text {
  background: #00000070; color: white;
  padding: 15px;
}


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

.hp-magazine__header {
  flex-basis: 300px;  
}

.hp-magazine__list{
  margin-right: -40px; 
}

.hp-magazine-thumb {
  padding-right: 50px;
  margin-bottom: 50px;
}

.hp-link__date:after {
  margin-top: 4px;
}

.hp-date__date:after {
  margin-top: 10px;
}

.hp-testimonial__text {
  font-size: 1.111rem;
}

.hp-facts__icon-wrapper {
  left: 350px; right: 60px;
}


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

.hp-banner__text {
  height: 32vw;
}


/* Tetimonials */
.page--testimonials .testimonial__letter-link {
  right: 44px;
}

/* General sidebar */
.sidebar-link__wrapper.is-current {
  background-position: 0 6px;
}

/* Facts and Figures */
.fact--image__image {
  max-width: 100%;
}

.fact__title {
  font-size: 3.8rem;  
  margin-bottom: 52px;
}

.fact__icons {
  flex-wrap: wrap;
}

.fact-icon {
  flex: 0 0 50%;
  margin-bottom: 35px;
}

.fact__map {
  padding-right: 68px;
  width: 100%;
  margin-bottom: 72px;
}

.legend__item {
  flex: 0 0 50%;
}

/* Donor recognition */
.donors__level ~ .donors__level .donors__amount {
  font-size: 2.5rem;  
}