 /* Section and title */
 .lightbox-gallery-section {
     padding: 60px 20px;
     background: #fff;
     text-align: center;
 }

 .lightbox-gallery-title {
     font-size: 2rem;
     margin-bottom: 30px;
     font-weight: 600;
 }

 /* Gallery grid */
 .lightbox-gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
     gap: 16px;
     max-width: 1200px;
     margin: auto;
 }

 .lightbox-gallery-thumb {
     width: 100%;
     border-radius: 8px;
     cursor: pointer;
     transition: transform 0.2s ease;
 }

 .lightbox-gallery-thumb:hover {
     transform: scale(1.03);
 }

 /* Lightbox overlay */
 .lightbox-overlay {
     display: none;
     position: fixed;
     z-index: 9999;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(0, 0, 0, 0.95);
     justify-content: center;
     align-items: center;
     flex-direction: column;
 }

 .lightbox-image {
     max-width: 90%;
     max-height: 80vh;
     border-radius: 10px;
     transition: all 0.3s ease-in-out;
 }

 /* Controls */
 .lightbox-close,
 .lightbox-prev,
 .lightbox-next {
     position: absolute;
     color: white;
     font-size: 40px;
     font-weight: bold;
     cursor: pointer;
     user-select: none;
 }

 .lightbox-close {
     top: 20px;
     right: 30px;
 }

 .lightbox-prev {
     top: 50%;
     left: 30px;
     transform: translateY(-50%);
 }

 .lightbox-next {
     top: 50%;
     right: 30px;
     transform: translateY(-50%);
 }

 @media (max-width: 600px) {

     .lightbox-close,
     .lightbox-prev,
     .lightbox-next {
         font-size: 30px;
     }
 }

 /* Gallery Grid Layout */
.lightbox-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  justify-items: center;
  align-items: center;
  padding: 10px;
}

/* Thumbnail Styling */
.lightbox-gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;        /* perfect square */
  object-fit: cover;          /* fills box without distortion */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover Effect */
.lightbox-gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  .lightbox-gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 images per row on tablets/mobiles */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .lightbox-gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* still 2 per row on small screens */
    gap: 8px;
  }
}
