.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.lightbox:target {
  display: flex !important;
}

.lightbox-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centered close button ABOVE the image */
.close-top {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: white;
  font-size: 1.0rem;
  border: 1px solid #ffffff;
  border-radius: 5px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
}

.lightbox-inner img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

/* Download link under the image */
.download-link {
  display: inline-block;
  margin-top: 12px;
  color: white;
  text-decoration: underline;
  font-size: 1rem;
}

/* Remove the old .close button behavior entirely */
.lightbox .close {
  display: none;
}

.thumbnail-border {
  border: 1px solid #000 !important;
  border-radius: 12px;
}

.thumbnail-border {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 15px;
  
  /* Center */
  display: block;
  margin-left: auto;
  margin-right: auto;

  margin-top: 32px;
  margin-bottom: 32px;

  /* Shadow */
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.1),
    3px 3px 2px rgba(0,0,0,0.2);

  /* Background for contrast (optional but recommended) */
  background: #fff;

  /* Smooth edges */
  overflow: hidden;

  /* Gentle lift on hover (nice but subtle) */
  /* transition: box-shadow 0.2s ease, transform 0.2s ease; */
}
