  @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

  body {
    font-family: 'Nunito', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
  }

.nav {
    width: 250px;
    height: 100vh;
    background-color: #000;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 999; /* Make sure the nav container is on top */
}


.nav a {
    color: #4169E1; /* Ensure the link color is visible */
    text-decoration: underline; /* Make links more distinct */
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10; /* Keep it on top, but make sure nav has a higher z-index */
}

.nav a:hover {
    color: #5169E1;
}

  .nav-image {
    width: 100%;
    height: 150px;
    background-image: url('https://source.unsplash.com/random/250x150?cobalt,blue');
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .nav h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .nav ul {
    list-style-type: none;
    padding: 0;
  }

  .nav li {
    margin-bottom: 10px;
  }


  .content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
  }

  .masonry {
    column-count: 3;
    column-gap: 20px;
  }

  .pin {
    background-color: white;
    display: inline-block;
    margin: 0 0 20px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid;
  }

  .pin img {
    width: 100%;
    height: auto;
    display: block;
  }

  .pin-content {
    padding: 15px;
  }

  .pin-title {
    font-weight: bold;
    margin-bottom: 10px;
  }

  .pin-description {
    color: #555;
    font-size: 14px;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .pin-description.expanded {
    max-height: 1000px;
  }

  .read-more {
    color: #4169E1;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
  }

  .menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
  }

  @media (max-width: 1200px) {
    .masonry {
      column-count: 2;
    }
  }

  @media (max-width: 800px) {
    .nav {
      transform: translateX(-100%);
      z-index: 999;
    }
    .nav.active {
      transform: translateX(0);
    }
    .content {
      margin-left: 0;
      width: 100%;
    }
    .masonry {
      column-count: 1;
    }
    .menu-toggle {
      display: block;
    }
  }
