.poster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 34px;
}

.poster-nav a,
.poster-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.poster-nav a:hover,
.poster-card__link:hover {
  background: #115e59;
  color: #fff;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}

.poster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 33, 45, 0.12);
  border-radius: 18px;
  background: #fff;
}

.poster-card__image {
  display: grid;
  place-items: center;
  flex: none;
  height: 230px;
  overflow: hidden;
  padding: 12px;
  background: #f4f6f8;
}

.poster-card__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.poster-card h3 {
  margin: 18px 18px 12px;
  font-size: 1rem;
  line-height: 1.55;
}

.poster-card__link {
  align-self: flex-start;
  margin: auto 18px 18px;
}

.exhibit-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 40px;
}

.exhibit-gallery figure {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(19, 33, 45, 0.12);
  border-radius: 12px;
  background: #fff;
}

.exhibit-gallery a {
  display: grid;
  place-items: center;
  height: 130px;
  background: #f4f6f8;
}

.exhibit-gallery img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.exhibit-gallery figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
}

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

  .exhibit-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .exhibit-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
