/* ============================================================
   conf-gallery.css
   Shared styles for the categorized conference image gallery
   (event photos / speakers / sponsors). Loaded by every page in
   pages/conferences/ alongside conf-gallery.js.

   NOTE: .conf-photos and .conf-sponsors/.conf-sponsor-track rules
   below intentionally match the per-page inline <style> blocks
   that already exist on each conference page, so visuals don't
   change for those two sections. If you ever consolidate the
   per-page inline <style> blocks into a shared stylesheet, remove
   the duplicate rules there and keep this file as the source of
   truth.
   ============================================================ */

.conf-gallery-section {
  margin-bottom: 8px;
}

.conf-gallery-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #163d28;
  padding-bottom: 10px;
  border-bottom: 2px solid #52b788;
  margin: 0 0 16px;
}
.conf-gallery-heading i { color: #52b788; font-size: .95rem; }

/* Hide a section entirely when its manifest category is empty,
   rather than showing an empty heading over nothing. */
.conf-gallery-section[hidden] { display: none; }

/* Event photo grid (visually identical to the legacy .conf-photos) */
.conf-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
.conf-photos a { display: block; border-radius: 8px; overflow: hidden; }
.conf-photos img {
  width: 100%; height: 140px; object-fit: cover;
  display: block; transition: transform .3s;
}
.conf-photos img:hover { transform: scale(1.04); }

/* Speakers — grid of cards with the person's name underneath,
   instead of an unlabeled thumbnail buried among everything else. */
.conf-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.conf-speaker-card {
  display: block;
  text-align: center;
  text-decoration: none;
}
.conf-speaker-card .conf-speaker-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; display: block; margin: 0 auto 8px;
  border: 2px solid #e0dbd2; transition: border-color .2s, transform .2s;
  background: #f0f7f2;
}
.conf-speaker-card:hover .conf-speaker-photo {
  border-color: #52b788; transform: translateY(-2px);
}
.conf-speaker-name {
  font-size: .82rem; font-weight: 600; color: #163d28; line-height: 1.3;
}

/* Sponsor ticker (visually identical to the legacy .conf-sponsors) */
.conf-sponsors {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 14px 0;
  border-top: 1px solid #e0dbd2;
  border-bottom: 1px solid #e0dbd2;
  margin: 28px 0;
}
.conf-sponsor-track {
  display: flex; gap: 24px; align-items: center;
  width: max-content;
  animation: confTick 22s linear infinite;
}
.conf-sponsor-track:hover { animation-play-state: paused; }
.conf-sponsor-track img {
  height: 48px; width: auto; object-fit: contain;
  border: 1px solid #e0dbd2; border-radius: 6px;
  padding: 6px 10px; background: #fff; flex-shrink: 0;
}
@keyframes confTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.conf-gallery-loading {
  font-size: .85rem; color: #5c6660; padding: 10px 0;
}

@media (max-width: 600px) {
  .conf-photos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .conf-photos img { height: 110px; }
  .conf-speakers { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
