/* Approved relief-pendant artwork occupies two cells in the second row on page three. */
.catalog-list > .catalog-terrain-card {
  grid-column: 1 / span 2;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  min-width: 0;
  color: #15161a;
  text-decoration: none;
}
/* An appended page follows earlier pages instead of claiming their second row. */
.catalog-list > .catalog-terrain-card--append { grid-row: auto; }
.catalog-terrain-card picture,
.catalog-terrain-card img {
  display: block;
  width: 100%;
}
.catalog-terrain-card img {
  height: auto;
  aspect-ratio: 1641 / 959;
}
.catalog-terrain-card__media {
  overflow: hidden;
}
.catalog-terrain-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 18px;
  min-height: 44px;
  max-width: calc(100% - 24px);
  margin-top: 16px;
  padding: 10px 24px;
  border: 1px solid #15161a;
  color: #15161a;
  font: 500 14px/22px "Tektur", sans-serif;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.catalog-terrain-card:hover .catalog-terrain-card__button {
  background: #15161a;
  color: #fff;
}
.catalog-terrain-card:focus-visible {
  outline: 2px solid #15161a;
  outline-offset: 4px;
}
@media (min-width: 551px) {
  /* A double-width cell shares the 5:6 photo height of one neighboring card. */
  .catalog-terrain-card__media { height: calc((100cqw - 24px) * .6); }
  .catalog-terrain-card__media > img { height: 100%; object-fit: cover; }
}
@media (min-width: 551px) and (max-width: 1023px) {
  .catalog-terrain-card__media { height: calc((100cqw - 12px) * .6); }
}
@media (max-width: 550px) {
  .catalog-terrain-card img { aspect-ratio: 1402 / 1122; }
}
