body {
  background-color: #F9F7F5;
  color: #2B1B1B;
  font-family: 'Playfair Display', serif;
}
.table {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
th {
  background-color: #691929;
  color: #F2E7DE;
  font-weight: 600;
}
/* 🖼 Popover preview */
.popover {
  max-width: 120px;
  border: 1px solid rgba(105, 25, 41, 0.3);
  border-radius: 6px;
  padding: 4px;
}

.popover-image {
  width: 100px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  display: block;
  margin: auto;
  object-fit: cover;
}

/* 🪟 Modal viewer */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-direction: column;
}

.img-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  text-align: center;
}

.img-modal img {
  width: 800px;
  max-width: 90%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 36px;
  cursor: pointer;
}

/* 📸 Thumbnail ribbon */
.image-ribbon {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  overflow-x: auto;
  padding: 6px;
}

.ribbon-thumb {
  width: 60px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.ribbon-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Make sidebar filter labels visible */
.filter-label {
    font-weight: 600;
    color: #333 !important;
}

/* Thumbnail ribbon styling */
.selectable-thumb {
    border: 2px solid transparent;
    transition: 0.2s;
}
.selectable-thumb:hover {
    border-color: #691929;
}
.active-thumb {
    border-color: #691929 !important;
}
