.event-detail {
  max-width: 1150px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-title {
  margin-bottom: 20px;
  color: #3f4cf0;
  text-align: center;
}

.event-main-photo {
  width: 80%;
  max-height: 300px;     /* 限制最大高度 */
  object-fit: cover;     /* 自动裁切，保持美观 */
  border-radius: 12px;
  margin-bottom: 20px;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.event-description {
  margin-bottom: 30px;
  text-align: justify;
}

.gallery-heading {
  margin-bottom: 15px;
  color: #3f4cf0;
}

.event-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-gallery img {
  width: calc(25% - 12px);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.event-gallery img:hover {
  transform: scale(1.05);
}

.back-arrow {
    display: inline-block;
    margin: 20px 20px 120px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.back-arrow:hover {
    color: #3f4cf0; /* or your theme color */
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: white;
    cursor: pointer;
    user-select: none;
}

.lightbox .close {
    top: 20px;
    right: 40px;
}

.lightbox .prev {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.lightbox .next {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:hover {
    color: #3f4cf0;
}
