.info-panel {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  width: 360px;
  max-height: 600px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #ddd;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  border-radius: 12px;
  font-family: "Lora", serif;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Close button */
.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.close-button:hover {
  color: #111;
  transform: scale(1.15);
}

/* Images inside the panel */
#panel-content img {
  display: block;
  max-width: 250px; /* Set a comfortable max width */
  width: 90%;
  height: auto;
  margin: 14px auto; /* Top/bottom spacing + center horizontally */
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #ccc;
  background-color: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Bold labels */
#panel-content b {
  display: block;
  margin-top: 8px;
  color: #444;
}

/* Header info block */
.info-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.layer-info,
.block-info,
.plot-info {
  margin-bottom: 4px;
}

/* Memory quote */
.memory-text {
  text-align: center;
  font-family: "Georgia", serif;
  font-size: 15.5px;
  font-style: italic;
  color: #666;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  letter-spacing: 0.4px;
}

.columbarium-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all entries horizontally */
  gap: 16px;
  margin-top: 10px;
}

.columbarium-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* Center the text inside */
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fdfdfd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 280px; /* limits entry width */
  -webkit-overflow-scrolling: touch; /* smooth mobile scrolling */
}

.columbarium-entry img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ccc;
  margin-bottom: 10px;
}

/* Grave Image - keep this centered too */
.grave-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  border: 3px solid #ccc;
  margin: 10px auto 14px;
  display: block;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.columbarium-entry p {
  margin: 3px 0;
  font-size: 13.5px;
  color: #444;
  text-align: center;
}

.columbarium-entry p strong {
  color: #222;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.image-nav-wrapper {
  position: relative;
  display: inline-block;
}

.info-image {
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  border: 3px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Navigation buttons overlay */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.nav-button:hover {
  background-color: rgba(240, 240, 240, 1);
}

/* Button positions */
.left-button {
  left: -16px;
}

.right-button {
  right: -16px;
}
.info-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0;
}

#info-panel i {
  display: block;
  text-align: center;
  font-style: italic;
  font-size: 14px;
}

.grave-image {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}
