/*****************************************/
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  align-content: center;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #ffffff;
  background-color: #404040;
  padding: 10px 0px;
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 1rem;
}

/* Caption Text */
#caption {
  text-align: center;
  color: white;
  padding: 10px;
  font-size: 16px;
}

/* Close Button */
.close {
  color: var(--accent-color-strong);
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 40px;
  transition: 0.3s;
  cursor: pointer;
}

/* Style for the navigation buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  padding: 16px;
  color: var(--accent-color-strong);
  font-size: 24px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 0;
  transform: translateY(-50%);
  border-radius: 0 20px 20px 0;
}

.next {
  right: 0;
  transform: translateY(-50%);
  border-radius: 20px 0px 0px 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal_img_cntr {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-weight: 900;
  background-color: rgba(225, 225, 225, 0.427);
  color: #fefefe;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 7px 2px rgba(0, 0, 0, 0.2);
}

/*****************************************/
