.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-main-image {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}
.carousel-main-image img { max-width: 90%; max-height: 90%; object-fit: contain; }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 20px;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  z-index: 10001;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.carousel-nav:hover { background-color: rgba(255, 255, 255, 0.8); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-thumbnails {
  height: 20%;
  overflow-x: auto;
  padding: 10px;
  display: flex;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.15);
}
.carousel-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s;
}
.carousel-thumbnail.active { border-color: #B47437; }
.carousel-thumbnail:hover  { border-color: #fff; }

.carousel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  z-index: 10001;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.carousel-close:hover { background-color: rgba(255, 255, 255, 0.8); }

.carousel-counter { position: absolute; top: 20px; left: 20px; color: white; font-size: 18px; z-index: 10001; }

@media (max-width: 768px) {
  .carousel-main-image img { max-width: 95%; max-height: 95%; }
  .carousel-thumbnails { height: 25%; padding: 5px; gap: 5px; }
  .carousel-thumbnail  { width: 60px; height: 60px; }
  .carousel-nav        { width: 40px; height: 40px; padding: 15px; }
}
