@media all and (max-width: 1330px) and (min-width: 1025px) {

  header.boxed .header-margin{
    width:1600px;
  }

  .content .text-intro{
    width:900px;
  }

  .footer-margin{
    width:1000px;
  }

  .content .text-intro h1, .content .text-intro p{
    width:60%;
  }
    
   ul.header-nav{
    width:auto;
    float:right;
    }

  #full{
    width:1000px;
  }

  .prev-next{
    max-width:1000px;
  }


  /*
  **************************
  Portfolio Grid
  **************************
  */

  #portfolio-sidebar{

    width: 710px !important;
    padding-right: 320px;
  }

  .portfolio-grid{

    width:1030px;

  }

  .grid-hover, li.grid-item, li.grid-item img{
    width:312px;
  }


}


@media all and (max-width: 1024px) and (min-width: 761px) {


  header.boxed .header-margin{
    width:1600px;
  }

  .content .text-intro{
    width:700px;
  }

  .footer-margin{
    width:800px;
  }

  .content .text-intro h1, .content .text-intro p{
    width:60%;
  }

  #full{
    width:800px;
  }

  .prev-next{
    max-width:800px;
  }


  #portfolio-sidebar{

    width: 580px !important;
    padding-right: 250px;
  }

  .portfolio-grid{

    width:830px;

  }

  .grid-hover, li.grid-item, li.grid-item img{
    width:246px;
  }

  header li > a{
    padding-right: 15px;
    padding-left: 15px;
  }  
    
    
}
/*
@media all and (max-width: 1023px) and (min-width: 769px) {


  header.boxed .header-margin{
    width:880px;
  }

  .content .text-intro{
    width:600px;
  }

  .footer-margin{
    width:600px;
  }

  .content .text-intro h1, .content .text-intro p{
    width:100%;
  }

  #full{
    width:600px;
  }

  .prev-next{
    max-width:600px;
  }
  
  .home-sidebar{
    display:none;
  }
  
  ul.header-nav{
    width:60%;
  
  }
  
  header li > a{
    padding-right: 7px;
    padding-left: 7px;
  }
 
*/
/*
@media all and (max-width: 768px) and (min-width: 513px) {


  header.boxed .header-margin{
    width:500px;
  }

  .content .text-intro{
    width:600px;
  }

  .footer-margin{
    width:600px;
  }

  .content .text-intro h1, .content .text-intro p{
    width:100%;
  }

  #full{
    width:600px;
  }

  .prev-next{
    max-width:600px;
  }
  
  .home-sidebar{
    display:none;
  }
  
  ul.header-nav{
    width:50%;
  
  }
  
  header li > a{
    padding-right: 5px;
    padding-left: 5px;
  }
 


  #portfolio-sidebar{

    width:630px !important;
    padding-right: 0;
  }

  .portfolio-grid{
    width:630px;
  }

  .grid-hover, li.grid-item, li.grid-item img{
    width:282px;
  }

}



@media all and (max-width: 512px) and (min-width: 481px) {


  header.boxed .header-margin{
    width:400px;
  }

  .content .text-intro{
    width:400px;
  }

  .footer-margin{
    width:400px;
  }

  .content .text-intro h1, .content .text-intro p{
    width:100% !important;
  }

  #full{
    width:400px;
    display:block !important;
  }

  .menu-index{
    display:block !important;
  }

  .prev-next{
    max-width:400px;
  }
  
  .home-sidebar{
    display:none;
  }
  
  ul.header-nav{
    width:50%;
  
  }
  
  header li > a{
    padding-right: 5px;
    padding-left: 5px;
  }
 
  .one-column, .two-column{
    width:100%;
  }
  
  .contact-one, .contact-two, .contact-three{
    width:100%;
  }
  
  textarea{
    height:250px;
  }

  input.button-submit{
    margin-bottom:100px;
  }
  
  .logo, .menu-index{
    display:block;
  }

  header.boxed{
    display:none !important;
  }  
  
  #footer-left{text-align:center;}


  #portfolio-sidebar{

    width:430px !important;
    padding-right: 0;
  }

  .portfolio-grid{
    width:430px;
  }

  .grid-hover, li.grid-item, li.grid-item img{
    width:400px;
  }

}

*/
@media all and (max-width: 760px) and (min-width: 320px) {

  .content {
    width: 100% !important;
    max-width: 100% !important;
  }

  header.boxed .header-margin{
    width:280px;
  }

    
    
    
  .content .text-intro{
    width:280px;
  }

  .footer-margin{
    width:280px;
  }
  
  .footer-margin .copyright{line-height:40px;}

  .content .text-intro h1, .content .text-intro p{
    width:100% !important;
  }

  #full{
    width:280px;
    display:block !important;
  }
  
  .menu-index{
    display:block !important;
  }

  .prev-next{
    max-width:280px;
  }
  
  .home-sidebar{
    display:none;
  }
 
  .one-column, .two-column{
    width:100%;
  }
  
  .contact-one, .contact-two, .contact-three{
    width:100%;
  }
  
  textarea{
    height:250px;
  }
  
  input, textarea{
    padding:0;
  }

  input.button-submit{
    margin-bottom:100px;
  }
  
  header.boxed{
    display:none !important;
  }  
  
  #footer-left{text-align:center;}
  
  .content .text-intro h1{
    font-size:33px; 
    line-height:50px;
  }

  /*
  **************************
  Portfolio Grid
  **************************
  */

  #portfolio-sidebar{

    width:310px !important;
    padding-right: 0;
  }

  .portfolio-grid{
    width:310px;
  }

  .grid-hover, li.grid-item, li.grid-item img{
    width:280px;
  }

  /*
  **************************
  Mobile Carousel -> Vertical Scroll
  **************************
  */

  .carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    width: 100%;
    padding: 10px 0;
    margin-top: 0;
  }

  .carousel .carousel-cell {
    width: 100%;
    margin-bottom: 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  .carousel .carousel-cell img {
    order: 2;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Intro text above first image on mobile */
  .carousel .carousel-cell h1,
  .carousel .carousel-cell h2,
  .carousel .carousel-cell p1 {
    position: static !important;
    order: 1;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    color: #111 !important;
    text-shadow: none !important;
  }

  .carousel .carousel-cell h1 span,
  .carousel .carousel-cell h2 span {
    color: inherit !important;
    text-shadow: none !important;
    font-size: inherit !important;
  }

  .carousel .carousel-cell h1 {
    font-size: 56px !important;
    line-height: 1.1 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    font-weight: 900 !important;
  }

  /* Style subtitle spans in h1 if they exist (e.g. fashion & portrait) */
  .carousel .carousel-cell h1 span[style*="font-size"] {
    font-size: 32px !important;
    display: block;
    margin-top: 12px;
    color: #555 !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  .carousel .carousel-cell h2 {
    font-size: 36px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    color: #555 !important;
    font-weight: 500 !important;
  }

  .carousel .carousel-cell p1 {
    font-size: 15px !important;
    margin-bottom: 20px !important;
    color: #555 !important;
  }

  /* Hide captions on mobile */
  .carousel .text-bottom {
    display: none;
  }

  /* Hide carousel arrows on mobile */
  .fr-carousel-prev,
  .fr-carousel-next {
    display: none !important;
  }

  /* Text carousel panel on mobile */
  .carousel .carousel-cell .text-carousel {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .content .text-carousel {
    width: 100% !important;
    margin: 10px auto 0;
  }

  .content .text-carousel h1 {
    margin-left: 15px;
    font-size: 22px;
    letter-spacing: 4pt;
  }

  .content .text-carousel h2 {
    margin-left: 15px;
    font-size: 30px;
  }

  .content .text-carousel p {
    margin-left: 15px;
    width: 85% !important;
  }

  .carousel-column {
    width: 100%;
  }

  /* Intro text on non-carousel pages */
  .content .text-intro {
    margin-top: 80px !important;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Give content area top padding to clear fixed mobile header */
  #ajax-content {
    padding-top: 60px;
  }

  /*
  **************************
  Mobile Hamburger Menu
  **************************
  */

  /* Fixed top bar: white background, logo left, hamburger right, vertically centered */
  .mobile-logo,
  .hamburger-mobile {
    position: fixed;
    top: 0;
    z-index: 99998;
    background: #fff;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    left: 0;
    right: 0;
    height: 50px;
    padding-left: 15px;
    font-size: 17px;
    letter-spacing: 5pt;
    text-transform: uppercase;
    font-weight: 400;
    border-bottom: 1px solid #e8e8e8;
  }

  .hamburger-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    right: 0;
    top: 0;
    height: 50px;
    padding: 0 15px;
    background: transparent;
  }

  /* Override: hide the existing fullscreen hamburger button on mobile since we have our own */
  #fullscreen {
    display: none !important;
  }

}