/* 

1350 PX SCREENS

*/

@media (min-width: 781px) and (max-width: 1350px) {
  h3.title {
    max-width: 100%;
  }
}

/* 

1000 PX SCREENS

*/

@media (max-width: 1000px) {
  /* Layout */

  .article-text {
    max-width: 95%;
  }

  .content {
    flex: 1 0 auto;
    /* allows content to fill page if content doesnt take up screen, forces footer to bottom*/
    align-items: center;
    margin-top: 0;
  }

  .title .content {
    display: flex;
    justify-content: center;
  }

  .content h4 {
    display: none;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  article {
    min-height: 100vh;
  }

  .feed {
    justify-content: center;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* vertical space between rows */
  }

  .sidebar,
  .content {
    width: 100%;
    padding: 1rem;
  }

  /* Sidebar – left */
  .sidebar.left .title {
    font-size: 1.5rem;
    text-align: center;
  }
  .sidebar.left p {
    display: none;
  }
  .sidebar.left {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10; /* sit above the feed items */
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Hide desktop navigation container */
  .nav_container {
    display: none;
  }

  /* Mobile footer styling */
  .sidebar.right {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    max-height: 60px !important;
  }

  /* Navigation menu - horizontal row */
  .sidebar.right .nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    gap: 1.5rem; /* Space between menu items */
  }

  .sidebar.right .nav li {
    margin: 0; /* Remove default vertical margin */
  }

  .sidebar.right .nav a {
    display: block;
    text-align: center;
  }

  aside .footer a {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    position: sticky;
    bottom: 0;
  }
}

/* 

800 PX SCREENS

*/

@media (max-width: 800px) {
  .date {
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
  blockquote {
    font-size: 0.65rem;
  }
}

/* 

600 PX SCREENS

*/
@media (max-width: 600px) {
  .about-photo {
    display: none;
  }

  .about-photo-mobile {
    display: block;
    margin-top: 1rem;
  }
}

/* 

400 PX SCREENS

*/

@media (max-width: 400px) {
  h3.title {
    max-width: 100%;
  }
  .thumb {
    margin: 0rem 0rem 0rem 1rem;
  }
}

@media (max-width: 800px) {
  .wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static; /* no longer sticky */
    padding: 1rem 0;
  }

  .right {
    order: 2;
  }
}

@media (max-width: 350px) {
  .thumb {
    width: 100px;
    height: 100px;
  }
  blockquote {
    display: none;
  }

  .info time.date {
    margin-top: 0.25rem;
  }
}
