   .scroll-container {
    padding: 16px;
    width: 90%;
    max-width: 1000px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);  /* enables inner scrolling */
  }
  
   /* 🔹 Flex container that holds all items horizontally */
  .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr); /* two rows */
    grid-auto-columns: min-content;
    gap: 16px;
  }

  /* Each batch of images in its own flex group */
  .batch {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 16px;
    height: 100%;             /* ensures 2 rows fill container height */
    margin-right: 16px;       /* space between batches */
  }

  .item {
    width: 260px;
    /* height: 250px; */
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    flex: 0 0 auto;
  }

  .item:hover {
    transform: scale(1.05);
  }

  .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .loader {
    text-align: center;
    color: #aaa;
    padding: 12px;
    min-width: 120px;
    align-self: center;
  }

  /* Lightbox styling */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  .lightbox.open {
    visibility: visible;
    opacity: 1;
  }
  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
  }
  .lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
  }