/* Shared styles for Gallery overview, Year event cards, and Event detail pages */
.gallery-section {
  width: 100%;
  display: block;
  min-height: 70vh;
  padding: 80px 0;
}

.gallery-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 35px;
}

.gallery-section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #084656;
  margin: 0;
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #084656;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.gallery-back-btn:hover,
.gallery-back-btn:focus {
  background-color: #ff9800;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Event / Year Thumbnail Cards */
.event-card {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6eaee;
  box-shadow: 0 6px 20px rgba(8, 70, 86, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.event-card:hover,
.event-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(8, 70, 86, 0.16);
  border-color: #F0B01A;
}

.event-card-thumb {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #084656;
}

.event-card-thumb img,
.event-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-thumb img,
.event-card:hover .event-card-thumb video {
  transform: scale(1.05);
}

.event-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 70, 86, 0.88);
  color: #F0B01A;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-card-body {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #084656;
  margin: 0;
  line-height: 1.35;
}

.event-card-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdf4dc;
  color: #d98200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.event-card:hover .event-card-arrow {
  background: #F0B01A;
  color: #084656;
}

/* Individual Event Media Grid */
.gallery-media-item {
  margin-bottom: 28px;
}

.gallery-media-inner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  height: 288px;
}

.gallery-media-inner img,
.gallery-media-inner video,
.gallery-media-inner iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.gallery-media-inner a.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-media-inner a.gallery-photo img {
  transition: transform 0.35s ease;
}

.gallery-media-inner a.gallery-photo:hover img {
  transform: scale(1.04);
}

.gallery-external-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-external-link .event-video-badge {
  top: auto;
  bottom: 12px;
  right: 12px;
}

@media (max-width: 767px) {
  .gallery-section {
    padding: 55px 0;
  }

  .gallery-section-header h2 {
    font-size: 24px;
  }

  .event-card-thumb {
    height: 220px;
  }
}
