/* PBC Swiss — modular artifact grid (6-up at desktop) */

.mod-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 380px;
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.mod {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  transition: background .15s;
  overflow: hidden;
}
.mod:hover { background: #fafafa; }
.mod.span2 { grid-column: span 2; }

.mod .n {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.mod h4 {
  font-size: var(--t-h4);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}
.mod .meta {
  font-size: var(--t-label);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.mod-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
  min-height: 0;
}
.mod-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12));
}

/* Filled variant — full-bleed image with header/footer strips */
.mod.fill { padding: 0; display: flex; flex-direction: column; }
.mod.fill .top {
  padding: 14px 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}
.mod.fill .img {
  flex: 1;
  background: #f3f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  min-height: 0;
}
.mod.fill .img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .15));
}
.mod.fill .bot {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  min-height: 74px;
}
.mod.fill .bot h4 { font-size: var(--t-h4); line-height: 1.25; }
.mod.fill .bot .meta { margin-top: 4px; }

/* Category cell variant */
.mod.cat { padding: 22px; }
.mod.cat .swatch { width: 34px; height: 34px; border: 1px solid var(--ink); }
.mod.cat h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .mod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .mod.span2 { grid-column: span 2; }
}
