.event-section-title {
  margin-top: 2em;
  margin-bottom: 1em;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em; /* Adjust spacing as needed */
}

.event-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  align-items: stretch;
  max-width: 700px;
  min-height: 180px; /* Or adjust as needed */
}

.event-poster {
  flex: 0 0 180px; /* Fixed base width, doesn't shrink or grow */
  display: flex;
  align-items: stretch;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
    min-height: unset;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  }
  .event-poster {
    flex-basis: auto;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
  }
  .event-details {
    padding: 1em 0.8em;
    font-size: 1em;
  }
  .event-link {
    width: 100%;
    display: inline-block;
    text-align: center;
    font-size: 1.2em;
    margin-top: 0.8em;
  }
}

/* Allow .event-card to expand vertically as details grow */
.event-details {
  padding: 1.5em;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.event-link {
  margin-top: 1em;
  color: #1976d2;
  text-decoration: underline;
  font-weight: bold;
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: nowrap;
}
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
    gap: 0.5em;
  }
  .site-nav {
    width: 100%;
    margin-left: 0;
  }
  .site-logo {
    height: 36px;
  }
}

.logo-link,
.site-title,
.site-nav {
  display: inline-block;
  margin: 0; /* Ensure no margin stacking */
}

.site-logo {
  height: 64px;
  width: auto;
}

.site-nav {
  margin-left: auto; /* Pushes nav/page links to the right if desired */
}

@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

.lightbox-overlay {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.84);
}
.lightbox-overlay img {
  max-width: 94vw;
  max-height: 94vh;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0,0,0,0.70);
}
@media (max-width: 600px) {
  .lightbox-overlay img {
    max-width: 98vw;
    max-height: 70vh;
  }
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}
.gallery-thumb img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
  transition: transform 0.2s;
}
.gallery-thumb img:hover, .gallery-thumb img:active {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .image-gallery {
    gap: 0.5em;
  }
  .gallery-thumb img {
    width: 88px;
    height: 88px;
  }
}
