/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scrolling if needed */
  background-color: rgba(0, 0, 0, 0.317); /* Black background with opacity */
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.modal-content {
  max-width: 80%; /* Maximum width for the image */
  max-height: 80%; /* Maximum height for the image */
  margin: auto;
  display: block;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Forward and Backward Buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #202020 !important;
  background-color: #eee !important;
  font-weight: bold;
  font-size: 24px;
  transition: 0.2s ease !important;
  border-radius: 50px;
  user-select: none;
  text-decoration: none;
}

/* Position the "next button" to the right */
.next {
  right: 25%;
}
.prev {
  left: 25%;
}

/* On hover, add a slight opacity to the buttons */
.prev:hover,
.next:hover {
  background-color: #202020 !important;
  color: #eee !important;
}
