/*Style 'show menu' label button and hide it by default*/
.show-menu {
  text-decoration: none;
  color: #fff;
  background: #666666;
  text-align: center;
  padding: 10px 0;
  display: none;
  margin-top: 1em;
}
/*Hide checkbox*/
input[type=checkbox]{
  display: none;
}
/*Show menu when invisible checkbox is checked*/
input[type=checkbox]:checked ~ #menu{
  display: block;
}

/*Show checkbox on contact page*/
#formSignup input[type=checkbox]{
  display: inline;
}

@media only screen and (max-width: 1090px) {
  body {
    padding-left: 2em;
    padding-right: 2em;
    min-width: auto;
  }
  img { 
    width: 100%;
    height: auto;
   }
  header .container, #header .container {
    height: auto;
  }
  #logo {
    margin-left: 25%;
    margin-right: 25%;
    position: inherit;
  }
  #logo img {
    width: 50%;
    margin-bottom: 2em;
  }
  .left, .right {
    float: none;
  }
  #searchContainer {
    position: relative;
    width: auto;

  }
  #searchInput {
    width: 90%;
  }
  #searchSubmit { 
    width: 9%;
  }

  #menu {
    position: relative;
    bottom: inherit;
    right: inherit;
  }
  #menu li.selected {
    border-bottom: 0;
  }
  .container {
    width: auto;
  }
  #slider {
    height: auto;
  }
  #freeform #formSubmit {
    margin: 30px 0 60px 0;
    width: auto;
  }

  /*Strip the ul of padding and list styling*/
  ul#menu {
      list-style-type:none;
      margin:0;
      padding:0;
      position: absolute;
  }
  /*Create a horizontal list with spacing*/
  ul#menu li {
      display:inline-block;
      float: left;
      margin-right: 1px;
  }
  #menu li { 
    width: 100%;
  }
  #menu li a:hover {
    color: #7f7f7f!important;
    background-color: #f2f2f2;
  }
  #menu li a {
    height: auto;
    background-color: white;
    padding: 8px 0;
  }

  .menu-child {
    position: static!important;
    visibility: visible!important;
  }
  .menu-child li a {
    background-color: #f2f2f2!important;
  }
  #menu ul {
    padding: 0;
    width: 100%;
  }
  #menu ul li {
    padding: 0;
  }
  #menu ul li a {
    height: auto;
    padding: 10px 0;
  }
  #menu ul li a:hover {
    background-color: white!important;
  }
  #menu li a {
    border-bottom: 0;
  }
  #menu li a.selected {
    border-bottom: 0;
  }

  /*Style for menu links*/
  .dropdown li a {
      display:block;
      min-width:140px;
      height: 100px;
      text-align: center;
      font-size: 18px;
      font-family: 'Quattrocento Sans', sans-serif;
      color: #fff;
      background: white;
      text-decoration: none;
  }
  /*Hover state for top level links*/
  .dropdown li:hover a {
      background: #666666;
  }
  /*Style for dropdown links*/
  li:hover ul#menu a {
      background: #f3f3f3;
      color: #2f3036;
      height: 40px;
      line-height: 40px;
  }
  /*Hover state for dropdown links*/
  li:hover ul#menu a:hover {
      background: #666666;
      color: #fff;
  }
  /*Hide dropdown links until they are needed*/
  li ul#menu {
      display: none;
  }
  /*Make dropdown links vertical*/
  li ul#menu li {
      display: block;
      float: none;
  }
  /*Prevent text wrapping*/
  li ul#menu li a {
      width: auto;
      min-width: 100px;
      padding: 0 20px;
  }
  /*Display the dropdown on hover*/
  ul#menu li a:hover + .hidden, .hidden:hover {
      display: block;
  }

  /*Make dropdown links appear inline*/
  ul#menu  {
    position: static;
    display: none;
  }
  /*Create vertical spacing*/
  ul#menu li {
    margin-bottom: 1px;
  }
  /*Make all menu links full width*/
  ul#menu li, li a {
    width: 100%;
  }
  /*Display 'show menu' link*/
  .show-menu {
    display:block;
  }



  #pageContent {
    width: auto;
  }



  #homepageLinks {
    background: none;
  }
  #homepageLinks li {
    width: 100%;

    background-color: #a7a9ac;
    border-right: 0px;
  }
  footer {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
  #menu2 {
    display: inline-block;
  }

  #portfolio li {
    padding-bottom: 3em;
  }

  #portfolio li.noMargin {
    margin-left: 0!important;
  }

  #categories {
    width: 100%;
  }
  #categories li {
    margin-bottom: 1em!important;
  }
  #categoryDescription {
    width: auto;
  }
  #categoryDescription div:first-child {
    width: 20%;
    float: left;
  }
  #categoryDescription div:last-child {
    width: 55%;
    float: left;
    margin-left: 5%;
    margin-right: 5%;
  }
  #prevnext {
    left: 51%;
    margin: 0 0 0 -50%;
    width: 98%;
  }
  #photoDescription {
    width: 100%;
  }


}





@media only screen and (min-width: 660px) and (max-width: 1090px) {
  #portfolio li {
    width: 48%; margin-left: 2%; margin-right: 2%;
  }
  #portfolio li:first-child, #portfolio li:nth-child(3) {
    margin-left: 0;
  }
  #portfolio li:nth-child(2), #portfolio li:last-child {
    margin-right: 0;
  }
  #categories li {
    height: auto;
    width: 23.5%;
    border: none;
    margin: 0 1% 0 1%;
  }
  #categories li:first-child, #categories li:nth-child(4n+1) {
    margin-left: 0;
  }
  #categories li:nth-child(4n+0) {
    margin-right: 0;
  }
  #categories li.noMargin {
    margin-left: 1%!important;
  }
}





/* other Responsive Styles */
@media screen and (max-width : 660px){
  #searchInput {
    width: 79%;
  }
  #searchSubmit { 
    width: 19%;
  }
  #portfolio li {
    width: 100%;
  }
  #categories li {
    height: auto;
    width: 48%; 
    border: none;
    margin: 0 2% 0 2%;
  }
  #categories li:first-child, #categories li:nth-child(2n+1) {
    margin-left: 0;
  }
  #categories li:nth-child(2n+0) {
    margin-right: 0;
  }
  #categories li.noMargin {
    margin-left: 2%!important;
  }


  #categoryDescription div:first-child {
    width: 100%;
    height: auto;
    margin: 1em 0 1em 0;
    float: left;
    text-align: center;
    border-right: none;
  }
  #categoryDescription div:last-child {
    width: 100%;
    margin: 1em 0 1em 0;
    float: left;
    text-align: center;
  }

}

@media screen and (max-width : 360px){
  #searchInput {
    width: 69%;
  }
  #searchSubmit { 
    width: 28%;
  }

}
