/* Hidden by default */
.mobile-nav {
  display: none;
}

/* ================= MOBILE MODE ================= */
@media (max-width: 1020px) {

  /* Hide sidebar completely */
  .sidebar {
    width: 0;
    transform: translateX(-100%);
    overflow: hidden;
  }

  .main {
    margin-top: 48px; /* match navbar height */
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0; /* remove all padding */
    box-shadow: none;
  }

  #posts img {
    width: 100%;
    height: auto;
  }
  
  /* Mobile nav container */
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: #000;
    z-index: 100;
    justify-content: center;
    padding: 0 10px;
  }


  /* Inner nav flex layout to scale */
  .mobile-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }

  /* Brand */
.mobile-nav .brand {
  font-weight: bold;
  text-transform: lowercase;
  color: white;
  text-decoration: none;
  font-family: Verdana, sans-serif;
  white-space: normal;
  flex-shrink: 1;
  font-size: 12px; /* smaller size */
}

  /* Links */
  .mobile-nav .links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap; /* wrap links if needed */
    justify-content: flex-start;
    margin-left: 0;
    flex-shrink: 1;
  }

  .mobile-nav .links a {
    font-size: 14px;
    color: white;
    text-decoration: none;
  }

    #posts {
    padding: 0; /* remove padding on mobile */
  }
}
