#logo{
  cursor:pointer;
  background-image: unset !important;
}
.close-book-next{
      width: 100%;
      display: inline-block;
  }
/* Keep a nice padding when we hit the scale point at 970px before mobile at 720px */
@media screen and (min-width: 721px) and (max-width:1000px){
    #wrapper{
        width: 1000px;
        margin-left: 25px;
    }
    #footer_blurb, #footer{
        width: 95%;
    }
}
@media screen and (max-width:720px){
  body, #wrapper, #nav, #content, ul.bottom-blocks, ul.second-bottom-blocks,
  #footer_blog_left, ul.nav_bottom{
    min-width: unset;
    width: unset;
  }
  #content h1{
    padding-left: 20px;
  }

  li, p, div.about_cont p{
    /* width: 100%; <- breaks home page */
    background-size: 90%;
    padding-left: 25px;
    padding-right: 25px;
    border-bottom: 0;
    font-size: 14px !important;
  }
  #logo{
    width: 100%;
    text-align: center;
    /* max-width: 400px; */
    background-size: 100%;
    border-bottom: 0px;
    border-bottom-right-radius: 0;
    height: 50px;
  }
  #logo .logo-image{
    margin: 10px auto;
    max-width: 400px;
  }
  #nav{
      margin-top: 20px;
    text-align: center;
    border-bottom: 0px !important;
    height: 20px;
    transition: height 1s;
    cursor: pointer;
    overflow:hidden;
  }
  #nav.displayed{
    height: 310px;
    transition: height 1s;
  }
  #nav li{
    display: block;
    font-size: 25px;
    line-height: 40px;
  }
  #nav:before{
    
    content:"MENU";
    font-size: 16px;
  }
  #nav.displayed:before{
    content:"CLOSE";
  }
  #fadeshow1, #fadeshow2{
    width: 100% !important;
    height: 32vw !important;
  }
  .gallerylayer img{
    width: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
  ul.bottom-blocks, ul.second-bottom-blocks{
    display: flex;
    flex-direction: column;
    /* margin-left: 4%; <- removed as individual stock print pages pushed off page*/
    width: 100%; /* <- 100% to make home page fit */
  }
  ul.bottom-blocks img{
    transform: scale(150%);
    margin-top: 20px;
  }
  ul.bottom-blocks li, ul.second-bottom-blocks > li{
    width: unset !important;
    height: unset !important;
    border-right: solid 0px #222 !important;
    border-bottom: solid #222 20px;
  }
  ul.second-bottom-blocks  p {
    padding-left: unset !important;
  }


  /* About page */
  .about_cont #petr{
    width: 96vw;
    text-align: center;
  }
  /* Gallery Page */
  div.gallery_info img{
    width: 98vw;
    height: unset;
  }
  div.gallery_info p {
    padding: 5px 25px !important;
  }
  .petr-heading{
    width: unset !important;
    padding: 0 10vw;
  }
  .petr-heading img{
    width: 100%;
    object-fit: scale-down;
  }
  .nav-gallery-line{
    width: unset;
  }

  /* Limited Edition Prints */
  ul.thumbnails, ul.thumbnails-vertical{
    float: unset;
    width: unset;
    height: unset;
    padding-bottom: 20px;
  }
  ul.thumbnails li, ul.thumbnails-vertical li{
    float: unset;
    margin: auto;
    display: block;
    height: 140px;
  }
  ul.thumbnails li img, ul.thumbnails-vertical li img{
	height: 125px !important;
  }
  ul.pagination{
    width: unset !important;
    float: none;
  }
  /* Photo tours */
  .nav-photo-tours-line, ul.nav-photo-tours, ul.photo-tours-entry{
    width: unset;
    height: unset;
    float: unset;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    gap: 20px;

  }
  .nav-prints-line, .nav-prints{
    width: unset !important;
  }

  table.frame{
    width: 96vw !important;
    height: unset !important;
    min-height: unset !important;
  }
  table.frame #border-frame img{
    width: 80vw;
    max-width: unset !important;
    max-height: unset !important;
  }
  #info-img:before{
    position: absolute;
    margin-top: -30px;
    content:"Please note:  to see border options, please visit this page on a bigger screen.";
    width: 80vw;
    padding-left: 50px;
    font-size: 11px;
  }
  ul.pagination-fine-print{
    width: unset;
    display: none;
  }
  .nav-prints-line, .nav-prints{
    width: unset !important;
  }
  table.frame{
    width: 96vw !important;
    height: unset !important;
    min-height: unset !important;
  }
  table.frame #border-frame img{
    width: 80vw;
    max-width: unset !important;
    max-height: unset !important;
  }
  #info-img:before{
    position: absolute;
    margin-top: -30px;
    content:"Please note:  to see border options, please visit this page on a bigger screen.";
    width: 80vw;
    padding-left: 50px;
    font-size: 11px;
  }
  ul.pagination-fine-print{
    width: unset;
    display: none;
  }
  ul.photo-tours-entry img{
    float: unset;
    position: unset;
    object-fit: cover;
    width: 100%;
  }
  #content ul.photo-tours-entry h1{
    padding: 5px 0;
    padding-left: 0;
    width: 200px;
    margin: 0 auto;
  }

  ul.photo-tours-entry > li{
    width: 47%;
    text-align: center;

  }
  .slideshow-container{
    height: unset;
    max-height: unset;
  }
  ul.photo-tours-entry .space20 {
    margin: 0;
  }
  #info-img{
    width: unset !important;
  }
  /* Contact page */
  .contact-form{
    width: unset;
    height: unset !important;
    text-align: center;
  }
  .contact p, .contact h1, div.contact h2{
    padding-left: 0px !important;
    padding-right: 0px;
    width: 100vw;
  }
  .contact-form .contact{
    width: 100%;
    margin-bottom: 30px;
  }
  .contact-form table{
    margin: auto;
  }
  .contact-form table td{
    text-align: left;
  }
  /* Last inputs should be centered (buttons) */
  .contact-form table tr:last-child td{
    text-align: center;
  }
  .contact-form table textarea{
    max-width: 97%;
    float:left;
    max-width: 62%;
  }
  #wrapper-store-book-display {
    max-width: 960px;
    width: 90vw;
    min-width: unset;
  }
  #wrapper-store-book-display > div {
    width: 100%;
  }
  #wrapper-store-book-display > div > div {
    width: 100%;
    height: unset;
  }
  #wrapper-store-book-display > div  > div > a {
    width: 100%;
  }

  #wrapper-store-book-display > div > div > a > img{
    width: 100%;
    object-fit: scale-down;
    object-position:top;
    height: unset;
  }
  #wrapper-store-book-display > div > div > a > span{
    top: calc(100vw/6.3) !important;
    left: unset !important;
  }
  #wrapper-store-book-display .store-display-book img{
      width: 95%;
  }
  #wrapper-store-book-display .store-display-book > a > span{
        top: calc(100vw/3.3) !important;
  }
  #wrapper-store-book-display .store-display-book  .store-display-info-book{
      margin-right: 30px;
  }
  ul.store-entry {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    height: auto;
    justify-content: center;
    gap: 20px;
  }
  ul.store-entry li {
    margin: 0;
  }

  #content > div.nav-prints-line > div > form > div > input[type=image] {
    padding: 0 10px;
    background: #111;
  }
  ul.posters-thumb, ul.bookmarks-thumb, ul.thumbnails-wallpaper {
	  height: unset !important;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    float: none;
    justify-content: center;
  }
  ul.posters-thumb .space24{
	  margin-right: 0;
  }
  
  ul.posters-thumb li{
    display: flex;
    flex-wrap: wrap;
    height: 450px !important;
  }
  ul.bookmarks-thumb li, ul.thumbnails-wallpaper li {
      display: flex;
    flex-wrap: wrap;
  }
  ul.bookmarks-thumb li {
    width: 35%;
    margin-right: 10%;
  }
  ul.thumbnails-wallpaper li{
      margin: 0 3%;
  }
  ul.bookmarks-thumb .store-id-buy{
      width: 72%;
  }
@media screen and (max-width: 500px){
  ul.posters-thumb li {
    height: 600px !important;
    }
}
  ul.posters-thumb li > div > div {
	position: relative !important;
	top: unset !important;
	right: unset !important;
  }
  .photo-tour > div {
    width: 100% !important;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .photo-tour > div > div:nth-child(3){
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 10px;
  }

  #tour {
    float: none;

  }
  #tour img {
    width: 100%;
    object-fit: scale-down;
    object-position: top;
    height: auto;

  }
  .photo-tour .photo-tours-certification {
    position: relative !important;
    display: inline;
    right: unset !important;
    align-items: center;
  }
  div.photo-tour-nested-page p {
    padding: 1rem;
  }

  ul.thumbnails-photo-tours {
    width :100%;
    float: unset;
    height: auto;
  }
  ul.thumbnails-photo-tours li {
    display: block;
    float: none;
    margin: 2px auto;
  }
}
/* Footer kicks in at 720 like the content (was 950) */
@media screen and (max-width:720px){
  #footer{
    height: unset;
  }
  #footer_blog_left{
    padding-top: 30px;
  }
  #footer_blog_left > div > p{
    height: unset;
    font-size: 12px;
    width: 80%;
    float: unset;
    margin-bottom: 10px;
  }
  #footer_blog_left > ul{
    width: 50% !important;
  }
  #footer_blog_left, ul.nav_bottom{
    min-width: unset;
    width: unset;
  }
  ul.nav_bottom{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: unset !important;
    background-color: #111;
    margin-bottom: 20px;
    padding-top: 0px;
  }

  .nav_bottom{
    text-align: center !important;
  }
  .nav_bottom li{
    padding-left: unset !important;
    font-size: 16px;
  }
    #blog_social_media{
    float: unset;
    margin: auto !important;;
  }
}
/* Footer specific fixes for larger screens */
@media screen and (min-width:700px) and (max-width:720px){
  ul.nav_bottom{
    width: 50%;
    padding-bottom: 40px;
  }
  #footer_blog_left > div{
    padding-top: 20px;
  }
}

@media screen and (max-width:720px){
  .nav-prints-line > ul.nav-prints {
    background: #111;
  }
}
@media screen and (min-width:501px) and (max-width: 719px){
    ul.posters-thumb>li {
        height: 275px !important;
    }
    ul.posters-thumb> li > .store-id-buy{
        right: 5px;
        top: 5px;
    }
    ul.books-calendars >li {
        height: 450px !important;
    }
}
/* Mobile only */
@media screen and (max-width:500px){

  ul.photo-tours-entry  h1{
    padding: 5px 0;
    width: 60vw;
    margin: 0 auto;
  }
  ul.photo-tours-entry {
    display: flex;
    flex-direction: column;
  }
  ul.photo-tours-entry li {
    height: auto;
  }
  ul.photo-tours-entry img{
    width: 100%;
    object-fit: cover;
  }

  ul.photo-tours-entry > li{
    width: 100%;
  }
  ul.posters-thumb li > a ,
  ul.posters-thumb li  img ,
  ul.posters-thumb li > div {
    position: relative;
    float: none;
    text-align: center;

  }
  ul.posters-thumb li {
    height: auto;
    justify-content: center;
    margin: 1rem 1rem;
    padding: 1rem;
    width: 80%;

  }
  ul.posters-thumb .paypal-code {
    position: static;
    padding: 1rem;

  }
    #content ul.pagination {
    float: none;
  }
}
@media screen and (max-width: 600px){
  /* Bookmarks Page */
  ul.bookmarks-thumb li{
      width: 90%;
  }
  ul.bookmarks-thumb li > a > img{
      margin-left: 11%;   
  }
  #footer_blog_left{
    width: unset;
  }
  #footer_blog_left > ul{
    width: 100% !important;
  }
}
@media screen and (max-width:430px){
  #logo .logo-image{
    max-width: 330px;
  }

}
