* {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    max-width: 80vw;
    margin: 20px auto;
    padding: 0 10px;
  }
  
  .gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    background-color: #ddd;
  }
  

  @media (min-width: 768px) {
    .gallery {
      grid-template-columns: repeat(4, 1fr);
    }
    .gallery img {
      height: 400px; 
    }
  }
  
  .lightbox {
    display: none;                
    position: fixed;             
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
  }
  
  .lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
    margin: auto;
  }
  
  
  .lightbox-image {
    max-width: 100%;
    max-height: 80vh; 
    margin-bottom: 10px;
    border-radius: 4px;
  }
  
  .lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 0 20px;
  }
  
  .close, .prev, .next {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
  }
  
  /* Positioning for each control */
  .close {
    top: 20px;
    right: 30px;
  }
  .prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
  }
  .next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
  
  /* Hover effects for the controls */
  .close:hover, .prev:hover, .next:hover {
    color: #ccc;
  }
  