/* showcase: mosaic of finished work (ref 78). Tiles sit close together;
   the first fills a 2 x 2 cell on desktop. */
.s-showcase__grid { display: grid; gap: var(--space-1); }
.s-showcase__grid > li { display: flex; }
.s-showcase__tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  overflow: hidden;
}
.s-showcase__tile .media { border-radius: 0; flex: 1 1 auto; }
.s-showcase__tile img { object-position: top left; transition: transform var(--t-fast) var(--ease); }
.s-showcase__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
}
.s-showcase__bar h3 { color: inherit; font-family: var(--font-body); font-size: var(--fs-small); font-weight: var(--fw-ui); letter-spacing: var(--ls-label); line-height: var(--lh-small); }
.s-showcase__bar p { font-size: var(--fs-small); line-height: var(--lh-small); color: inherit; opacity: 1; }
a.s-showcase__tile:hover .s-showcase__bar { background: var(--surface-quiet); color: var(--fg); }
a.s-showcase__tile:hover img { transform: scale(1.03); }
@media (min-width: 640px) {
  .s-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-showcase__grid > li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .s-showcase__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-showcase__grid > li:first-child { grid-column: span 2; grid-row: span 2; }
  /* the large tile: the photo fills what the 2 x 2 cell leaves above the title bar */
  .s-showcase__grid > li:first-child .media { aspect-ratio: auto; flex: 1 1 0; min-height: 240px; }
  .s-showcase__grid > li:first-child .media img { position: absolute; inset: 0; }
}
