/* The Modal (background) */
.modal_gallery {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.767);
  backdrop-filter: blur(3px);

}

/* Modal Content */
.modal-content_gallery {
  position: relative;
  margin: auto;
  padding: 0;
  width: 80%;
  max-width: 1200px;
  top: 40px;
}

/* The close_gallery Button */
.close_gallery {
  color: white;
  position: absolute;
  right: 250px;
  font-size: 33px;
  font-weight: 500;
  top: 10px;
}

.close_gallery:hover,
.close_gallery:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white !important;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.8);

}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  /* background-color: black; */
  /* padding: 10px 16px; */
  color: white;
}

.play_butt,
.pause_butt {
  padding: 10px;
  border: none;
  color: white;
  background-color: #3c5495;
}

.play_butt:hover,
.pause_butt:hover,
.play_butt:focus,
.pause_butt:focus {
  background-color: #721c24;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Responsive images in modal */
.modal-content_gallery .mySlides {
  height: 80vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.numbertext {
  position: absolute;
  top: 10px;
  left: 100px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 3px;
}

/* Responsive design for modal */
@media screen and (max-width: 768px) {
  .modal-content_gallery {
    width: 90%;
  }
}

/* Responsive image */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}



/* updation */

@media screen and (max-width:1200px) {
  .close_gallery {
    right: 150px;
  }
}

@media screen and (max-width:1060px) {
  .numbertext {
    top: 0;
    left: 0;
  }
}
@media (min-width: 0px) and (max-width: 375px) {
  #caption {
    margin-top: -10px;
  }
  .close_gallery {
    top: 20px;
    right: 10px;
  }
}
@media (min-width:376px) and (max-width:767px) {
  .numbertext {
    top: 80px;
  }

  #caption {
    margin-top: -100px;
  }
  .close_gallery {
    top: 100px;
    right: 10px;
  }
  .prev,
  .next {
    margin-top: 20px;
  }
}

@media (min-width: 768px) and (max-width:1200px) {
  #caption {
    margin-top: 10px;
  }
  .prev,
  .next {
    margin-top: 0px;
  }
  .close_gallery {
    top: 25px;
    right: 50px;
  }
}
@media (min-width: 1200px) {
  .numbertext {
    left: 150px;
  }
  #caption {
    margin-top: 10px;
  }
  .prev{
    left: 140px;
  }
  .next{
    right: 140px;
  }
  .close_gallery {
    top: 0px;
    right: 300px;
  }
}
