/* Homepage card component inside the existing archive grid. */
.gm-catalog {
  --pale: #f5f9fc;
  --blue: #4988f3;
  --shadow: 0 0 21px rgba(217, 224, 234, .55);
  color: #000;
}
.gm-catalog .surface {
  position: relative;
  border: 0 solid transparent;
  border-radius: var(--radius, 20px);
  isolation: isolate;
}
.gm-catalog .surface > .surface-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.gm-catalog .surface:not(img) > :not(.surface-contour) { z-index: 1; }
.gm-catalog .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  vertical-align: middle;
  pointer-events: none;
}
.gm-catalog .mushroom-card {
  width: 100%;
  min-width: 0;
  flex: none;
  color: inherit;
  text-decoration: none;
}
body.gm-category-fonts .gm-catalog .mushroom-copy h3 {
  font-family: "Graphik Compact", Arial, sans-serif;
  font-weight: 400;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Round the actual photo rather than only the larger letterboxed frame. */
.gm-catalog .mushroom-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  max-width: calc(100% - 20px);
  height: auto;
  aspect-ratio: 1;
  align-self: center;
}
.gm-catalog .mushroom-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: none;
  object-fit: contain;
}

/* Figma: fixed square photo, bottom text group; row height follows its fullest card. */
.gm-catalog .mushroom-card {
  height: 100%;
  justify-content: space-between;
  gap: 0;
  margin: 0;
}
.gm-catalog .mushroom-copy {
  flex: none;
  margin-top: 10px;
}
.gm-catalog .mushroom-copy .more { margin: 0; }

.gm-catalog .card-badges:empty { display: none; }

@media (max-width: 620px) {
  .gm-catalog .mushroom-image { width: 150px; max-width: calc(100% - 16px); }
  .gm-catalog .mushroom-copy { margin-top: 12px; }
}
