/* ===========================
   📅 Event Section Styles
   =========================== */
.event-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  border-left: 4px solid #7b9acc;
  max-width: 1000px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.event-header h4 {
  color: #7b9acc;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-date {
  background: rgba(123, 154, 204, 0.2);
  color: #a3c2e6;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.event-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #ccccdc;
}

.event-detail i {
  color: #7b9acc;
  width: 16px;
}

/* ===========================
   🖼 Gallery Styles
   =========================== */
.gallery-preview {
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===========================
   🖼 Gallery Modal
   =========================== */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1200;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #bbb;
  background: rgba(0, 0, 0, 0.7);
}

.mySlides {
  padding-top: 10px;
  display: none;
  text-align: center;
  max-width: 60%;
}

.mySlides.active {
  display: block;
}

.mySlides img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 2rem;
  padding: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1200;
}

.next {
  right: 20px;
}

.prev {
  left: 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.thumbnail {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border: 2px solid #7b9acc;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  .close {
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  .mySlides img {
    max-height: 60vh;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  .close {
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
  .mySlides img {
    max-height: 50vh;
  }
}
