@media only screen and (max-width: 768px) {
  html {
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    overflow-x: hidden !important;
    font-size: 17px !important;
  }

  .wrapper {
    width: 100% !important;
  }

  #menu {
    display: block;
    float: none !important;
    height: auto;
    line-height: normal;
  }

  #mobile-menu-trigger:checked + ul {
    display: flex;
  }
  #main {
    margin: 0 5px 0 10px;
  }
  #mainnav {
    display: none;
    float: none !important;
    width: 100vw !important;
    height: auto !important;
    line-height: normal !important;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100vw;
  }

  #mainnav li {
    display: inline-block;
    float: none !important;
    flex: 0 1 auto;
    width: 100%;
    margin-right: 0 !important;
    padding: 0 1rem;
  }

  #mainnav li a {
    display: block;
    width: 100%;
  }

  .login-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem;
    float: none !important;
  }

  .login-div > * {
    display: block;
    flex: 1 0 25%;
    font-size: 12px !important;
    margin: 0 .25rem;
  }

  .login-div > label {
    font: normal 14px "Open Sans", Helvetica, Arial, sans-serif;
    margin: 0;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    outline: none;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 0 36px;
    height: 32px;
    max-height: 32px;
    width: 36px;
    max-width: 36px;
    font-size: 12px !important;
    background-color: white;
    color: #35A8E0;
    border: 2px solid #35A8E0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .login-div > label span {
    display: block;
    height: 1px;
    width: 18px;
    background-color: grey;
    margin: .1rem 0;
  }

  #header {
    display: block;
    float: none !important;
    height: auto;
  }

  #header .wrapper > a {
    display: block;
    width: 100%;
    height: 150px;
  }

  #header .wrapper > a img {
    position: relative;
    top: 0;
    left: 0;
    max-width: none;
    display: block;
    height: 150px;
    width: auto;
    margin: 0 auto;
  }

  #header .title {
    position: relative;
    top: 0 !important;
    left: 0;
    width: 100%;
  }

  #header .search-form {
    position: relative;
    top: 0;
    left: 0;
    width: calc(100% - 30px);
    margin: 0 15px;
  }

  #header .search-submit {
    position: absolute;
    top: 10px;
    right: 5px;
  }

  #featured {
    float: none !important;
  }

  #featured  .wrapper{
    height: 110px;
  }

  #main-container {
    display: flex !important;
    flex-direction: column-reverse;
  }

  #left {
    position: static;
    float: none !important;
    width: 95% !important;
  }

  #main {
    float: none !important;
    width: 97% !important;
  }

  .main-section {
    float: none !important;
    display: block;
    width: calc(100% - 2rem) !important;
    padding: 0 1rem;
  }

  .main-section .title {
    float: none !important;
  }

  .breadcrumb, .page-title {
    margin: 0 5px 0 5px;
  }

  .calendar-list,
  .calendar-list .calendar-list-left,
  .calendar-list .calendar-list-left .event,
  .calendar-list .calendar-list-left .event .date-circle,
  .calendar-list .calendar-list-left .event .event-wrap {
    float: none !important;
  }

  .calendar-list .calendar-list-left {
    width: 100% !important;
  }

  .news-items,
  .news-items article,
  .news-items article h2,
  .news-items article .news-lead,
  .news-items article .btn {
    float: none !important;
  }
 .news-items {
    margin: 0 5px 0 5px;
  }

  #footer,
  #footer .mta-outer-links,
  #footer .footer-bar,
  #footer .footer-bar ul,
  #footer .footer-bar ul li {
    float: none !important;
  }

  .blog-site {
    display: flex !important;
    flex-direction: column;
    margin: 0 5px 0 5px;
  }

  .blog-site .blog-posts{
    width: 100%;
  }

  .blog-site .blog-sidebar{
    width: 100%;
  }

  #footer .footer-bar ul {
    width: 100%;
    margin: 0 0 3rem;
  }

  #footer .footer-bar ul li {
    padding: 1rem;
    margin: 0;
  }

  #footer .footer-bar ul li a {
    display: block;
    width: 100%;
  }

  .page-content p{
    font-size: 15px !important;
  }
  .registration-form {
    width: 100%;
  	margin: 0 !important;
  }

  .nivoSlider {
    float: none !important;
    height: 60px;
    width: calc(100% - 2rem);
    margin: 1rem 1rem 0 1rem;
  }
  .page-content, .page-content p, .page-content div, .page-content li {
    font-size: 17px !important;
  }

  #featured {
    height: 200px;
  }

  #featured .carousel-slide video{
    height: 200px !important;
  }

  #header .title {
    left: -15px;
  }


.popup {
    width: 50% !important;
    height: auto !important;
}
.js__slide_top {
  display:none;
}
}
