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

/* Modal Content */
#modal-lightbox .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
}
#modal-lightbox .modal-content .top,
#modal-lightbox .modal-content .bottom{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}
#modal-lightbox .modal-content .bottom p{
  color: #FFF;
  font-size: 2rem;
  padding-top: var(--gap);
}

#modal-lightbox .modal-content .bottom p span{
	padding-right: calc(var(--gap) * 2);
}
#modal-lightbox .modal-content .bottom p span:last-child{
  padding-right: 0;
}
#modal-lightbox .modal-content .bottom .hashtags{
  align-items: center;
}

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

#modal-lightbox .slides .slide {
  display: none;
  height: 75vh;
  align-items: center;
  justify-content: center;    
}

#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;
  transition: all 0.3s ease-out;
}
#modal-lightbox .prev{
	margin-right: var(--gap);
}
#modal-lightbox .next{
	margin-left: var(--gap);
}

/* 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: var(--gap);
  right: var(--gap);
  color: white;  
  cursor: pointer;
  transition: all 0.3s ease-out;
}

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

@media (max-width: 1200px) {
}
@media (max-width: 820px) {
  #modal-lightbox .slides .slide img{
    height: auto;
  }
}
@media (max-width: 480px) {
  #modal-lightbox .slides .slide img{
    height: auto;
  }  
  #modal-lightbox .modal-content .bottom p{
    width: 100%;
    padding: 5px;
    font-size: 1.8rem;
    overflow-wrap: anywhere;
    text-align: center;
  }
}