/* Gallery Section Styles */

/* Horizontal Scrolling Gallery */
.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 20px 0;
}

.gallery-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.gallery-scroll-inner {
  display: inline-flex;
  animation: scroll 60s linear infinite;
}

.gallery-scroll.paused .gallery-scroll-inner {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 auto;
  margin-right: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: var(--gallery-w, 300px);
  height: var(--gallery-h, 200px);
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-item img {
    --gallery-w: 250px;
    --gallery-h: 170px;
  }
}

/* Animation for the auto-scrolling */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Use variables to better match responsive sizes; defaults keep current behavior */
    transform: translateX(calc(var(--gallery-w, 300px) * -7 - 20px * 7));
  }
}

/* Event Image Grid Section */
.event-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.event-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1/1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-image-wrapper:hover .event-image {
  transform: scale(1.1);
}

.event-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.event-image-wrapper:hover .event-image-overlay {
  transform: translateY(0);
}

.event-image-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.event-image-category {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Event category filters */
.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.gallery-filter-button {
  padding: 8px 16px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid #6d28d9;
  color: #a78bfa;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-button:hover, 
.gallery-filter-button.active {
  background: linear-gradient(to right, #6d28d9, #8b5cf6);
  color: white;
}
