/* ===================================== https://demos.scotch.io/visual-guide-to-css3-flexbox-flexbox-playground/demos ===================================== */
/*
    Flexbox grid @mixin

    EXAMPLE

    .flexbox {
        @include flexGrid(5, 4%);
        > div {
            margin-bottom: .4em;
            background: #333;
            padding: .8em;
            color: #fff;
        }
    }
*/
/* Usage
    @include add-font('FontName', 'fontfilename', 400);

    @media screen and (-webkit-min-device-pixel-ratio:0) {
        @include add-svg-font('FontName', 'fontfilename', 400);
    }
*/
.ani, header nav, header nav #menu-mobile > li.menu-item-has-children > a:after {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
@media screen and (max-width: 1366px) {
  html {
    font-size: 40px;
  }
}
@media screen and (max-width: 1024px) {
  html {
    font-size: 32px;
  }
  header .top-bar, header #menu-primary {
    display: none !important;
  }
  header .nav-icon {
    display: block;
  }
  header .nav-icon.is-active + nav {
    -webkit-transform: translateY(0vh);
    transform: translateY(0vh);
    visibility: visible;
    opacity: 1;
  }
  header nav {
    -webkit-transform: translateY(100vh);
    transform: translateY(100vh);
    position: fixed;
    z-index: 0;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    visibility: hidden;
    background: #0072bc;
    overflow: auto;
    z-index: 999;
    opacity: 0;
  }
  header nav a {
    text-decoration: none;
    padding: 5px 25px;
    display: block;
    color: white;
  }
  header nav a[href^="tel:"] {
    background: #3cb878;
    text-align: center;
  }
  header nav a[href^="tel:"]:hover {
    background: #36a56b;
  }
  header nav a.glink {
    background: #f26522;
    text-align: center;
  }
  header nav a.glink:hover {
    background: #ed560e;
  }
  header nav #menu-mobile {
    display: block;
  }
  header nav #menu-mobile .goog-logo-link {
    display: none !important;
  }
  header nav #menu-mobile > li > a {
    position: relative;
    font-weight: 700;
    font-size: 18px;
  }
  header nav #menu-mobile > li.menu-item-has-children > a:after {
    content: '';
    display: inline-block;
    width: 0px;
    height: 0px;
    border-bottom: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    position: absolute;
    right: 16px;
    top: 50%;
  }
  header nav #menu-mobile > li.menu-item-has-children > a.sd:after {
    -webkit-transform: translateY(-50%) rotate(-90deg);
    transform: translateY(-50%) rotate(-90deg);
  }
  header nav #menu-mobile > li.menu-item-has-children .sub-menu {
    font-size: 16px;
    display: none;
  }
  header nav #menu-mobile > li.menu-item-has-children .sub-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  header nav #menu-mobile > li.menu-item-has-children .sub-menu li a:before {
    display: inline-block;
    margin-right: 6px;
    content: '-';
  }
  header nav #menu-mobile > li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .home-content .content .hc-resources article {
    padding: 40px;
  }
  .home-content .content .hc-resources article div + div {
    margin-top: 8px;
  }
  .content.has-submenu {
    display: block;
  }
  .content.has-submenu aside {
    margin: -50px -20px 50px;
  }
  .content.has-submenu aside nav ul.submenu {
    display: none;
  }
  .content.has-submenu aside nav .selectric-wrapper {
    display: block;
  }
  .content.has-submenu aside nav .selectric-wrapper .selectric {
    background: #0072bc;
    font-weight: 700;
    font-size: 18px;
    color: white;
  }
  .content.has-submenu aside nav .selectric-wrapper .selectric .label {
    line-height: 40px;
    color: white;
  }
  .content.has-submenu aside nav .selectric-wrapper .selectric > i {
    border: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    -webkit-transform: rotate(-45deg) translateY(-100%);
    transform: rotate(-45deg) translateY(-100%);
    height: 12px;
    width: 12px;
    right: 10px;
  }
  .content.has-submenu aside nav .selectric-wrapper .selectric-items {
    border-top: 0;
  }
}
@media screen and (max-width: 1023px) {
  .content#page-header br {
    display: none;
  }
  .content.cta .row {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    justify-content: space-between;
  }
  .content.home-content .hc-programs br {
    display: none;
  }
  .content.home-content .hc-resources {
    display: block;
  }
  .content.home-content .hc-resources figure:before {
    padding-bottom: 65.5%;
    display: block;
    content: '';
  }
  .content.home-content .hc-resources article {
    padding: 40px 20px;
  }
  .content.home-content .latest-posts .row {
    display: block;
  }
  .content.home-content .latest-posts .row h3 {
    text-align: center;
  }
  .content.home-content .latest-posts .row .events {
    margin-top: 40px;
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
  footer nav.row {
    display: none;
  }
  footer .footer-links {
    text-align: center;
    display: block;
  }
  footer .footer-links a {
    display: block;
  }
  footer .footer-links + hr {
    display: none;
  }
  footer .copyright .row {
    text-align: center;
    display: block;
  }
  footer .copyright .row .dev {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
  }
  #ajax-load-more .blog-item {
    display: block;
  }
  #ajax-load-more .blog-item figure:before {
    padding-bottom: 65.5%;
  }
  #ajax-load-more .blog-item article {
    margin: 20px;
  }
  .post-placeholder {
    height: 320px;
  }
}
@media screen and (max-width: 767px) {
  html {
    font-size: 24px;
  }
  .animatedParent .animated {
    -webkit-transition-property: none !important;
    transition-property: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1;
  }
  .content h1 {
    font-size: 44px;
  }
  .content article table {
    font-size: 16px;
  }
  .content article table tr td {
    padding: 5px 10px;
  }
  .content article .resource {
    margin-right: -20px;
    margin-left: -20px;
    padding: 35px 15px;
  }
  .content .staff > figure {
    width: calc(50% - 24px);
  }
  .content .accordion > mark {
    padding: 10px 40px 10px 16px;
  }
  .content.cta .row {
    text-align: center;
    display: block;
  }
  .content.cta .row .button {
    margin-top: 20px;
    margin-left: 0;
  }
  .content.home-content .hc-programs .hc-buttons {
    display: block;
  }
  .content.home-content .hc-programs .hc-buttons a {
    display: block;
  }
  .content.home-content .hc-programs .hc-buttons a + a {
    margin-top: 20px;
    margin-left: 0;
  }
  .content.home-content .hc-widgets {
    display: block;
  }
  .content.home-content .hc-widgets a {
    display: block;
  }
  .content.home-content .hc-widgets a + a {
    margin-top: 40px;
    margin-left: 0;
  }
  footer .cr span, footer .cr a {
    display: none !important;
  }
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  .home .content .hc-programs .hc-programs-grid {
    display: block;
  }
  .home .content .hc-programs .hc-programs-grid a + a {
    margin-top: 20px;
    margin-left: 0;
  }
  .content .staff {
    margin: 20px 0 0;
    display: block;
    width: auto;
  }
  .content .staff > figure {
    margin-left: 0;
    display: block;
    width: 100%;
  }
  .content .staff > div {
    margin: 30px 0;
  }
  .post-placeholder {
    height: 300px;
  }
  .news-post > figure {
    margin-top: -55%;
  }
  .news-post article .post-nav {
    text-align: center;
    display: block;
  }
  .news-post article .post-nav .post-share {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    margin-top: 20px;
  }
  .contact-links {
    font-size: 14px;
  }
}
