h1 {
      text-align: center;
      padding: 30px;
      color: #222;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .gallery-item img {
  
      transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.1);
    }


  

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 1000;
      padding-top: 50px;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.9);
    }

    .lightbox-content {
      position: relative;
      margin: auto;
      display: block;
      max-width: 80%;
      max-height: 80vh;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.5);
      top:80px;
    }

    .close, .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: #fff;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      padding: 10px;
      user-select: none;
      transition: 0.3s;
    }

    .close {
      top: 100px;
      right: 35px;
      font-size: 50px;
      transform: none;
    }

    .prev { left: 5%; }
    .next { right: 5%; }

    .close:hover, .prev:hover, .next:hover {
      color: #f39c12;
    }

    .gallery1
    {
      display: none;
    }

    @media  screen and (max-width: 790px) {
      .gallery1
      {
        display: block;
        

      }
      .gallery-item{
        margin: 10px;
      }
        .lightbox-content {
      position: relative;
      margin: auto;
      display: block;
      max-width: 80%;
      max-height: 80vh;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.5);
      top:250px;
    }
      .prev { left: 1%; }
    .next { right: 1%; }

     .close {
      top: 218px;
      right: 35px;
      font-size: 50px;
      transform: none;
    }
      .gallery
      {
        display: none;
      }
    }