@import url('../EleminNYMAG/media-queries.css');

#div-gpt-ad-1,
#div-gpt-ad-2,
#div-gpt-ad-3,
#div-gpt-ad-4,
#div-gpt-ad-5,
#div-gpt-ad-6 {
  margin: auto;
  text-align: center;
  width: 100%;
}

@media screen and (min-width: 781px) {
  #pagewrap {
    padding: 10px 3% 10px;
  }
}

@media screen and (min-width: 601px) and (max-width: 970px) {
  #sidebar .textwidget h4#ad {
    display: none;
  }

}

@media screen and (min-width: 601px) and (max-width: 780px) {
  body {
    overflow-x: hidden;
    max-width: 780px;
  }
  .slider .slide-feature-image {
    max-height: 110px;
  }
  #sidebar {
    max-width: 70%;
    padding-left: 112px;
  }
  #searchform input[type="text"], input[type="search"] {
    max-width: 57%;
  }
  #topNav ul{
    width: 92%;
  }
  #content{
    border-bottom: 1px solid #555;
  }
  #main-nav {
    width: 94%;
  }
  #main-nav a {
    font: 0.8em/160% Georgia,"Times New Roman",Times,serif;
  }
  #header{
    min-height : 0;
    padding-top: 24px;
  }
  #headerAd{
    display:block;
    margin: 4px auto -13px;
    position: static;
    width: 137px;
  }
  .home #headerAd {
    margin: 10px auto -6px;
  }
  .home #main-nav-wrap {
    margin-bottom: 26px;
  }
}

@media screen and (max-width: 600px) {
  .slider .slide-feature-image {
    max-height: 90px;
  }
}

@media screen and (max-width: 480px) {
  #topNav ul{
    width: 92%;
  }
  #topNav ul li{
    display: none;
  }
  #topNav ul li.nymag{
    display: inline-block !important;
  }
  /* MAIN NAV */
  #main-nav-wrap {
    top: 38px;
  }
  #menu-icon{
    background: url(http://172.18.1.54/wp-content/themes/child-elemin/themify/img/menu-icon.png) no-repeat center center;
    background-size: 100%;
  }
  .mobile-button {
    width: 37px;
    height: 37px;
  }
  .mobile-button:after,
  .mobile-button:before{
    display: none;
  }
  #main-nav a, #main-nav ul a {
    text-transform: uppercase !important;
  }
  #header{
    min-height: 81px;
  }
  #headerwrap .social-widget,
  #headerwrap #searchform-wrap {
    display: none !important;
  }
  .post-content .alignleft {
    float: none;
    margin-right: 30px;
  }
  .post-content a{
    color: #FB592D;
  }
  .list-post .post-meta {
    border-top: 0;
  }
  .post-title{
    font: 400 normal 27px/110% 'Roboto',Arial,Helvetica,sans-serif;
  }
  /* COMMENT BOX */
  #commentform input[type=text] {
    width: 94%;
  }

  /* TOP STORIES */
  .carousel-next{
    right: -30px !important;
  }
  .carousel-prev{
    left: -30px !important;
  }
  .carousel-pager{
    display: none !important;
  }
  .carousel-wrap{
    margin: 0 auto;
    width: 250px;
  }
  .carousel-wrap:before {
    left: -30px;
  }
  .slider .slide-feature-image {
    max-height: 74px;
    width: 109px;
    float: left;
    margin-right: 10px;
  }
  .slider .slide-excerpt {
    max-height: 75px;
    overflow: hidden;
  }
  .slide-excerpt a p {
    font-size: 11px;
  }
  .caroufredsel_wrapper{
    height: 75px  !important;
  }
  .slides .format-default{
    width: 250px !important;
  }
  .slider .carousel-prev, .slider .carousel-next {
    top: 50%;
  }

  /* NEWSLETTER SIGNUP */
  #mc_embed_signup input.button {
    width: 20% !important;
  }
  #mc_embed_signup input.email {
    width: 60% !important;
  }

  /* HOME PAGE AND SECTION PAGE HEADMETA */
  .loops-wrapper article #headerMeta {
    border-top: 1px solid #CCCCCC;
   }
   .loops-wrapper article:first-child #headerMeta {
    border-top: none;
   }

   /* SIDEBAR */
   #sidebar {
    padding: 30px 0 0;
    max-width: 100%;
    margin: 0;
  }
  #searchform input[type="text"] {
    max-width: 92%;
  }
  #headerAd{
    display:block;
    margin: -17px auto;
    position: static;
    width: 137px;
  }
  .home #headerAd{
    margin: 12px auto -17px;
  }
}
@media screen and (min-width: 481px) {

  /* ensure #nav and #searchform is visible on desktop version */

  #headerwrap #searchform {
    display: none !important;
  }
}
