     body {
      font-family: Arial, sans-serif;
      background-color: #f0f0f0;
      display: flex;
      flex-direction: column; /* Stack the heading and gallery */
      justify-content: center;
      align-items: center;
      margin: 0;
      text-align: center;
    }
    h1 {
      margin-bottom: 20px; /* Space between heading and gallery */
      font-size: 2rem;
      color: #333;
    }
    .gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      max-width: 900px;
      margin-bottom: 20px;
      margin-left: 10px;
      margin-right: 10px;
    }
    @media only screen and (max-width: 700px) {
      .gallery {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .thumbnail {
      cursor: pointer;
      width: 100%;
      height: 150px; /* Set a fixed height for the thumbnail */
      object-fit: cover; /* Ensures the image covers the area and crops if necessary */
      border-radius: 8px;
      transition: transform 0.3s ease;
    }
    .thumbnail:hover {
      transform: scale(1.05);
    }
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      position: relative;
      background-color: white;
      padding: 20px;
      max-width: 90%;
      max-height: 80%;
    }
    .modal-content img {
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 80vh;
      object-fit: contain;
      cursor: pointer;
    }
    .close {
      position: absolute;
      top: 10px;
      right: 10px;
      color: white;
      font-size: 30px;
      cursor: pointer;
      padding: 10px;
      background: rgba(0, 0, 0, 0.7);
      border-radius: 0;
      transition: background 0.3s;
      border-radius: 5px;
    }
    .close:hover {
      background: rgba(0, 0, 0, 0.9);
    }
    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: white;
      font-size: 20px;
      cursor: pointer;
      padding: 10px 15px;
      background: rgba(0, 0, 0, 0.7);
      border-radius: 5px;
      transition: background 0.3s;
    }
    .prev {
      left: 10px;
    }
    .next {
      right: 10px;
    }
    .prev:hover, .next:hover {
      background: rgba(0, 0, 0, 0.9);
    }
    .back-btn {
      position: absolute;
      top: 20px;
      left: 20px;
      background: rgba(0, 0, 0, 0.4);
      color: white;
      padding: 10px 15px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s ease;
      text-decoration: none; 
    }
    .back-btn:hover {
      background: rgba(0, 0, 0, 0.6);
    }
