.thumbnail {
  width: 200px;
  cursor: pointer;
  transition: transform 0.2s; /* Optional: adds hover effect */
}

.thumbnail:hover {
  transform: scale(1.05);
}

/* The modal (hidden by default) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Black background with transparency */
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Modal content (the enlarged image) */
.modal-content {
  max-width: 80%;
  max-height: 70%;
  margin: auto;
  display: flex;
  object-fit: contain;
  background-color: transparent;
  position: relative;
}

/* Close button style */
.close-btn {
  position: absolute;
  top: 15%;
  right: 10%;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
}