hr {
      border: none;
      border-top: 2px solid #888;
      margin: 0;
      width: 100%;
    }

    /* Gallery Section */
    .gallery-hero {
      text-align: center;
      padding: 30px 15px;
      background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50,0 61,35 98,35 68,57 79,91 50,70 21,91 32,57 2,35 39,35" fill="none" stroke="#b5651d" stroke-width="2"/></svg>') repeat;
      background-color: #eceada;
      border: 3px solid #b5651d;
      border-radius: 15px;
      margin: 20px auto;
      max-width: 1400px;
      box-sizing: border-box;
      opacity: 0;
      animation: fadeIn 1s ease-out forwards;
      transition: box-shadow 0.3s ease;
    }

    .gallery-hero:hover {
      box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
    }

    .gallery-hero h1 {
      font-size: 48px;
      font-family: 'TT Background', serif;
      color: #3a2f2d;
      border-bottom: 2px solid #b5651d;
      display: inline-block;
      margin-bottom: 15px;
      opacity: 0;
      animation: slideInLeft 1s ease-out 0.5s forwards;
      transition: color 0.3s ease;
    }

    .gallery-hero h1:hover {
      color: #b5651d;
    }

    .gallery-hero p {
      font-size: 18px;
      color: #4a3c31;
      margin: 0 auto 20px;
      max-width: 700px;
      opacity: 0;
      animation: fadeInUp 1s ease-out 0.7s forwards;
      transition: color 0.3s ease;
    }

    .gallery-hero p:hover {
      color: #b5651d;
    }

    /* Gallery Grid */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 15px;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 10px;
      box-sizing: border-box;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      cursor: pointer;
      opacity: 0;
      transform: scale(0.9);
      animation: scaleIn 0.8s ease-out forwards;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item:nth-child(1) { animation-delay: 0.8s; }
    .gallery-item:nth-child(2) { animation-delay: 0.9s; }
    .gallery-item:nth-child(3) { animation-delay: 1.0s; }
    .gallery-item:nth-child(4) { animation-delay: 1.1s; }
    .gallery-item:nth-child(5) { animation-delay: 1.2s; }
    .gallery-item:nth-child(6) { animation-delay: 1.3s; }
    .gallery-item:nth-child(7) { animation-delay: 1.4s; }
    .gallery-item:nth-child(8) { animation-delay: 1.5s; }

    .gallery-item:hover {
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
    }

    .gallery-item img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.1);
    }

    .gallery-item .caption {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      padding: 8px;
      text-align: center;
      font-size: 14px;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }

    .gallery-item:hover .caption {
      transform: translateY(0);
    }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 2000;
      justify-content: center;
      align-items: center;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox img {
      max-width: 90%;
      max-height: 80%;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(181, 101, 29, 0.5);
    }

    .lightbox .close {
      position: absolute;
      top: 15px;
      right: 20px;
      color: #fff;
      font-size: 30px;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .lightbox .close:hover {
      color: #b5651d;
    }

    .lightbox .prev, .lightbox .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: #fff;
      font-size: 25px;
      cursor: pointer;
      padding: 8px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    .lightbox .prev:hover, .lightbox .next:hover {
      background-color: #b5651d;
      color: #fff;
    }

    .lightbox .prev {
      left: 10px;
    }

    .lightbox .next {
      right: 10px;
    }


    @media (max-width: 768px) {
      .gallery-hero {
        padding: 20px 10px;
      }

      .gallery-hero h1 {
        font-size: 32px;
      }

      .gallery-hero p {
        font-size: 14px;
        max-width: 90%;
      }

      .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
      }

      .gallery-item {
        max-width: 350px;
        margin: 0 auto;
      }

      .gallery-item img {
        height: 150px;
      }

      .gallery-item .caption {
        font-size: 12px;
        padding: 6px;
      }

      .lightbox img {
        max-width: 85%;
        max-height: 70%;
      }

      .lightbox .close {
        font-size: 25px;
        top: 10px;
        right: 15px;
      }

      .lightbox .prev, .lightbox .next {
        font-size: 20px;
        padding: 6px;
      }
      
    }

    @media (max-width: 480px) {
      .gallery-hero h1 {
        font-size: 28px;
      }

      .gallery-hero p {
        font-size: 12px;
      }

      .gallery-item img {
        height: 120px;
      }

      .gallery-item .caption {
        font-size: 10px;
      }

      .lightbox img {
        max-width: 80%;
        max-height: 60%;
      }

      .lightbox .close {
        font-size: 20px;
      }

      .lightbox .prev, .lightbox .next {
        font-size: 18px;
      }

      
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes scaleIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-20px); }
      to { opacity: 1; transform: translateX(0); }
    }