.ktgss-key-box {
  border-left: 4px solid #0f766e;
  background: #f0fdfa;
  padding: 14px 16px;
  margin: 1.25em 0;
  border-radius: 6px;
}

.ktgss-key-title,
.ktgss-source-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.ktgss-key-box p:last-child {
  margin-bottom: 0;
}

.ktgss-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 1.25em 0;
}

.ktgss-thumb-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.ktgss-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.ktgss-thumb:hover {
  transform: scale(1.02);
}

.ktgss-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.ktgss-lightbox.is-open {
  display: flex;
}

.ktgss-lightbox img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.ktgss-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #fff;
  color: #111827;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ktgss-sources {
  margin: 1.25em 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.ktgss-sources ul {
  margin: 0;
  padding-left: 18px;
}

.ktgss-sources li {
  margin: 4px 0;
}
