/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery {
  padding: 80px 0;
  background: #f8f9fa;
}

.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery .gallery-item img {
  width: 100%;
  height: 250px; /* Fixed height for all thumbnails */
  object-fit: cover; /* This crops the image to fit without distortion */
  transition: transform 0.3s ease;
}

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

.gallery .gallery-item .gallery-links {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery .gallery-item:hover .gallery-links {
  opacity: 1;
}

.gallery .gallery-item .gallery-links a {
  font-size: 24px;
  color: #fff;
  margin: 0 10px;
}

/*--------------------------------------------------------------
# Lightbox
--------------------------------------------------------------*/
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  padding: 30px;
  animation: fadeIn 0.5s;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 5px;
  animation: zoomIn 0.5s;
}

.lightbox .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox .close-btn:hover {
  transform: scale(1.2);
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
  user-select: none;
}

.lightbox .nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox .prev-btn {
  left: 30px;
}

.lightbox .next-btn {
  right: 30px;
}

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

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

