﻿/* Past Event Detail Page */
.past-event-titel {
  text-align: center;
  margin-bottom: 20px;
}
.past-event-titel .event-titel_info h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}
.past-event-titel .event-info {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* Sidebar */
.past-event-aside .end-event-books {
  margin-bottom: 20px;
}
.past-event-aside .end-event-books ul {
  list-style: none;
  padding: 0;
}
.past-event-aside .end-event-books h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}
.past-event-aside .end-event-books .image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.past-event-aside .booklink,
.past-event-aside .programlink {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 15px;
}
.past-event-aside .booklink a,
.past-event-aside .programlink a {
  display: inline-block;
  padding: 6px 16px;
  background: #0a2b6d;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.past-event-aside .booklink a:hover,
.past-event-aside .programlink a:hover {
  background: #082555;
}

/* Scientific Program sidebar */
.past-program {
  margin-top: 20px;
}
.past-program h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0a2b6d;
}
.past-program .comment {
  padding: 10px 0;
}
.past-program .comment .point {
  font-size: 12px;
  color: #0a2b6d;
  font-weight: 600;
  margin-bottom: 4px;
}
.past-program .comment .text_holder h5 {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.past-program .comment .text_holder .title-link {
  color: #333;
  text-decoration: none;
}
.past-program .comment .text_holder .title-link:hover {
  color: #0a2b6d;
}
.past-program .comment .name {
  font-size: 12px;
  color: #666;
}
.past-program .comment .name .designation {
  font-style: italic;
}

/* About section */
.about-past-events h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* Members & Speakers */
.past-event-members .heading h2,
.past-event-speakers .heading h3 {
  font-size: 20px;
  margin-bottom: 15px;
}
.past-event-members .team-member,
.past-event-speakers .team-member {
  margin-bottom: 15px;
}

.past-btn-dark {
  background: #333 !important;
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.past-btn-dark:hover {
  background: #555 !important;
}
.past-btn-outline {
  background: transparent !important;
  color: #333 !important;
  border: 1px solid #333;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}
.past-btn-outline:hover {
  background: #333 !important;
  color: #fff !important;
}

/* Compact Gallery sidebar */
.compact-gallery {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}
.compact-gallery .gallery-header {
  text-align: center;
  margin-bottom: 15px;
  background: #0a2b6d;
  padding: 14px 10px;
  border-radius: 8px 8px 0 0;
  margin: -15px -15px 15px;
}
.compact-gallery .gallery-title {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}
.compact-gallery .gallery-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.compact-gallery .gallery-scroll {
  /* replaced by sidebar-carousel */
}
.compact-gallery .album-card {
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  min-width: unset;
  width: 100%;
}
.compact-gallery .album-card:hover {
  transform: translateY(-2px);
}
.compact-gallery .album-image-container {
  position: relative;
  overflow: hidden;
}
.compact-gallery .album-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.compact-gallery .album-photo-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.compact-gallery .album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.compact-gallery .album-year {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0a2b6d;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.compact-gallery .album-info {
  position: absolute;
  bottom: 28px;
  left: 8px;
  color: #fff;
}
.compact-gallery .album-title {
  font-size: 14px;
  margin: 0;
}
.compact-gallery .album-location {
  font-size: 11px;
  opacity: 0.9;
}
.compact-gallery .album-stats {
  font-size: 10px;
  opacity: 0.8;
}
.compact-gallery .album-content {
  padding: 8px 12px;
}
.compact-gallery .album-description {
  font-size: 12px;
  color: #555;
  margin: 0 0 4px;
}
.compact-gallery .album-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
}
.compact-gallery .view-all-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  background: #0a2b6d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  margin: 10px 0;
  transition: background 0.2s;
}
.compact-gallery .view-all-btn:hover {
  background: #082555;
  color: #fff;
}
.compact-gallery .gallery-footer {
  margin-top: 10px;
}
.compact-gallery .stats-mini {
  display: flex;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.compact-gallery .stat-mini {
  flex: 1;
  padding: 8px 4px;
}
.compact-gallery .stat-mini + .stat-mini {
  border-left: 1px solid #e0e0e0;
}
.compact-gallery .stat-number {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: block;
}
.compact-gallery .stat-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
}

/* Standalone Gallery page grid (/gallery) */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.gp-album-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gp-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.gp-album-image-container {
  overflow: hidden;
  background: #f5f5f5;
}
.gp-album-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gp-album-card:hover .gp-album-image {
  transform: scale(1.04);
}
.gp-album-content {
  padding: 16px 18px 20px;
}
.gp-album-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.gp-album-name {
  color: #e57518;
}
.gp-album-sep {
  color: #0a2b6d;
}
.gp-album-location {
  color: #0a2b6d;
}
@media (max-width: 1199px) {
  .gallery-page-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gp-album-image { height: 170px; }
}
@media (max-width: 479px) {
  .gallery-page-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Gallery inner page — photo grid (/gallery/[year]) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.photo-card:focus-visible {
  outline: 2px solid #e57518;
  outline-offset: 2px;
}
.photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
}
.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-card:hover .photo-image {
  transform: scale(1.05);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 43, 109, 0.8) 0%, rgba(10, 43, 109, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.photo-card:hover .photo-overlay,
.photo-card:focus-visible .photo-overlay {
  opacity: 1;
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.photo-card:hover .photo-caption,
.photo-card:focus-visible .photo-caption {
  transform: translateY(0);
  opacity: 1;
}
.photo-caption p { margin: 0; }
@media (max-width: 1199px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 479px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10002;
}
.lightbox-controls .control-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.control-panel {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.control-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.control-panel .control-btn {
  background: transparent;
  width: 32px;
  height: 32px;
}
.control-panel .control-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.zoom-display {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
  user-select: none;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10002;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.25); }
.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }
.lightbox-image-container {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  user-select: none;
}
.lightbox-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  z-index: 10002;
}
.info-panel {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.info-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 10px;
}
.info-text { min-width: 0; }
.info-caption {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.info-alt {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.info-meta { flex-shrink: 0; }
.info-counter {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #fbbc05;
  transition: width 0.25s ease;
}
@media (max-width: 600px) {
  .nav-btn { width: 40px; height: 40px; }
  .nav-btn.prev { left: 10px; }
  .nav-btn.next { right: 10px; }
  .info-content { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lightbox-image-container { max-height: 70vh; }
}

/* Vertical Video Container */
.vertical-video-container {
  margin-top: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
}
.vertical-video-container .video-header {
  text-align: center;
  margin-bottom: 12px;
  background: #0a2b6d;
  padding: 14px 10px;
  border-radius: 8px 8px 0 0;
  margin: -15px -15px 15px;
}
.vertical-video-container .video-header h2 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}
.vertical-video-container .video-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.vertical-video-container .vertical-scroll {
  /* replaced by sidebar-carousel */
}
.vertical-video-container .video-card {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.vertical-video-container .video-container {
  position: relative;
}
.vertical-video-container .video-btn {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
  position: relative;
}
.vertical-video-container .video-thumb {
  width: 100%;
  height: auto;
  display: block;
}
.vertical-video-container .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.vertical-video-container .video-btn:hover .play-overlay {
  background: rgba(0,0,0,0.5);
}
.vertical-video-container .play-buttonnew {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vertical-video-container .play-icon {
  width: 18px;
  height: 18px;
  color: #333;
}
.vertical-video-container .duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}
.vertical-video-container .video-info {
  padding: 8px 12px;
}
.vertical-video-container .video-title {
  font-size: 13px;
  margin: 0 0 4px;
  color: #333;
}
.vertical-video-container .video-date {
  font-size: 11px;
  color: #888;
}

.vertical-video-container .scroll-nav {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 4px auto;
}
.vertical-video-container .scroll-indicator {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e0e0e0;
  border-radius: 2px;
}
.vertical-video-container .scroll-progress {
  width: 100%;
  background: #0a2b6d;
  border-radius: 2px;
  transition: height 0.2s;
}

/* Sidebar Carousel (arrow-based auto-scrolling) */
.sidebar-carousel {
  position: relative;
}
.sidebar-carousel-viewport {
  overflow: hidden;
}
.sidebar-carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
  padding: 0;
}
.sidebar-carousel-arrow:hover {
  background: #0a2b6d;
  border-color: #0a2b6d;
  color: #fff;
}
/* Horizontal nav: left/right arrows between cards */
.sidebar-carousel-nav-hz {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 4px;
}
/* Vertical nav: single arrow top/bottom */
.sidebar-carousel-nav-top,
.sidebar-carousel-nav-bottom {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

/* Three-column layout adjustments */
.boxes {
  display: flex;
  flex-wrap: wrap;
}
.box-1 { order: 1; }
.box-2 { order: 2; }
.box-3 { order: 3; }
@media (max-width: 991px) {
  .box-1 { order: 2; }
  .box-2 { order: 1; width: 100%; }
  .box-3 { order: 3; }
}
