/* Keep the desktop newsstand intact on small screens. The viewport scrolls
   around one complete rack instead of rebuilding each shelf for mobile. */
.rack-viewport{overflow:visible}

@media(max-width:900px){
  .rack-viewport{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:70px 0 12px;
    scrollbar-color:#a98c69 #e9dfc8;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .rack{
    width:1235px!important;
    max-width:none!important;
    margin:0!important;
    padding:34px 42px 25px!important;
    border:0!important;
    background:transparent!important;
  }
  .rack-real-shelf{display:block!important}
  .rack .shelf{
    display:flex!important;
    overflow:visible!important;
    align-items:flex-end!important;
    gap:12px!important;
    padding:12px 27px 34px!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
  }
  .rack .bottom-shelf{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,178px)) minmax(0,1fr) 126px!important;
    justify-content:start!important;
    align-items:end!important;
    gap:11px!important;
    padding:27px 27px 23px!important;
  }
  .rack .shelf::after{display:none!important}
  .rack .top-shelf .magazine{
    width:20%!important;
    min-height:0!important;
    flex:0 1 20%!important;
  }
  .rack .top-shelf .magazine.zine{
    width:25%!important;
    flex-basis:25%!important;
    grid-column:auto!important;
  }
  .rack .bottom-shelf .magazine,
  .rack .bottom-shelf .magazine.pronunciation{
    width:100%!important;
    min-height:0!important;
    flex:none!important;
    transform:translateY(-68px) rotate(var(--tilt,0deg))!important;
  }
  .rack .bottom-shelf .magazine.alphabet{
    grid-column:auto!important;
  }
  .rack .bottom-shelf .magazine:hover,
  .rack .bottom-shelf .magazine.pronunciation:hover{
    transform:translateY(-75px) rotate(var(--tilt,0deg))!important;
  }
  .rack .bottom-shelf .note-stack{
    grid-column:6!important;
    width:100%!important;
    flex:none!important;
    transform:translateY(-24px)!important;
  }
  .rack .left-notes{left:-65px!important}
  .newsstand-plant{right:-145px!important;bottom:-16px!important;height:390px!important}
}
