/*
 * Styles for the Exhibitions page.
 *
 * This sheet builds upon the shared menu.css definitions to maintain
 * consistency with the rest of the site.  It defines layouts for the
 * upcoming and past exhibition sections and the card presentation of
 * individual exhibitions.  Colours and spacing inherit from
 * CSS variables declared in menu.css.
 */

body {
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, sans-serif;
  line-height: 1.5;
}

/* Header layout: positions logo on the left and title centered */
header.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--gutter);
  position: relative;
}

header.site-header .logo {
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--text);
}

header.site-header h1 {
  grid-column: 2;
  justify-self: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

/* Overall content wrapper */
.exhibitions-content {
  margin-top: 40px;
  padding: 0 var(--gutter);
}

/* Upcoming section */
.upcoming-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-upcoming {
  font-style: italic;
  color: #666;
  margin-bottom: 40px;
}

/* Past section */
.past-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Grid of past exhibitions */
.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 20px;
  margin-bottom: 60px;
}

.exhibition-card {
  border: 1px solid var(--text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

/* Title and year on the same line */
.exhibition-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: bold;
}

.exhibition-venue {
  margin-bottom: 20px;
  font-size: 1rem;
}

.exhibition-dates {
  font-size: 0.9rem;
  color: #333;
  margin-top: auto;
}

@media (max-width: 600px) {
  .past-grid {
    gap: 30px 15px;
  }
  .exhibition-card {
    min-height: auto;
  }
  header.site-header h1 {
    font-size: 1.5rem;
  }
}