:root {
  --primary-blue: #1e40af;
  --light-blue: #3b82f6;
  --accent-gold: #d4af37;
  --text-dark: #000000;
  --text-light: #64748b;
}

/* Revival Section - New Layout */
.revival-section {
  background: #ffffff;
  position: relative;
}

/* Grid Layout */
.revival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0 20px;
}

/* Event Card - Minimalist Design */
.event-card {
  background: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.event-card:hover {
  background: #f5f5f5;
  transform: scale(1.02);
}

/* Image Section */
.event-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #fef3c7);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.image-count {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Content Section */
.event-content {
  padding: 32px;
}

.event-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: var(--accent-gold);
  font-size: 0.875rem;
}

.event-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.event-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.view-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--text-dark);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.938rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.view-gallery-btn:hover {
  background: var(--primary-blue);
  gap: 14px;
}

.view-gallery-btn i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.event-card:hover .view-gallery-btn i {
  transform: translateX(4px);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

/* Modal Header */
.modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.modal-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.938rem;
  margin-top: 4px;
}

.close-modal {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Gallery Container */
.gallery-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Main Image */
.main-image-wrapper {
  max-width: 90%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.main-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 40px;
}

.gallery-nav.next {
  right: 40px;
}

/* Thumbnail Strip */
.thumbnail-strip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  max-width: 90%;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

/* Image Counter */
.image-counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 200px);
  color: white;
  font-size: 0.938rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
  .revival-section {
    padding: 80px 0;
  }

  .revival-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-content {
    padding: 24px;
  }

  .modal-header {
    padding: 20px;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
  }

  .gallery-nav.prev {
    left: 20px;
  }

  .gallery-nav.next {
    right: 20px;
  }

  .thumbnail-strip {
    bottom: 20px;
    padding: 12px 16px;
    gap: 8px;
  }

  .thumbnail {
    width: 48px;
    height: 48px;
  }

  .main-image {
    max-height: 60vh;
  }
}
