/* Auto-sizing Modal for First Exhibit */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffcc66;
  border: 3px solid #000;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: normal;
  color: #e63500;
  cursor: pointer;
  background: #ffcc66;
  z-index: 10000;
}

.modal-close:hover {
  font-weight: bold;
}

.modal-image {
  max-width: 100%;
  height: auto;
  border: 3px solid #000;
  display: block;
  margin: 0 auto;
}

.modal-text {
  text-align: center;
  color: #000;
  margin-bottom: 32px;
}

.modal-text a {
  color: #e63500;
  font-weight: bold;
}
