.festivities-section {
  width: 100%;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

.festivities-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #111827;
}

.main-subtitle {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.gallery-block {
  margin-bottom: 4rem;
}

.gallery-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll linear infinite;
  animation-duration: var(--marquee-duration, 10000ms);
  animation-play-state: running;
}

.marquee-track {
  display: flex;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.card {
  width: 14rem;
  height: 20rem;
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #f5f5f5;
}

.card:hover {
  transform: scale(0.95);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.25);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay p {
  color: #fafafa;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.fade-left {
  left: 0;
  width: 5rem;
  background: linear-gradient(to right, #fafafa, transparent);
}

.fade-right {
  right: 0;
  width: 5rem;
  background: linear-gradient(to left, #fafafa, transparent);
}

@media (min-width: 768px) {
  .fade-left,
  .fade-right {
    width: 8rem;
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
