/* The Modal (background) */
#modal-lightbox {
  display: none;
  position: fixed;
  z-index: 99;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--color-p);
}

/* Modal Content */
#modal-lightbox .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;  
  
}

#modal-lightbox .slides {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 40px;
}

#modal-lightbox .slides .slide {
  display: none;
  height: 65vh;
  margin-bottom: 40px;
}

#modal-lightbox .slides .slide img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#modal-lightbox .dots{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap:  10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 100%;

}
#modal-lightbox .dots .dot{
    background-attachment: scroll;
    position: relative;
    background-position: 50% 50%;  
    width: 50px;
    height: 50px;
}

#modal-lightbox .dots .dot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Next & previous buttons */
#modal-lightbox .prev,
#modal-lightbox .next {
  color: #FFF;  
  transition: 0.3s ease;
  cursor: pointer;
}

/* On hover, add a black background color with a little bit see-through */
#modal-lightbox .prev:hover,
#modal-lightbox .next:hover {
  color: var(--color-primary);
}

#modal-lightbox .dot {
  opacity: 0.6;
}

#modal-lightbox .active,
#modal-lightbox .dot:hover {
  opacity: 1;
}

/* The Close Button */
#modal-lightbox .close {
  position: absolute;
  top: 0;
  right: 0;
  color: white;  
  cursor: pointer;
}

#modal-lightbox .close:hover,
#modal-lightbox .close:focus {
  color: var(--color-primary);    
}