/*
 * ARTMKE 4.4.2 — Places Polish
 *
 * The generic archive stylesheet still contains the legacy two-column
 * results/map layout. Places no longer renders that map column, so the late
 * archive rules compressed the directory into the left half of the canvas.
 * Keep this file last in the cascade and scope every correction to Places.
 */

.places-archive .artmke-places-discovery,
.places-archive .institution-finder {
  width: min(calc(100% - 48px), 1440px);
  max-width: none;
  margin-inline: auto;
}

.places-archive .institution-finder {
  display: block;
  padding-top: 24px;
}

.places-archive .institution-finder__results {
  width: 100%;
  max-width: none;
}

.places-archive .institution-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 22px);
}

.places-archive .institution-card {
  min-width: 0;
  border-radius: 0;
  box-shadow: none;
}

.places-archive .institution-card__image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.places-archive .institution-card__body {
  min-height: 136px;
  padding: 16px 16px 14px;
}

.places-archive .institution-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.18rem, 1.25vw, 1.55rem);
  line-height: 1.04;
}

.places-archive .institution-card__footer {
  padding-top: 12px;
}

.places-archive .institution-pagination {
  margin-top: 36px;
}

@media (max-width: 1180px) {
  .places-archive .institution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .places-archive .institution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .places-archive .artmke-places-discovery,
  .places-archive .institution-finder {
    width: min(calc(100% - 28px), 1440px);
  }

  .places-archive .institution-grid {
    grid-template-columns: 1fr;
  }

  .places-archive .institution-card__body {
    min-height: 126px;
  }
}
