/* Events Page Styles */

#events-page {
  padding-top: 80px;
}

#events-page .page {
  max-width: 1200px;
  padding-top: 60px;
}

/* Page Title */
.page-title {
  font-family: 'Quantico', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #bb86fc;
  text-align: left;
  margin-bottom: 60px;
  letter-spacing: 2px;
}

/* Event Section */
.event {
  margin-bottom: 60px;
}

.event-header {
  margin-bottom: 20px;
}

.event-title {
  font-family: 'Quantico', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.event-date {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}

.event-description {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 900px;
}

/* Event Divider */
.event-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #bb86fc 0%, #333 50%, transparent 100%);
  margin: 60px 0;
}

/* Gallery Styles */
.gallery {
  margin-bottom: 40px;
}

.gallery-sizer,
.gallery-item {
  width: calc(33.333% - 10px);
}

.gallery-item--width2 {
  width: calc(66.666% - 5px);
}

.gallery-item {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.image-credits {
  font-size: 0.85rem;
  color: #888;
  text-align: right;
  margin-top: -40px;
  margin-bottom: -15px;
  margin-right: 1em;
  font-style: italic;
}

.image-credits a {
  font-weight: inherit;
  color: inherit;
  font-style: normal;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
  margin-top: 40px;
}

.testimonials h3 {
  font-family: 'Quantico', sans-serif;
  font-size: 1.4rem;
  color: #bb86fc;
  margin-bottom: 25px;
  font-weight: 500;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial {
  background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
  border: 1px solid #333;
  border-left: 3px solid #bb86fc;
  border-radius: 8px;
  padding: 25px;
  margin: 0;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.testimonial::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: #bb86fc;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 15px;
  line-height: 1;
}

.testimonial p {
  font-size: 1rem;
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial cite {
  display: block;
  font-style: normal;
}

.testimonial cite strong {
  display: block;
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 600;
}

.testimonial cite span {
  font-size: 0.85rem;
  color: #888;
}

/* Footer */
.footer {
  background: #121212;
  border-top: 1px solid #333;
  padding: 30px;
  margin-top: 40px;
}

.footer p {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .page-title {
    font-size: 2.5rem;
  }

  .gallery-sizer,
  .gallery-item {
    width: calc(50% - 5px);
  }

  .gallery-item--width2 {
    width: calc(100%);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .event-title {
    font-size: 1.5rem;
  }

  .event-description {
    font-size: 1rem;
  }

  .gallery-sizer,
  .gallery-item,
  .gallery-item--width2 {
    width: 100%;
  }

  .testimonial {
    padding: 20px;
  }

  .testimonials h3 {
    font-size: 1.2rem;
  }

  #events-page .page {
    padding: 40px 20px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 15px;
  text-align: center;
  max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #bb86fc;
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 3rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

.gallery-item img {
  cursor: zoom-in;
}

/* Hide images until loaded */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.loaded {
  opacity: 1;
  transform: translateY(0);
}
