/* responsive.css */


@media (max-width: 768px) {
  /* stack sidebar + main into one column */
  .page-layout {
    flex-direction: column;
  }
  .main-content {
    margin: 0;            /* remove desktop right gutter */
    padding: 0 1rem;      /* small horizontal padding */
  }

  /* shrink containers a bit */
  .container {
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 90%;
  }

  /* adjust header/nav for mobile if needed */
  header {
    padding: 0.5rem 1rem;
  }

  /* make sidebar full-width and stack above main */
  .side-column {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: auto;
    background-color: transparent;
    /* center block and add 10px top padding */
    margin: 0 auto 1rem;
    padding: 10px 0 0;
    align-items: center;
  }
  /* reset nav-section border-radius & padding for full-width */
  .nav-section {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
  }
  .nav-section h2 {
    margin-top: 0;
  }

  .viewer-container.large {
    left: 0px;
    height: 50vh;
  }

  /* adjust viewer container for mobile */
  .viewer-container {
    width: 100%;
    height: auto; /* let it shrink to fit */
    margin: 0.5rem auto;
    position: relative;
  }
  .viewer-panel {
    height: 40px; /* keep panel height consistent */
  }
  
  /* make buttons larger and more touch-friendly */
  button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  /* tighten typography */
  h1 {
    font-size: 1.75rem;
  }
  p, #status {
    font-size: 1rem;
  }

}

@media (max-width: 480px) {
  /* tighten typography on small phones */
  h1 {
    font-size: 1.5rem;
  }
  p, #status {
    font-size: 0.9rem;
  }

  /* collapse video to full width */
  .video-container {
    margin: 0.5rem 0;
  }
  #toggleSizeBtn{
    display:none;
    pointer-events:none;
  }
  /* tighten up sidebar text */
  .nav-section {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
  }
  .nav-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .vertical-list li {
    margin-bottom: 0.4rem;
  }
  .vertical-list a {
    font-size: 0.95rem;
  }
  .viewer-container.large {
    left: 0px;
  }

  .viewer-container.small {
    height: 400px;
    width: 80%;
    top: -10px;
    left: -20px;
  }

  .main-content {
    padding: 0;
  }
}