
/**
 ** Responsive 
 **/

.visible-phone {
  display: none;
  visibility: hidden;
}


/* Phones ----------- */

@media only screen 
and (min-width : 0px) 
and (max-width: 767px){

  /**
   ** Common
   **/

  .hidden-phone, hidden-desktop, 
  .simple_tweet_widget, .widget_text, .widget_nav_menu, 
  .widget_display_search, .widget_recent_entries{
    display: none;
    visibility: hidden;
  }

  .visible-phone {
    display: block;
    visibility: visible;
  }

  html{
    font-size: 50%;
    width: 100%;
    overflow-x: hidden;
  }

   body{
    width: 100%;
  }

  ul li{
    font-size: 2rem;
  }

  h4{
    clear:both;
  }

  .wrapper{
    min-width: 0;
    max-width: 100%;
    width: 95%;
    margin: 0 2.5%;
  } 

  .columns.homepage .column.center,
  .columns.homepage .column.right,
  .columns.page .column.left,
  .columns.page .column.center,
  .columns.page .column.right{
    width: 100%;
  }

  img.alignleft, .alignleft img,
  img.alignright, .alignright img,
  img.aligncentre, .aligncentre img,
  img.aligncenter, .aligncenter img,
  img.alignnone, .alignnone img {
    width: auto;
    max-width: 85%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .bx-wrapper img {
    width: auto;
    height: auto;
  }

  .mobile-sidebar {
    margin-top: 30px;
  }
  .mobile-sidebar .widget_nav_menu,
  .mobile-sidebar .widget_recent_entries {
    display: block;
    visibility: visible;
  }
  .mobile-sidebar #___gcse_2 {
    display: none;
    visibility: hidden;
  }

  .social-networks li {
    margin-left: 10px;
  }
  .social-networks li:first-child {
    margin-left: 0;
  }
  .social-networks li a {
    display: block;
  }

  /**
   ** Header
   **/

  .site-header{
    padding-bottom: 20px;
  }

  .site-header h2{
    width: 50%;
    font-size: 140%;
  }

  #___gcse_0{
    position: relative;
    top: 0px;
    right: 0;
  }


  /**
   ** Navigation
   **/

   .site-nav li{
    margin: 10px;
    border: none;
    width: 20%;
    text-align: center;
    padding-bottom: 13px;
    padding-top: 5px;
  }  

  .site-nav{
    height: auto;
    padding-bottom: 2%;
    padding-top: 1%;
    width: 100%;
  }

  .site-nav li, .site-nav li:first-child{
    margin: 3px;
    width: 47%;
    text-align: center;
    padding: 0px;
    border: 1px solid #fff;
  }  

  .site-nav li a{
    border: none;
    font-size: 3.0rem;
  }

  .sub-nav > li {
    margin-bottom: 10px;
    float: left;
  }

  .sub-nav > li > a{
    font-size: 1.8rem;
  }

  .sub-nav > li > ul > li > a {
    font-size: 12px;
  }

  .columns.page .column.center .breadcrumbs li{
    background-position: right 3px ;
  }

  /**
   ** Homepage
   **/

  p, a, .widget_recent_entries li a, .small-promos p, 
  .columns.page .column.center .breadcrumbs li{
    font-size: 1.6rem;
  }

  .polaroid{display:none;}

  /* inc-static */

  .homepage-featured figure {
    width: 100%;
  }

  .homepage-featured figure img {
    width: auto;
    padding: 20px 20px 0 20px;
  }

  .homepage-featured article {
    width: 100%;
  }

  .homepage-news-item {
    width: 100%;
    margin-right: 0;
  }

  .homepage-news-item article {
    min-height: 0;
  }

  /* inc-slider */

  .large-promo h2{
    margin-left: 0;
  }

  .large-promo h2 a{
    font-size: 2.4rem;
  }

  .large-promo p{
    margin-left: 0;
  }

  /* */

  .small-promos li{
    width: 100%;
    margin-right: 2%;
    height: auto !important; /* Overwriting inline styles */
  }

  .small-promos h3 {
    margin-bottom: 15px;
    height: auto !important; /* Overwriting inline styles */
  }

  .small-promos p {
    height: auto !important; /* Overwriting inline styles */
  }

  .small-promos h3 a {
    font-weight: bold;
  }

  .small-promos figure {
    margin-top: 10px;
  }

  .small-promos a
  {  
    min-height: 155px;
  }

  /**
   ** Content pages
   **/

  table tr td, table tr td a {
    font-size: 1.6rem;
  }

  .columns.page .column.center .post header h2 {
    margin-bottom: 10px;
  }


  /**
   ** Footer
   **/

  .site-footer {
    height: auto;
  }
  .site-footer small {
   display: block;
   float: none;
   border: none;
   font-size: 12px;
  }
  .site-footer ul{
   display: inline-block;
   float: none;
   margin-top: 30px;
   width: 100%;
  }
  .site-footer li a{
   border: none;
   padding-right: 0;
   font-size: 12px;
  }

  /**
   ** Search page
   **/

  body.search-results .columns.page .column.center, body.search-no-results .columns.page .column.center {
    width: 100%;
  }

  .search-page-form .line1 {
    margin: 0;
  }

  .search-page-form .checkbox {
    display: block;
  }

  .search-page-form .search,
  .search-page-form select,
  .search-page-form .checkbox,
  .search-page-form .button {
    width: 100%;
    margin-bottom: 5px;
  }

}

@media only screen 
and (max-width: 700px){

  .bx-wrapper .bx-pager {
    display: none;
  }

}

/* Tablets ----------- */

.lt-ie9 .hidden-tablet{
  display: inline-block;
  visibility: visible;
}

.lt-ie9 .page-template-default .columns .center.column {
  margin-left: 200px;
}

@media only screen 
and (min-width : 767px) 
and (max-width: 1000px){

  /**
   ** Common
   **/

  .hidden-tablet, .hidden-phone{
    display: none;
    visibility: hidden;
  }

  html{
    font-size: 65%;
    overflow-x: hidden;
    min-width: 100%;
    max-width: 100%;
    width: 100%;

  }

  .wrapper{
    min-width: 0;
    max-width: 100%;
    width: 95%;
    margin: 0 2.5%;
  }

  p, a, .widget_recent_entries li a{
    font-size: 1.6rem;
  }

  body{
    min-width: 100%;
    max-width: 100%;
  }

  .columns.homepage .column.center,
  .columns.homepage .column.right,
  .columns.page .column.left,
  .columns.page .column.center,
  .columns.page .column.right{
    width: 100%;
  }

  .columns.page .column.right .twitter-feed li:last-of-type{
    background-image: none;
  }

  .mobile-sidebar {
    margin-top: 30px;
  }
  .mobile-sidebar .widget_nav_menu,
  .mobile-sidebar .widget_recent_entries {
    display: block;
    visibility: visible;
  }
  .mobile-sidebar #___gcse_2,
  .mobile-sidebar .widget_text,
  .mobile-sidebar .simple_tweet_widget {
    display: none;
    visibility: hidden;
  }

  .social-networks li {
    margin-left: 10px;
  }
  .social-networks li:first-child {
    margin-left: 0;
  }
  .social-networks li a {
    display: block;
  }

  /**
   ** Navigation
   **/

   .site-nav li{
    padding: 0 11px;
   }

  /**
   ** Home
   **/

  .small-promos li {
    width: 30%;
    margin-left: 5%;
    margin-right: 0;
  }

  .small-promos li:first-child {
    margin-left: 0;
  }

  .small-promos h3 a {
    font-weight: bold;
    line-height: 22px;
  }

  .columns.page .column.center .post header h2 {
    margin-bottom: 10px;
  }


  /**
   ** Footer
   **/

   .site-footer {
     height: auto;
   }
   .site-footer small {
    display: block;
    float: none;
    border: none;
   }
   .site-footer ul{
    display: block;
    float: none;
    margin-top: 10px;
    width: 70%;
   }
   .site-footer li a{
    border: none;
    padding-right: 0;
   }

   table tr td, table tr td a {
     font-size: 1.6rem;
   }


}

/* Desktop ----------- */
@media screen and (min-width: 1001px) {
  .hidden-desktop{
    display: none;
    visibility: hidden;
  }
  .page-template-document-search-php .columns.page .column.left {
    display: none;
  }

  .page-template-document-search-php .columns.page .column.center {
    width: 100%;
    margin-right: 0;
  }

  .page-template-document-search-php .document-search-descriptions {
    width: 48%;
    margin-right: 4%;
  }

  .page-template-document-search-php .document-search {
    width: 48%;
  }

}
