/* כל המודאל */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

/* תוכן בתוך המודאל - ממרכז את הקרוסלה */
.modal .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center; /* מרכז אנכית */
  align-items: center;     /* מרכז אופקית */
}

/* תיבת הקרוסלה */
.modal-dialog {
  max-width: 90%;
  height: 100%;
  margin: auto;
}

/* תוכן הקרוסלה שקוף */
.modal-content {
  background-color: transparent;
  border: none;
}

/* מעטפת הקרוסלת התמונות המוקטנות */
.thumbnail-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 0 1rem;
  max-width: 100%;
}

/* הקרוסלה עצמה – שורת התמונות */
.thumbnail-carousel {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* כל תמונה ממוזערת */
.thumbnail-carousel img {
  height: 60px;
  width: auto;
  max-width: 100px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.3s, border 0.3s;
  flex-shrink: 0; /* כדי שהתמונה לא תתכווץ יותר מדי */
}

/* תמונה ממוזערת נבחרת */
.thumbnail-carousel img.active {
  opacity: 1;
  border-color: #007bff;
}

button.close {
    padding: 0;
    background: 0 0;
    border: 0;
    width: 100%;
    justify-content: flex-start;
    display: flex;
    font-size:3rem;
    color:#fff;
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  filter: none;
}

.carousel-control-next, .carousel-control-prev{
  padding:0 !important;
    width:auto;
}

/* רספונסיביות - מובייל */
@media (max-width: 768px) {
  .thumbnail-carousel img {
    height: 45px;
    max-width: 80px;
  }
}
     