/* Viewport Size 979px */
@media screen and ( max-width: 979px ) {

  #main-nav > div,
  #featured-links,
  .main-content,
  .page-footer-inner {
    padding-left: 30px;
    padding-right: 30px;
  }

  .header-icons {
    right: 30px;
  }

  .header-logo {
    left: 30px;
  }

  .header-icons .cv-inner > .mobile-menu-icon {
    display: inline-block;
  }

  .main-menu-container,
  #main-menu {
    display: none;
  }
  
  #main-nav {
    text-align: center !important;
  }

  .main-container {
    width: 100% !important;
    margin: 0 !important;
  }

  .sidebar-left,
  .sidebar-right {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 40px;
  }

  .sidebar-left-wrap,
  .sidebar-right-wrap,
  .footer-widgets .vayne-widget {
    float: none !important;
    width: 65% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .slider-item-bg {
    height: 500px;
  }

  .slider-header {
    max-width: inherit;
    float: none;
    width: 100%;
    text-align: center; 
  }

  .slider-btn {
    position: static;
    display: inline;
    margin-top: 30px;
    text-align: center;
    display: block;
  }

  .slider-btn a {
    width: auto;
    margin-right: 5px;
  }

  .slider-btn a i {
    display: inline-block;
    font-size: 12px;
    margin: 0 4px 0;
  }

  .slider-author img {
    display: none;
  }

}


/* Viewport Size 768px */
@media screen and ( max-width: 768px ) {

  .slider-item-bg {
    height: 360px;
  }

  #featured-links {
    display: none;
  }

  .comments-area {
    margin-bottom: 50px;
  }

  .comment-form-author input,
  .comment-form-email input, 
  .comment-form-url input,
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="url"] {
    width: 100% !important;
  }

  .previous-post > a,
  .next-post > a {
    display: none;
  }

  .single-navigation .previous-post > div,
  .single-navigation .next-post > div {
    width: 100%;
  }

  .comment-avatar {
    display: none;
  }

  .comments-area .children {
    margin-left: 15px;
  }

  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    width: 100%;
  }

  .footer-socials,
  .copyright-info {
    float: none;
  }
}


/* Viewport Size 640px */
@media screen and ( max-width: 640px ) {

  .slider-item-bg {
    height: 330px;
  }

  .slider-dots li {
    width: 11px;
    height: 11px;
    margin-right: 7px;
  }

  .related-posts section {
    width: 100%;
    margin: 0 0 25px 0;
  }

  .sidebar-left-wrap,
  .sidebar-right-wrap,
  .related-posts section img,
  .footer-widgets .vayne-widget {
    width: 100% !important;
  }

  .blog-grid > li {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  .blog-list-style .post-media,
  .blog-list-style .post-content-wrap {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .blog-list-style .post-media {
    margin: 0 auto 20px auto;
  }

  .blog-grid .post-header,
  .blog-grid .read-more,
  .blog-list-style .post-content-wrap {
    text-align: center !important;
  }

  .sidebar-alt {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .sticky {
    padding: 20px !important;
  }

  .post-content > p:first-of-type:first-letter {
    font-family: inherit !important;
    float: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-transform: inherit !important;
    color: inherit !important;
  }

  .footer-instagram-widget .null-instagram-feed li a {
    width: 25% !important;
  }

}


/* Viewport Size 480px */
@media screen and ( max-width: 480px ) {

  #main-nav > div,
  .main-content,
  #featured-links,
  .page-footer-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .header-icons,
  .slider-btn {
    right: 20px !important;
  }

  .header-logo {
    left: 20px !important;
  }

  .header-icons .cv-inner > div > span {
    padding: 10px;
  }

  .random-post-icon .header-tooltip {
    width: 250px;
  }

  .header-search-icon .header-tooltip {
    width: 200px;
  }

  .slider-item-bg {
    height: 280px;
  }

  .post-title,
  .page-title {
    font-size: 33px;
    line-height: 38px !important;
  }

  .comment-reply-link {
    display: block;
    float: none;
    margin: 0;
  }

  .single-navigation .previous-post,
  .single-navigation .next-post {
    width: 100%;
  }

  .single-navigation .previous-post > div,
  .single-navigation .next-post > div {
    float: none;
    text-align: center;
  }

}

/* Viewport Size 320px */
@media screen and ( max-width: 320px ) {
  
  .post-content {
    text-align: left;
  }

}


/* WP Default Gallery Shortcode */
@media screen and ( min-width: 950px ) {

  .gallery-columns-2 .gallery-item:nth-child(2n+2),
  .gallery-columns-3 .gallery-item:nth-child(3n+3),
  .gallery-columns-4 .gallery-item:nth-child(4n+4),
  .gallery-columns-5 .gallery-item:nth-child(5n+5),
  .gallery-columns-6 .gallery-item:nth-child(6n+6),
  .gallery-columns-7 .gallery-item:nth-child(7n+7),
  .gallery-columns-8 .gallery-item:nth-child(8n+8),
  .gallery-columns-9 .gallery-item:nth-child(9n+9) {
    margin-right: 0 !important;
  }

  .gallery-columns-2 .gallery-item:nth-child(2n+2) + li,
  .gallery-columns-3 .gallery-item:nth-child(3n+3) + li,
  .gallery-columns-4 .gallery-item:nth-child(4n+4) + li,
  .gallery-columns-5 .gallery-item:nth-child(5n+5) + li,
  .gallery-columns-6 .gallery-item:nth-child(6n+6) + li,
  .gallery-columns-7 .gallery-item:nth-child(7n+7) + li,
  .gallery-columns-8 .gallery-item:nth-child(8n+8) + li,
  .gallery-columns-9 .gallery-item:nth-child(9n+9) + li {
    clear: both;
  }

}

@media screen and ( max-width: 950px ) {

  .gallery-item {
    width: -webkit-calc((100% - (5px * 1)) / 2 - 1px) !important;
    width: calc((100% - (5px * 1)) / 2 - 1px) !important;
  }

  .gallery-item:nth-child(2n+2) {
    margin-right: 0 !important;
  }

  .gallery-columns-1 .gallery-item {
    width: 100% !important;
  }

}

@media screen and ( max-width: 480px ) {

  .gallery-item {
    width: 100% !important;
    float: none !important;
  }

}


/* WooCommerce */
@media screen and ( max-width: 768px ) {

  .woocommerce .page-content ul.products li.product,
  .woocommerce-page .page-content ul.products li.product,
  .woocommerce-page[class*=columns-] .page-content ul.products li.product,
  .woocommerce[class*=columns-] .page-content ul.products li.product {
    width: 48%;
    float: left;
    clear: both;
  }

  .woocommerce .woocommerce-checkout-review-order table.shop_table,
  .woocommerce-checkout-review-order .woocommerce-checkout-payment,
  .woocommerce .cart-collaterals .cross-sells ul.products li,
  .woocommerce-page .cart-collaterals .cross-sells ul.products li{
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 40px;
  }

  .woocommerce ul.products li:nth-child(odd),
  .woocommerce-page ul.products li:nth-child(odd) {
    margin-right: 4% !important;
  }


  .woocommerce ul.products li:nth-child(even),
  .woocommerce-page ul.products li:nth-child(even) {
    margin-right: 0 !important;
  }

  .woocommerce .woocommerce-checkout-review-order table.shop_table,
  .woocommerce-checkout-review-order .woocommerce-checkout-payment {
    float: none !important;
    width: 100% !important;
  }

}

@media screen and ( max-width: 640px ) {

  .woocommerce .page-content ul.products li.product,
  .woocommerce-page .page-content ul.products li.product,
  .woocommerce-page[class*=columns-] .page-content ul.products li.product,
  .woocommerce[class*=columns-] .page-content ul.products li.product {
    width: 100% !important;
    float: none;
    clear: both;
  }

  .woocommerce-page table.cart td.actions .coupon .input-text {
    margin-bottom: 7px;
  }

  .woocommerce-page table.cart td.actions .coupon .input-text+.button {
    display: block;
    float: none !important;
  }

  .woocommerce .woocommerce-ordering {
    float: left;
    margin-bottom: 25px;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce-page .woocommerce-result-count {
    float: none;
  }
      
}