/* Main + sidebar: Tailwind grid lg:grid-cols-4 gap-xl; Bootstrap row g-5 uses gutters, not CSS Grid gap. */
.mosaic-shelf-layout {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .mosaic-shelf-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .mosaic-shelf-layout > :first-child {
    grid-column: span 3 / span 3;
  }

  .mosaic-shelf-layout > :last-child {
    grid-column: span 1 / span 1;
  }
}

/* Card grid: Tailwind grid md:grid-cols-2 gap-lg; Bootstrap row g-4 differs from uniform gap. */
.mosaic-shelf-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mosaic-shelf-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .mosaic-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Main card image: Tailwind h-48 + object-cover (Bootstrap has no rem height on img). */
.mosaic-shelf-cover img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

/* Sidebar mini: Tailwind w-16 h-16 (4rem); flex-shrink + img fill. */
.sidebar-glimpse-thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-glimpse-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

