/* ============================================================
   locd.imagetile – Mosaic Image Tile styles
   ============================================================ */

/* --- Tile preview (inside Mosaic page) -------------------- */

.my-image-tile {
  display: block;
  width: 100%;
}

.my-image-tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.my-image-tile-figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.my-image-tile-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.my-image-tile-link:hover .my-image-tile-img {
  opacity: 0.85;
}

.my-image-tile-caption {
  display: block;
  padding: 0.4em 0.6em;
  font-size: 0.875em;
  color: #555;
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

/* Descriptive text from the Image object */
.my-image-tile-text {
  margin-top: 0.75em;
  line-height: 1.5;
}

/* Keywords from the Image object */
.my-image-tile-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  list-style: none;
  margin: 0.75em 0 0;
  padding: 0;
}

.my-image-tile-subject {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.8em;
  background: #e8f0fe;
  color: #1a56db;
  border-radius: 3px;
}

/* Keywords shown at the bottom of Page (Document) objects ---------- */
.my-page-keywords {
  margin: 1.5em 0 0.5em;
}

.my-page-keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-page-keywords li {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.5;
  background: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 0.2rem;
  text-align: center;
  white-space: nowrap;
}

/* Placeholder shown in edit mode when no image is selected */
.my-image-tile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f0f0f0;
  border: 2px dashed #bbb;
  color: #888;
  font-size: 0.9em;
  border-radius: 4px;
}
