body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    background-color: rgb(255, 252, 247);
}

header{
    display: flex;
    justify-content: center;
    align-items: center;
}
header div{
    width: 40%;
    padding: 40px;
}
header div img{
    width: 100%;
}



.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 10px;
  gap: 10px;
  padding: 10px 50px; /* Added 50px padding to the left and right */
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
  width: 100%; /* Prevents the grid from exceeding the viewport width */
  overflow: hidden;
}

  .masonry-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .masonry-grid img:hover {
    transform: scale(1.05);
  }
  
  .masonry-grid > * {
    grid-row-end: span 2;
  }
  



  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
  }
  
  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
  }


@media screen and (max-width: 1024px){
    header div{
        width: 80%;
    }    
}