@media (max-width: 640px) and (orientation: landscape) {
  div.entry-content p {
    /*font-size: 0.6em !important;*/
  }
}

@media (min-width: 768px) {
  /*div#content {
    max-width: 1600px !important;
    width: 100% !important;
  }*/

  /*#wrapper {
    padding: 20px 2.5%;
  }*/

  /*.inner-content {
    max-width: 800px;
    padding-right: 20px;
  }*/

  /*.attachment-large {
    height: auto;
    max-height: 80vh !important;
    max-width: 100vw;
    width: auto;
  }*/

  /*.attachment-large {
    max-width: 700px !important;
  }*/

  /*.page-template-textpage-php #content {
    margin: 0px 20px 0 0 !important;
  }*/

  /*.page-template-page-gallery-php #content {
    margin: 0px 20px 0 0 !important;
  }*/

  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    max-width: 74vw !important;
  }*/

  /*.blog #content .search,
  .search-results #content .search,
  .search-no-results #content .search {
    margin: -20px 0 20px !important;
  }

  .search-no-results #content .search-no-results {
    margin: -7px 0 20px !important;
  }*/
}

@media (min-width: 900px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    height: auto;
    max-width: 75vw !important;
  }*/
}

@media (min-width: 768px) and (max-width: 1024px) {
  /*.header-inner {
    padding-right: 10px;
  }*/

  /*.pager.items img {
    width: 24.6% !important;
  }*/

  /*#wrapper #container {
    padding-left: 20%;
  } /* to accomodate wider sidebar */

  /*#portfolio-slideshow0 img {
    max-width: 74vw !important;
    height: auto !important;
  }*/
}

@media screen and (min-width: 1024px) and (min-height:768px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    height: auto;
  }*/
}

@media (min-width: 1024px) {
  /*#wrapper #container {
    padding-left: 16%;
  } /* to accomodate wider sidebar */

  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    max-width: 80vw !important;
    width: 80vw !important;
    height: auto !important;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    width: auto !important;
    height: auto !important;
  }*/
}

@media (min-width: 1200px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    max-width: 100vh !important;
  }*/
}

@media (min-width: 769px) and (max-height: 768px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    max-width: 100vh !important;
    height: auto;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    width: auto !important;
    height: auto !important;
  }*/
}

@media (min-width: 769px) and (max-height: 900px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    max-width: 105vh!important;
    height: auto;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    width: auto !important;
    height: auto !important;
  }*/
}

@media (min-width: 800px) and (max-height: 900px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    height: auto;
    max-width: 85vh !important;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    height: auto !important;
    width: auto !important;
  }*/
}

@media (min-width: 900px) and (max-height: 900px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    height: auto;
    max-width: 70vw !important;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    height: auto !important;
    width: auto !important;
  }*/
}

@media (min-width: 1200px) and (max-height: 1200px) {
  /*div.entry-content #portfolio-slideshow0,
  div.entry-content div.slideshow img,
  #portfolio-slideshow0 img {
    height: auto;
    max-width: 105vh !important;
  }*/

  /*.home div.entry-content #portfolio-slideshow0,
  .home div.entry-content div.slideshow img,
  .home #portfolio-slideshow0 img {
    height: auto !important;
    width: auto !important;
  }*/
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  /*#wrapper div#container {
    margin: auto !important;
    padding-left: 0!important;
    width: 100% !important;
  }*/

  /*div#content {
    margin: auto !important;
    width: 90% !important;
  }*/

  /*.pager.items img {
    clear: none;
    float: left!important;
    margin: 0.2% !important;
    width: 32.933%!important;
  }*/

  /*.menu-navigation-container {
    display: none !important;
  }*/

  /*#header {
    float: none !important;
    margin-right: 0 !important;
    position: static;
    text-align: center !important;
    width: 100%;
  }*/

  /*.header-inner {
    padding-right: 0;
  }*/

  /*.resmenu {
    display: block !important;
    margin: 20px 0;
  }*/

  /*div#content {
    float: left;
    margin: 32px 0 !important;
    width: 100% !important;
  }*/

  /*#content .hentry > h2.entry-title {
    padding-bottom: 0.5em;
    padding-top: 20px;
  }*/
}

@media (max-width: 768px) {
  /*.blog #content .search,
  .search-results #content .search,
  .search-no-results #content .search {
    margin: 20px 0 0px !important;
    padding-bottom: 20px;
  }*/

  /*.pager.items img {
    width: 32.933% !important;
  }*/

  /*.header-inner {
    padding-right: 0px;
  }*/

  .title h2 {
    display: block !important;
  }

  .portfolio-slideshow {
    width: 100% !important;
  }

  .slideshow-content img {
    height: auto !important;
    width: 100% !important;
  }

  p.caption {
    text-align: left;
    width: 100% !important;
  }

  /*.hentry {
    float: none !important;
  }*/

  /*.slideshow-nav {
    margin-top: -5px !important;
  }*/

  /*.menu-navigation-container {
    display: none !important;
  }*/

  /*.resmenu {
    display: block !important;
    margin: 20px 0px;
  }*/

  /*#header {
    float: none !important;
    margin-right: 0px !important;
    position: static;
    text-align: center !important;
    width: 100%;
  }*/

  div.sidebar {
    float: none !important;
    overflow: auto !important;
    position: static !important;
    text-align: center;
    width: 100% !important;
  }

  /*#wrapper div#container {
    float: none !important;
    margin: auto !important;
    padding: 0 20px;
  }*/

  /*#content h2.entry-title {
    padding-bottom: .5em;
    padding-top: 20px;
  }*/

  /*a.subtitle {
    display: block;
    margin-left: 0;
    padding-top: 1em;
  }*/

  /*.innermenu1 {
    width: 90% !important;
  }*/

  /*#wrapper {
    float: left;
    padding: 0;
    width: 100% !important;
  }*/

  /*div.entry-content {
    width: 100%;
  }*/

  /*.home h1#blog-title {
    padding-bottom: 20px;
  }*/
}

@media only screen and (max-width:640px),only screen and (max-device-width:640px) {
  /*.pager.items img {
    clear: none;
    float: left !important;
    margin: 0.3% !important;
    width: 49.4%!important;
  }*/

  div.portfolio-slideshow {
    height: 330px !important;
    width: 100% !important;
  }
}

@media only screen and (max-width:480px),only screen and (max-device-width:480px) {
  /*.pager.items img {
    display: block;
    margin: 0 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
  }*/

  /*.pager.items span {
    display: block;
    height: auto !important;
    padding-bottom: 10px;
  }*/
}
