.gallery-intro {
  max-width: 780px;
  margin-bottom: 52px;
}

.gallery-intro h2 {
  margin: 0 0 16px;
  color: var(--green-900);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.gallery-intro p {
  color: var(--muted);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.photo-exhibit-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.photo-exhibit-card figure {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.photo-exhibit-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-exhibit-body {
  padding: 18px;
}

.photo-exhibit-details {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.photo-exhibit-details div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  align-items: center;
  min-height: 28px;
}

.photo-exhibit-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.photo-exhibit-details dd {
  margin: 0;
  color: var(--green-900);
  font-size: 0.88rem;
  font-weight: 800;
}

.contributor-badge {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.contributor-badge.community {
  color: #7d4b10;
  background: #fff0d7;
}

.photo-exhibit-card .button {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  justify-content: center;
}

.gallery-contribution {
  margin-top: 74px;
  padding: clamp(30px, 5vw, 52px);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.gallery-contribution h2 {
  margin: 0 0 14px;
  color: var(--green-900);
}

.gallery-contribution ul {
  margin: 24px 0 28px;
  padding-left: 1.4em;
  color: var(--muted);
}

.gallery-contribution li + li {
  margin-top: 8px;
}

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

@media (max-width: 620px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-exhibit-body {
    padding: 12px;
  }

  .photo-exhibit-details {
    gap: 8px;
    margin-bottom: 12px;
  }

  .photo-exhibit-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .photo-exhibit-details dt {
    font-size: 0.62rem;
  }

  .photo-exhibit-details dd {
    font-size: 0.76rem;
  }

  .contributor-badge {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .photo-exhibit-card .button {
    min-height: 38px;
    padding: 8px 6px;
    font-size: 0.72rem;
  }
}
