.portfolioWrapper {
    display: flex;
    gap: 50px;
    align-items: center; /* Align top */
    margin-top: 0px;
    justify-content: center;
  }

.img-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    max-width: max-content;
    box-sizing: border-box;
    margin: 40px 20px auto;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
  }
  
  .img-container img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,.25);
  }
  
  .img-container img:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    
  }
  
  #preview {
    display: flex;
    width: 500px;
    height: 600px;
    margin-top: 40px;
    
  }
  
  #preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  @media (max-width: 1299px) {
    .portfolioWrapper {
        flex-direction: column-reverse; /* stack preview above thumbnails */
        align-items: center;
        gap: 20px;
    }

    #preview {
        width: 90%;       /* responsive width */
        max-width: 700px; /* optional max */
        height: 600px;    /* taller preview */
        margin-bottom: 20px;
    }

    #preview img {
        width: 100%;       /* fill the full preview width */
        height: 100%;      /* fill the full preview height */
    }
  

    .img-container img {
        width: 180px;   /* increased from 120px */
        height: 135px;  /* increased from 100px */
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0,0,0,.25);
        transition: transform 0.2s ease; /* smooth hover effect */
    }
    
    .img-container img:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    }
    .img-container{
        max-height: 600px;
    }


}