/* styles/myCollections.css */

#libraryGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

/* Base Brick - Complete Reset */
.lib-brick {
  height: 72px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  
  /* Reset Browser/Bootstrap Defaults */
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.lib-brick:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 2;
  border-color: #b08a48; /* Highlight Color */
}

/* IMAGE TILES (Fixed 72px) */
.lib-brick--img {
  width: 72px;
  flex: 0 0 72px; 
}

.lib-brick--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lib-label-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background-color: rgba(0,0,0,0.6);
  color: #ffffff;
  font-size: 9px;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TEXT BRICKS (Variable Width) */
.lib-brick--text {
  flex: 1 0 auto;   
  min-width: 100px; 
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

/* Color Coding */
.lib-brick--text.type-kitchen { border-left: 4px solid #ffc107; }
.lib-brick--text.type-apothecary { border-left: 4px solid #198754; }
.lib-brick--text.type-exhibition { border-left: 4px solid #0dcaf0; }

.lib-brick-title {
  font-size: 11px;
  font-weight: 700;
  color: #333333;
  line-height: 1.2;
  text-align: center;
  
  /* ✅ FIXED: Added standard property to clear error */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lib-brick-sub {
  font-size: 8px;
  color: #888888;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.collections-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}