/*
 * infection.miconferences.com tweaks for the CDBMS past-edition sections (02-12-2026, from nursingcongress.com).
 * Loaded after home-gallery-new.css / past-gallery.css (copied from neurocare).
 */

/* Less space above the Past Editions band (home-gallery-new.css adds an 80px top margin) */
.past-gallery-section-home.pe-home { margin-top: 0; }
/* Same 40px gap whatever section sits right above the band (journal, speakers, ...) */
*:has(+ .past-gallery-section-home.pe-home) { padding-bottom: 40px !important; margin-bottom: 0 !important; }


/* home-styles.css hides every .dropdown-content (opacity 0, max-height 0);
   show the Speakers / Committee / Poster lists when opened. */
.pe-home .dropdown-content.active {
  display: block;
  opacity: 1;
  max-height: 18rem;
  overflow-y: auto;
}

/* Event Gallery: equal columns (a long caption or the button must not widen one),
   and the "View Full Gallery" button on its own row */
.pe-home .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 769px) { .pe-home .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pe-home .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pe-home .gallery-grid > .text-center { grid-column: 1 / -1; }
/* A wide tile spans 2 columns: give it half the height so it stays one row tall */
@media (min-width: 769px) { .pe-home .gallery-item-wide::before { padding-bottom: 50%; } }


/* Letter avatar for a testimonial without a photo */
.pe-home .pe-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f47320, #2E3273);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.pe-home .toggle-text {
  color: #f47320;
  font-size: 0.85em;
  margin-left: 4px;
  cursor: pointer;
  text-decoration: none;
}
.pe-home .toggle-text:hover { text-decoration: underline; }

/* Report page (/2026): nursing brand on the primary accents */
.past-gallery-sec .report-badge { background: #ffedd5; color: #9a3412; }
.past-gallery-sec .stat-card-blue .stat-number { color: #f47320; }
.past-gallery-sec .download-button-blue { background: linear-gradient(90deg, #f47320, #2E3273); }
.past-gallery-sec .pe-gallery-note { margin-top: .75rem; color: #64748b; font-size: .875rem; text-align: center; }

/* Photo Gallery alone (no videos yet): centre it instead of leaving the right half empty */
@media (min-width: 768px) {
  .past-gallery-sec .media-grid > .media-section:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
  }
}
