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

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

/* ipad pro, Small Devices, Tablets
------------------------------------------------- */
@media only screen and (min-device-width: 769px) and (max-device-width: 1024px) and (orientation: landscape) {
  body {
    -webkit-text-size-adjust: none; /* none for no scaling */
  }
  .slide-title {
    font-size: 1.6em;
  }
  .slide-text {
    font-size: 1.1em;
    line-height: 1.2em;
  }
}

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

@media screen and (max-width: 870px) {
  .main-menu {
    display: none;
  }
  .active-menu .main-menu {
    display: block;
  }
  .mobile-menu {
    display: block;
    float: right;
	color: #035d20;
  }
  .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;
    bottom: 0;
    left: 0;
    width: 90%;
    max-width: 320px;
    height: 100%;
    margin-left: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    transition: all 0.4s ease;
  }
  .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 li:last-child a {
    color: #035d20;
  }
  .active-menu .menu-wrap ul.main-menu a,
  .active-menu .menu-wrap ul.main-menu ul.submenu li a,
  .active-menu .menu-wrap ul.main-menu ul.submenu li:last-child a {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #fff;
  }
  .active-menu .menu-wrap ul.main-menu li a.is-active,
  .active-menu .menu-wrap ul.main-menu ul.submenu li.active a {
    color: #8dc01b;
  }
  ul.main-menu > li:last-child > a {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .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: 10px;
    right: 5px;
  }
  .slide-title {
    margin-bottom: 0;
  }
  .slide-text {
    display: none;
  }
  .what-we-do,
  .news-article,
  .donation-account {
    width: 45.6%;
  }
  .download-margin {
    column-count: 2;
  }
  .sidebar,
  /* #sidebar-left, */
  .sidebar-left #main,
  .sidebar-right #main {
	width: 50%;
  }
}

@media screen and (max-width: 768px) {
  /* Body */
  body {
    font-size: 0.9em;
  }
  /* Homepage */
  .slide-title {
    font-size:  1.2em;
  }
  /* 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;
  }
  /* 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;
  }
  .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%;
  }
  /* Homepage */
  .slider-caption {
    left: 20px;
	bottom: 20px;
	padding: 15px 10px;
  }
  .home-slider .views-slideshow-controls-bottom {
	right: 0.9em;
	bottom: 10px;
  }
  .home-slider .views-slideshow-controls-bottom .views-slideshow-pager-bullets li {
	width: 15px;
  }
  .footer-block {
	float: none;
	width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
	margin-bottom: 1.6em;
  }
  /* Sidebar */
  .sidebar,
  #sidebar-left,
  #sidebar-right,
  .two-sidebar #sidebar-left {
    width: 100%;
    height: 100%;
  }
  .two-sidebar #sidebar-left {
    float: left;
  }
  #sidebar-left {
    /* float: left; */
    /* padding: 0 1% 0 0; */
  }
  #sidebar-right {
    margin-top: 3em;
    padding-left: 0;
  }
  /* Page node */
  img.image-field,
  .field--type-video-embed-field {
    float: unset;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 540px) {
  /* Layout -> Header */
  .header-container {
    padding: 6px 0;
  }
  .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;
  }
  /* Homepage */
  .what-we-do,
  .news-article,
  .donation-account {
    width: 94%;
	display: block;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
  }
  .download-margin {
    column-count: initial;
  }
  /* Layout -> Sidebar */
  .sidebar,
  #sidebar-left,
  #sidebar-right,
  .two-sidebar #sidebar-left {
    /* float: none; */
    width: 100%;
    /* margin: 0; */
    padding: 0;
  }
  aside.sidebar-right {
    /* margin-top: 3em; */
  }
  .sidebar .block {
	padding: 0;
  }
  /* Footer */
  .footer-blocks {
    flex-direction: column;
  }
  .footer-block {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 1.6em;
  }
}

@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: 440px) {
  /* layout -> Container */
  .container {
    /* width: 100%; */
    /* max-width: 414px !important; */
    padding: 0 15px;
  }
}
