/*
 Theme Name:   Bridge Child
 Template:     bridge
 Version:      1.0
 Description:  Child theme for Bridge
 Author:       Your Name
*/


/* ==========================================================
   EXHIBITS (fixed height, aligned buttons, centered images)
========================================================== */
.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
  align-items: stretch;
  justify-content: center; /* centers partial rows */
}

/* === Exhibit Cards === */
.exhibit-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;

  /* 🔧 FIX: match Events behavior */
  justify-content: flex-start;

  text-align: center;
  height: 500px; /* consistent card height */
  overflow: hidden;
  box-sizing: border-box;
}

/* Center everything inside cards */
.exhibit-card,
.exhibit-card * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === Thumbnail Area (consistent size + centered) === */
.exhibit-card img.exhibit-thumbnail {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-bottom: 15px;
  display: block;
}

/* === Title === */
.exhibit-title {
  font-size: 20px;
  margin: 10px 0 5px;
}

@media (max-width: 768px) {
  .exhibit-title {
    font-size: 13px;
  }
}

/* === Dates === */
.exhibit-dates {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 5px;
}

/* === Excerpt — below dates, above button === */
.exhibit-card .exhibit-excerpt {
  font-size: 0.95rem !important;
  line-height: 1.4;
  color: #A9A9A9;
  margin-top: 5px;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  white-space: normal;
  max-height: 2.8em;
}

.exhibit-card p,
.exhibit-card .wpb_wrapper p {
  font-size: 0.95rem !important;
  line-height: 1.4;
}


/* === Button === */
.exhibit-button {
  display: inline-block;
  background: #A9A9A9;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 0;
  transition: background 0.3s;
  width: 140px;

  margin-top: auto;
  margin-top: 10px; /* ⬅️ actual spacing below excerpt */
}


/* === Force Exhibit Button text color === */
.exhibit-button,
.exhibit-button:visited,
.exhibit-button:hover,
.exhibit-button:focus,
.exhibit-button:active {
  color: #fff !important;
  text-decoration: none !important;
}



/* === Past Exhibits Button (Archive Link) === */
.past-exhibits-link {
  text-align: center;
  margin-top: 40px;
}

.past-exhibits-link a {
  display: inline-block;
  background: #A9A9A9;
  color: #fff !important;
  text-decoration: none !important;
  padding: 15px 24px; /* 1.5× original (10px → 15px, 16px → 24px) */
  font-size: 1.425rem; /* 1.5× original (0.95rem → 1.425rem) */
  border-radius: 0;
  transition: background 0.3s;
  min-width: 210px; /* optional: keeps button proportionally wider */
  text-align: center;
}

.past-exhibits-link a:hover,
.past-exhibits-link a:focus,
.past-exhibits-link a:active {
  background: #A9A9A9;
  color: #fff !important;
}

@media (max-width: 768px) {
  .past-exhibits-link a {
    font-size: 1.1rem; /* scaled proportionally for mobile */
    padding: 12px 18px; /* scaled proportionally */
    min-width: auto;
  }
}






/* ==========================================================
   EVENTS (rebuilt to match Exhibits — shorter, centered)
========================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
  align-items: stretch;
}

/* === Event Cards === */
.event-card {
  background: #fff;
  border: none !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: px; /* fixed overall card height (shorter) */
  overflow: hidden;
}

/* Center content globally */
.event-card,
.event-card * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === Thumbnail — auto shrink and centered === */
.event-card img {
  width: auto;
  max-width: 100%;
  max-height: 200px; /* ⬅️ shorter image area */
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-bottom: 15px;
  display: block;
}

/* === Title === */
.event-title {
  font-size: 20px;
  margin: 15px 0 10px;
}
@media (max-width: 768px) {
  .event-title {
    font-size: 13px;
  }
}

/* === Dates === */
.event-dates {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

/* === Button (same as exhibits) === */
.event-button {
  display: inline-block;
  background: #A9A9A9;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 0;
  transition: background 0.3s;
  width: 140px; /* match exhibit width */
  margin-top: 0;
}
.event-button:hover {
  background: #A9A9A9;
  color: #000;
}

/* === Mobile Tweaks === */
@media (max-width: 768px) {
  .event-card {
    height: auto;
  }
  .event-card img {
    max-height: 180px;
  }
  .event-button {
    font-size: 13px;
    padding: 8px 14px;
    width: auto;
  }
}




