.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px;
  
    text-align: center;
    /* background: rgba(0, 0, 0, 0.9); */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
  
  }
  
  #lightbox-image {
    max-width: 80%;
    max-height: 80%;
  
  }
  
  
  
  /* .close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  
  } */
  
  .prev,
  .next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
  }
  
  .prev {
    left: 0;
  }
  
  .next {
    right: 0;
  }
  
  /* .blur {
    filter: blur(5px);
  } */

img:hover + #delete,#delete:hover{
    opacity:1;
    background-color: #d5d5d5;
}
#delete:hover{
    background-color: rgb(211, 87, 87);
    /* scale: 1.1;  A bit blurry*/ 
}
#delete{
    opacity:0;
    transition: 0.3s;
    margin: 8px;
}

img:hover + #reupload,#reupload:hover{
  opacity:1;
  background-color: #a6ffb2;
}
#reupload{
  opacity:0;
  transition: 0.3s;
}


/* Carousel */
#carouselContainer{
  display: none;
  height: 100%;
  position: fixed;
  z-index: 999;
  /* padding: 20px; */
  padding-top: 20px;
  
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  object-fit: contain;
 }
  
.carousel-indicators {
  list-style: none; /* Remove default list styling */
  background-color: #31363F;
  opacity: 0.6;
  border-radius: 20px;
}
.carousel-indicators li:hover{
  opacity: 1;
}


#carouselImg {
  /* max-height: 100%;  Limit maximum width */
  height: 100%;
  display: block;
  margin: auto; /* Center horizontally */
  /*object-fit: contain; /* Maintain aspect ratio and fit within container */
}



#carouselContainer .carousel-control-prev,
#carouselContainer .carousel-control-next {
  width: 10%;
  font-size: 2rem;
  color: #fff;
  position: fixed;
  transition: 0.3s;
  border-radius: 20px;
  max-height: 100%;
}
#carouselContainer .carousel-control-prev:hover,
#carouselContainer .carousel-control-next:hover{
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}
.carousel-control-prev{
  left: 0;
}
.carousel-control-next{
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none; /* Hide the default icon */
}

.carousel-control-prev {
  left: -5%; /* Adjust the position */
}

.carousel-control-next {
  right: -5%; /* Adjust the position */
}

.carousel-inner {
  display: flex;
  align-items: center;
  height: 80%;
  /* height: 70vh; */
  margin-top: 14%;
  margin-bottom: 6%;
  max-height: 100%;

}

.carousel-item {
  height: 100%;
  margin-top: 10%;
}

.carousel-slide {
  padding-top: 2%;
}

.close{
  position: fixed;
  top: 100px;
  right: -50px;
  z-index: 1000;
  font-size: 30px;
  cursor: pointer;
}

.blur {
  filter: blur(10px);
}


@media only screen and (max-width: 768px) {
  #carouselContainer{
    display: none;
    width: 50%;
    height: auto;
    position: fixed;
    z-index: 999;

    padding-top: 20px;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    object-fit: contain;
   }

   #carouselImg {

    width: 20%;
    height: auto;
    display: block;
    margin: auto; 

  }

  .carousel-inner {
    /* display: flex; */
    align-items: center;
    width: 80%;
  
 
    margin-top: 14%;
    margin-bottom: 6%;
    max-height: 100%;
  
  }
  
  .carousel-item {
    width: 100%;
    height:auto;

    margin-top: 10%;
  }
  
  .carousel-slide {
    padding-top: 2%;
  }

}


