/* Screen wider than container
------------------------------------------------- */
@media screen and (min-width: 1170px) {
  .container {
    /* width: 100%; */
    /* max-width: 1370px; */
  }
}

/* Medium Devices, Laptop, Desktop
------------------------------------------------- */
@media only screen and (min-width: 992px) and (max-width: 1170px) {
  .container {
    /* width: 100%; */
    max-width: 1170px;
  }
}

@media screen and (max-width: 1120px) {
  /* Body */
  body {
    font-size: 0.9em;
  }
  /* Layout -> Header -> Header top*/
  .header-top-container {
    flex-direction: column;
  }
  .header-top-left {
    margin-bottom: 6px;
  }
  .header-top-left i,
  ul.social-icons li {
    font-size: 0.8em;
  }
  .header-top-left i,
  ul.social-icons li a {
    width: 30px;
    height: 30px;
  }
  .header-right { padding: 28px 30px; }
  .header-right::before { display: none; }
  .search-icon {
    padding: 10px 0 10px 10px;
  }
  .search-box-content {
    top: 30%;
    width: 90%;
  }
  .main-menu {
    display: none;
  }
  .active-menu .main-menu {
    display: block;
  }
  .mobile-menu {
    display: block;
    float: right;
  }
  .menu-wrap {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: -1000px;
    background: transparent;
    z-index: 100;
    transition: all 0.4s ease;
  }
  .active-menu .menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 90%;
    height: 100%;
    max-width: 320px;
	max-height: 390px;
    margin-left: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    transition: all 0.4s ease;
	overflow: scroll;
  }
  .active-menu .menu-wrap ul.main-menu {
    overflow-y: scroll;
  }
  .active-menu .menu-wrap ul.main-menu > li {
    display: block;
    float: none;
  }
  .active-menu .menu-wrap ul.main-menu a {
    padding-top: 10px;
    padding-bottom: 10px;
	border-top: 1px solid var(--bold-color);
	background: #444;
    color: #fff;
  }
  .active-menu .menu-wrap .dropdown-arrow {
    position: absolute;
    right: 10px;
  }
  .active-menu ul.main-menu ul.submenu {
    position: relative;
    display: block;
    top: 0;
    opacity: 1;
  }
  .active-menu ul.main-menu ul.submenu::before,
  .active-menu ul.main-menu ul.submenu::after {
    content: "";
    display: table;
    clear: both;
  }
  .active-menu ul.main-menu ul.submenu li {
    position: relative;
    width: 100%;
    padding: 0 10px;
    background: none;
    text-align: right;
  }
  .active-menu ul.main-menu ul.submenu li a {
    display: block;
    width: 100%;
  }
  .active-menu ul.main-menu li a {
    border-bottom: 1px solid #434343;
  }
  .active-menu .close-mobile-menu {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    right: 5px;
  }
  ul.main-menu ul.submenu li.main-menu-item span {
    width: 100%;
    background: #444;
  }
  .active-menu ul.main-menu ul.submenu li.expanded {
    width: 100%;
  }
  ul.main-menu ul.submenu ul.submenu { left: initial; }
  
  .submenu .expanded::after { right: 14px; }
  
  .active-menu .menu-wrap ul.main-menu a.is-active { background: var(--bold-color); }
  

  /* Breadcrumb */
  #breadcrumb {
    padding: 6px 0;
  }
  .breadcrumb {
    font-size: 0.8em;
  }
  .breadcrumb-item-seperator {
    margin: 0 6px;
  }
  .top-container .more-link { margin-top: 10px; }
  .slideshow {
    margin-right: initial;
    width: 100%;
  }
  .latest-news,
  .latest-events {
	max-width: 50%;
	padding: 70px 0;
  }
  .latest-news {
    padding-right: 2%;
  }
  .latest-events {
    margin-left: -2px;
    padding-left: 2%;
  }
  .the-about,
  .the-videos,
  .the-programs { margin: 0; }

  .the-projects .feat-image,
  .the-success .testimony-image,
  .the-success .title-body-wrap,
  .the-projects .title-body-wrap {
	width: 50%;
  }
  .featured-project p,
  .featured-project h3,
  .success-testimony p,
  .success-testimony h3 {
    margin-left: 4%;
    margin-right: 4%;
  }
  /* Layout -> Page layout */
  .no-sidebar #main,
  .two-sidebar #main,
  .sidebar-left #main,
  .sidebar-right #main {
    float: none;
    width: 100%;
    margin: 0;
    /* padding: 0; */
  }
  #main::before,
  #main::after {
    content: "";
    display: table;
    clear: both;
  }
  .the-success .more-link,
  .the-updates .more-link { padding-right: 15px; }
  
  .update { max-width: 33%; }

  /* Node Content */
  .page-title-wrap {
    padding: 16px 0;
  }
  .page-title-wrap h1.page-title {
    font-size: 1.6em;
  }
  #node-comment .indented {
    margin-left: 20px;
  }

  /* Layout -> Footer */
  #footer {
    /* position: relative; */
    /* z-index: 2; */
  }
  .footer-bottom-middle {
    /* flex-direction: column; */
  }
  .copyright {
    /* margin-bottom: 12px; */
  }
  /* Content -> Form */
  .page-content input[type="text"],
  .page-content input[type="email"],
  .page-content input[type="password"],
  .page-content input[type="search"] {
    width: 100%;
    max-width: 100%;
  }
  input {
    max-width: 100%;
  }
}

/* ipad pro, Small Devices, Tablets
------------------------------------------------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  body {
    -webkit-text-size-adjust: none; /* none for no scaling */
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    /* width: 100%; */
    max-width: 991px;
  }
}

@media only screen and (min-width: 501px) and (max-width: 768px) {

  /* Sidebar */
  .sidebar,
  #sidebar-left,
  #sidebar-right,
  .two-sidebar #sidebar-left {
    float: left;
    width: 50%;
    height: 100%;
    margin: 0;
  }
  #sidebar-left {
    float: left;
    padding: 0 1% 0 0;
  }
  #sidebar-right {
    float: right;
    padding: 0 0 0 1%;
  }
  /* Footer */
  .footer-block {
    flex: 1 1 50%;
    width: 50%;
    max-width: 100%;
    margin-bottom: 1.6em;
    padding-right: 1.6em;
    padding-left: 1.6em;
  }
  .footer-block:nth-child(even) {
    padding: 0;
  }
  .footer-block {
  }
}

@media screen and (max-width: 768px) {
  /* Body */
  .program {
    width: 33%;
  }
  .about-info {
    width: 50%;
  }
  .the-success .title-body-wrap,
  .the-success .testimony-image,
  .the-projects .title-body-wrap,
  .featured-project:nth-child(2n) .feat-image,
  .featured-project:nth-child(2n+1) .feat-image {
    float: none;
    width: 100%;
	max-width: 620px;
	display: block;
	margin-left: auto;
	margin-right: auto;
  }
  .the-projects .feat-image,
  .the-success .testimony-image {
    border: initial;
    border-radius: initial;
  }
  .the-success .title-body-wrap,
  .the-projects .title-body-wrap {
    margin-top: initial;
  }
  .featured-project {
	width: 50%;
	margin-left: -2px;
    margin-right: -2px;
	padding: 25px 15px;
	vertical-align: top;
	border-bottom: initial;
  }
  .featured-project p,
  .featured-project h3,
  .success-testimony p,
  .success-testimony h3 {
	border: initial;
    margin-left: initial;
    margin-right: initial;
	border-radius: initial;
  }
  .featured-project h3,
  .success-testimony h3 {
    margin-top: initial;
  }
  .featured-project:hover p,
  .featured-project:hover h3,
  .success-testimony:hover p,
  .success-testimony:hover h3 {
	border: initial;
  }
  .update { max-width: 50%; }
  .downloads-block {
	width: 50%;
    padding: 25px 15px;
  }
  .video-entry { max-width: 45.5%; }
  .the-impact {
	text-align: left;
	margin-left: initial;
    margin-right: initial;
  }
  .impact-counters .impact-counter {
	max-width: 50%;
	padding-top: 25px;
    padding-bottom: 25px;
  }
  .team-member { max-width: 26.5%; }
  .the-downloads {
	column-count: 2;
	margin-bottom: initial;
  }
}

@media (max-width: 612px) {

  .header-right {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .slider_caption {
    bottom: 20px;
    left: 15px;
    width: 50%;
  }
  .slide-title { margin-bottom: 0; }
  .slide-text { display: none; }
  /* layout -> Container */
  .latest-news,
  .latest-events {
    max-width: 100%;
  }
  .latest-news { padding: 40px 15px 20px; }
  .latest-events { padding: 20px 15px 40px;}
  .podcasts-signup .half {
    width: 100%;
	padding-left: 15px;
	padding-right: 15px;
  }
  .the-success {
    margin-left: auto;
    margin-right: auto;
  }
  .podcasts-signup .sign-up { margin-top: 25px; }
  .podcasts-signup .podcasts { margin-bottom: 25px; }
  .page-node-type-page img.image-field,
  .page-node-type-page .field--type-video-embed-field {
    float: none;
    display: block;
    margin: 0 auto 15px;
  }
  .downloads-block {
	width: 100%;
	/* padding: 20px 15px; */
  }
  .the-downloads { column-count: 1; }
  #contact-message-feedback-form {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 500px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .site-branding .site-logo {
    padding-right: 4em;
  }
  .header-right {
    padding: 1% 15px;
  }
  /* layout -> column *//*
  .full,
  .one_half,
  .one_three,
  .one_four,
  .one_four_first,
  .one_four_last {
    width: 100%;
    padding: 2% 0;
  }*/
  /* Layout -> Header */
  .header-container {
    padding: 6px 0;
  }
  .search-box-content input[type="search"] {
    padding: 15px;
  }
  .search-box-content input[type="submit"] {
    padding: 10px 20px;
  }
  .align-left,
  img.align-left,
  figure.align-left,
  .align-right,
  img.align-right,
  figure.align-right,
  .align-center,
  img.align-center,
  figure.align-center {
    clear: both;
    margin: 0 auto;
    float: none;
  }
  .program { width: 50%; }
  .about-info,
  .featured-project { width: 100%; }
  .the-videos,
  .featured-project,
  .page-content .the-updates,
  .latest-invites .container {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .the-success { max-width: 400px; }
  .update,
  .video-entry {
    float: left;
    display: inline-block;
	margin-left: 0;
    margin-right: 0;
	max-width: 100%;
    width: 100%;
  }
  .team-member { max-width: 43%; }
  /* Layout -> Sidebar */
  .sidebar,
  #sidebar-left,
  #sidebar-right,
  .two-sidebar #sidebar-left {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  /* Footer */
  .footer-blocks {
    flex-direction: column;
  }
  .footer-block {
    width: 100%;
    padding: 0;
    flex: 1 1 100%;
    max-width: 100%;
	text-align: left;
    margin-bottom: 1.6em;
  }
}

@media (max-width: 414px) {
  /* layout -> Container */
  .container {
    /* width: 100%; */
    max-width: 414px !important;
    /* padding: 0 6px; */
  }
  .the-programs {
	margin-left: auto;
	margin-right: auto;
	max-width: 300px;
	display: block;
  }
  .program { width: 100%; }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) {
  body {
    -webkit-text-size-adjust: none; /* none for no scaling */
  }
}

@media (max-width: 376px) {
  .site-branding .site-logo { padding-right: 2em; }
  .primary-menu-wrapper { padding-right: 5px; }
  .slider_caption {
    bottom: 5px;
    left: 5px;
  }
  .slide-title {
    font-size: 1em;
    font-weight: initial;
  }
  .slideshow .views-slideshow-controls-bottom { overflow: hidden; }
  .views-slideshow-controls-bottom ul {
	margin-left: 0;
	padding-left: 0;
  }
  .block-title,
  .latest-news .news-update,
  .latest-events .news-update,
  .sign-up #edit-intro-text { text-align: left; }
  .update,
  .about-info,
  .video-entry,
  .latest-news,
  .latest-events,
  .featured-project,
  .downloads-block,
  .podcasts-signup .half {
	padding-left: 0;
	padding-right: 0;
  }
  /* layout -> Container */
  .impact-counters .impact-counter {
	width: 100%;
    display: block;
	max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  .the-updates {
	margin-left: auto;
    margin-right: auto;
  }
  .footer-block { font-size: 0.95em; }
}
