/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0 20px;
}

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

.gallery-item div {
  width: 100%;
  height: 200px;
  display: block;
  transition: transform 0.3s ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

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

.lightbox.active {
  display: flex;
}

/* Lightbox image */
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

/* Navigation arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 36px;
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  user-select: none;
}

.lightbox-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-arrow-left {
  left: 20px;
}

.lightbox-arrow-right {
  right: 20px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

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

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}