/* Style for the lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  /* Added for vertical centering */
  justify-content: center;
  /* Added for horizontal centering */
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox img {
  max-height: 80%;
  max-width: 80%;
  /*  margin-top: 10%;*/
  width: auto;
  height: auto;
  border-radius: 12px;
}

.lightbox:target {
  display: flex;
}

.close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 64px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

a.lightbox,
a.lightbox:hover {
  background-color: rgba(0, 0, 0, 0.9);
}