/* Video container */
.video-container {
  width: 100vw;
  height: 60vh;
  max-width: 100vw;
  max-height: 60vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: 
  linear-gradient(
    to bottom,
    rgba(240,230,229,1) 0%,
    rgba(240,230,229,0.0) 03%,
    rgba(240,230,229,0.0) 97%,
    rgba(240,230,229,1) 100%
  );
}

.video-iframe-wrapper {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 100vw;
  transform: translate(-50%, -50%);
  border: none;
  background: black;
  pointer-events: auto;
}

section {
  background: transparent;
}

/* Gallery section */
.photo-grid {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 80vw;
  margin: 0 10vw;
  padding: 0;
  /* Remove solid background */
  background: transparent;
  /* Ensure container width is exact */
  box-sizing: border-box;
}

.photo-grid .masonry-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  /* Ensure columns fill exactly */
  box-sizing: border-box;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px 2px rgba(0,0,0,0.2);
  background: rgb(240,230,229);
  object-fit: contain;
  margin: 0 0 4px 0;
  border-bottom: none;
  break-inside: auto;
  transition: opacity 2.7s;
  will-change: transform, opacity;
  /* Ensure images don't overflow */
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile adjustments to prevent gaps */
@media (max-width: 768px) {
  .photo-grid {
    max-width: 94vw;
    margin: 0 3vw;
    gap: 6px;
  }
  
  .photo-grid .masonry-col {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    max-width: 96vw;
    margin: 0 2vw;
    gap: 4px;
  }
  
  .photo-grid .masonry-col {
    gap: 4px;
  }
}

/* Timeline */
#timeline, #about {
  /* Remove solid background */
  padding-bottom: 40px;
}

.timeline {
  position: relative;
  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 12px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(90, 71, 71, 0.25);
  z-index: 1;
}

.timeline-list {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-auto-rows: minmax(80px, auto);
  row-gap: 28px;
  position: relative;
  justify-items: center;
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 32px;
  position: relative;
  width: 100%;
  --dot-scale: 1;
  will-change: transform, opacity;
}

.timeline-row .timeline-left,
.timeline-row .timeline-right {
  font-size: 2.2em; /* was 1.8em */
  color: #5a4747;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
}

.timeline-row .timeline-left {
  grid-column: 1;
  text-align: right;
}

.timeline-row .timeline-right {
  grid-column: 2;
  text-align: left;
}

.timeline-right img,
.timeline-left img {
  width: 110px;      /* was 80px */
  height: 110px;     /* was 80px */
  max-width: 45vw;   /* was 35vw */
  max-height: 45vw;  /* was 35vw */
  object-fit: contain;
}

.timeline-row::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--dot-scale, 1));
  top: 50%;
  width: 10px;
  height: 10px;
  background: #c9a7a7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 167, 167, 0.25);
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  will-change: transform;
}

/* Countdown */
#countdown {
  /* Remove solid background */
  background: transparent;
  padding: 16px 0 8px;
  text-align: center;
}
#countdown .countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px; /* increased gap for more spread out look */
  margin: 8px auto 24px; /* more vertical space */
}
#countdown .cd-part {
  min-width: 110px;
  padding: 0; /* remove padding */
  /* Remove border, border-radius, background, box-shadow */
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#countdown .cd-value {
  font-size: 2.7em; /* slightly larger */
  line-height: 1;
  font-weight: 700;
  margin-bottom: 6px;
}
#countdown .cd-label {
  margin-top: 0;
  font-size: 1.1em;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.header-countdown {
  display: flex;
  gap: 2em;
  align-items: center;
}
.header-countdown .cd-group {
  display: flex;
  gap: 2vw;
}
.header-countdown .cd-part {
  min-width: 70px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-countdown .cd-value {
  font-size: 2.2em;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 4px;
}
.header-countdown .cd-label {
  font-size: 1em;
  opacity: 0.8;
  letter-spacing: 0.04em;
  margin-top: 0;
}

/* Carousel gallery - moved from inline styles in index.html */
.carousel-gallery .carousel-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
.carousel-gallery .carousel-image {
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 1;
  will-change: transform;
}

/* Location (map) - moved from inline styles in index.html */
.map-title {
  text-align: center;
  padding-bottom: 18px;
  margin: 0;
}
.map-container {
  margin: 0;
  padding-bottom: 24px;
}
.map-container iframe {
  border: 0;
}

/* Footer */
.site-footer {
  width: 100vw;
  background: #e7d1d1; /* darker than rgb(240,230,229) */
  text-align: center;
  padding: 32px 0 24px 0;
  margin-top: 32px;
  font-size: 1.3em;
  color: #5a4747;
}

.footer-message {
  margin-bottom: 18px;
  font-size: 1.1em;
  letter-spacing: 0.01em;
}

.footer-contact-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 22px;
  background: linear-gradient(90deg, #e7d1d1 0%, #fff8dc 100%);
  color: #5a4747;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(180,160,150,0.10);
  border: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  margin-top: 8px;
  cursor: pointer;
}

.footer-contact-btn:hover,
.footer-contact-btn:focus {
  background: linear-gradient(90deg, #e7d1d1 0%, #fff8dc 100%);
  color: #a67c52;
  box-shadow: 0 4px 16px 0 rgba(180,160,150,0.18);
}

.timeline-timestamp {
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
  margin-left: 20px;
  font-size: 1.5rem; /* was 1.2rem */
  font-weight: bold;
  color: #5a4747;
}

.timeline-row img {
  vertical-align: middle;
}

/* Timeline scroll animations - REMOVED unused animation classes */
#timeline {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}
