/* =====================================================
   gallery.css — Masonry Gallery + Image Cards
   ===================================================== */

#gallery {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg1);
  position: relative;
}

#galleryInner {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 16px;
  align-items: flex-start;
  min-height: 100%;
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Image cards */
.img-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.img-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.img-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(10, 132, 255, 0.25);
}

.img-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.img-card-info { padding: 8px 10px; }

.img-card-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-card-dims {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* Drop overlay */
#dropOverlay {
  display: none;
  position: absolute;
  inset: 0;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-card);
  background: rgba(10, 132, 255, 0.06);
  z-index: 50;
  pointer-events: none;
}
#dropOverlay.active { display: block; }

/* Empty state */
#galleryEmpty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
#galleryEmpty svg { color: var(--bg3); }
#galleryEmpty p {
  font-size: 14px;
  color: var(--text3);
  text-align: center;
  line-height: 1.5;
}
