.event-content {
  color: #334155;
  line-height: 1.8;
  font-size: 1.1rem;
  width: 100%;
  overflow-x: hidden;
}

.event-content, .event-content * {
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  max-width: 100%;
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.event-content h2, .event-content h3 {
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.event-content a {
  color: #2563eb;
  text-decoration: underline;
}

/* Ensure quill tables/iframes look good if any */
.event-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  border-radius: 8px;
}

/* Event Gallery Carousel (Native CSS) */
.event-gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 1rem; /* Space for scrollbar if visible */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.event-gallery-carousel::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.event-gallery-carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.event-gallery-item {
  position: relative;
  scroll-snap-align: center;
  flex: 0 0 85%; /* Shows 85% of image, hinting there are more */
  max-width: 600px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .event-gallery-item {
    flex: 0 0 60%;
    height: 500px;
  }
}
