/* Media query for 960 Screens - sets nested grids to 100% */
@media only screen and (max-width:960px), only print {
  .row .row .c1,.row .row .c2,.row .row .c3,.row .row .c4,.row .row .c5,.row .row .c6,.row .row .c7,.row .row .c8,.row .row .c9,.row .row .c10,.row .row .c11,.row .row .c12,.row .row .c1-5,.row .row .c1-8{width:100%;margin-bottom:20px;margin-left:0px;margin-right:0px; }
  .row .row > div:last-child{margin-bottom:0 !important}

  .row { padding-left: 10px; padding-right: 10px; }

  #page-wrapper {
    padding: 50px 0 50px 0;
  }    

  .fullwidth-banner {
    background-attachment: scroll !important;    
  }

  .fill-banner h2 {
    font-size: 2.9em;
    letter-spacing: .03em;
    line-height: 1.2em;
    font-weight: bold;
    padding: 0px !important;
    text-rendering: geometricPrecision;
    -moz-text-rendering: geometricPrecision;
    -webkit-text-rendering: geometricPrecision;
}

  .person .bio {
    font-size: 1.2em;
    line-height: 1.25em;
  }
}

/* Media query for very small windows */
@media handheld, only screen and (max-width: 720px) {
  body{font-size:90%}
  .row{margin-bottom:0!important; padding-left: 0; padding-right: 0;}
  .c1,.c2,.c3,.c4,.c5,.c6,.c7,.c8,.c9,.c10,.c11,.c12,.c1-5,.c1-8{width:100%;margin-right:0;margin-left:0;margin-bottom:20px; padding:0 20px;}
  .c1.first,.c2.first,.c3.first,.c4.first,.c5.first,.c6.first,.c7.first,.c8.first,.c9.first,.c10.first,.c11.first,.c1-5.first,.c1-8.first {
    padding-left: 20px; position:relative;
  }
  .c1.last,.c2.last,.c3.last,.c4.last,.c5.last,.c6.last,.c7.last,.c8.last,.c9.last,.c10.last,.c11.last,.c1-5.last,.c1-8.last {
    padding-right: 20px; position:relative;
  }
  .image-col {  /* images spread full width */
    padding-left: 0;
    padding-right: 0;
  }
  .empty-col {
    display: none;
  }
  .text { /* text does not spread full width */
    padding-left: 10px !important;
    padding-right: 10px !important;
  }


  #page-wrapper {
    padding: 25px 0 0 0;
  }

  #logo {
    text-align: center;
    display: block;
    margin: auto;
    max-width: 320px;
  }

  #header .menu {
    text-align: center;
    margin-top: -5px;
  }

  #header .menu li {
    margin-left:15px;
    margin-right: 15px;
  }

  .nav-work-type li a {
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0 9px;
  }

  .nav-work-type li {
    height: 2em;
  }

  .fill-banner h2 {
    padding: 0;
  }

  .fullwidth-banner .sizer {
    padding-top: 45%;
  }

  .fullwidth-banner h2 {
    padding-left: 10px;
    padding-right: 10px;
    min-width: 280px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .overlay {
    opacity: 1;
    width: auto;
    border: none;
    position: static;
    display: block;
    background: transparent;
    color: #717171;
    height: auto;
  }

  .preview-info {
    margin: 20px 0 30px;
    padding: 0;
  }

  .previous-post-link a,
  .next-post-link a,
  .back-link a {
    display: block;
    text-align: center;
    border: none;
    border: 1px solid #191703;
    padding: 14px;
    margin: 5px 10px;

  }

  #post-pagination .row {
      display: table !important;
      float: none;    
  }

  #post-pagination .row .previous-post-link {
      display: table-row-group !important;
      float: none;
  }

  #post-pagination .row .back-link {
      display: table-footer-group !important;
      float: none;
  }

  #post-pagination .row .next-post-link {
      display: table-header-group !important;
      float: none;
  }

  #map {
    min-height: 200px;
  }

/*  .editor-content a {
    display: inline-block;
    word-break: break-all;
  } */

  #footer {
    padding-bottom: 25px;
  }

  #subfooter {
    padding-left: 10px;
    padding-right: 10px;
  }


}


/* Media query for iPad and tablets */
@media only screen and (max-width:480px){

  .space-dbot {
    margin-bottom: 30px;
  }

  .space-dtop {
    margin-top: 30px;
  }

  .blurb {
    padding-top: 0px;
    padding-bottom: 30px;
  }

  .hpadding {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tall-line {
    line-height: 1.2em;
    font-size: 1.45em;
  }

  h4 p {
    margin: 0;
  }

  .fill-banner {
    height: auto;
    position: static;
  }

  .fill-banner h2 {
    font-size: 2.1em;
    line-height: 1.1em;
  }

  .fullwidth-banner .sizer {
    padding-top: 85%;
  }

  .img-fit img {
    display: block;
  }

  .info-box {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    text-align: center;
    margin-bottom: 35px;
  }

  .info-box hr {
    margin-left: auto;
    margin-right: auto;
  }

  .info-description {
    margin-bottom: 30px;
    font-size: 1.2em;
    line-height: 1.25em;
  }

  #map {
    height: 320px !important;
    pointer-events: none;
  }

  .wpcf7-form {
    width: 100%;
  }

  .editor-content {
    font-size: .67em;
  }

  #subfooter h4 br,
  #subfooter h5 br {
    display: none;
  }  


}

/* for very short screen sizes, e.g. ipad landscape */
@media handheld, only screen and (max-height: 768px) {

  .fill-banner h2 {
    font-size: 2.1em;
    line-height: 1.1em;
    padding-bottom: 28px !important;
    padding-top:10px !important;
  }
  
}