.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-item {
  flex: 1 1 200px;
  max-width: 220px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 120px;
  }
}
@media (max-width: 480px) {
  .gallery-item img {
    height: 100px;
  }
}

/* Carousel Overlay */
.carousel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 81%);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}
.show-carousel {
  display: flex !important;
}
.hide-carousel {
  display: none !important;
}

.carousel-wrapper {
  width: 80%;
  max-width: 1000px;
  height: 500px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.carousel-wrapper img,
.carousel-inner img {
  max-height: 450px;
  margin: auto;
  display: block;
  object-fit: contain;
}
.close-carousel {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

#gallery img {
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
