/* Gallery Grid */

#gallery {
  background-color: var(--bs-light);
  padding: 60px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.85;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.gallery-item-overlay i {
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
}

/* Lightbox Modal */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  animation: zoomIn 0.3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #d4af37;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .lightbox-close {
    font-size: 2.5rem;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .lightbox-content img {
    max-height: 80vh;
  }
}

@media (max-width: 576px) {
  #gallery {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .gallery-item-overlay i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .lightbox-close {
    font-size: 2rem;
  }
}

