:root {
  --bg: #faf7f4;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #777;
  --accent: #c59d5f;
  --border: #eee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c59d5f' stroke-width='1' opacity='0.15'%3E%3Cpath d='M100 20c-20 20-20 40 0 60 20-20 20-40 0-60z'/%3E%3Cpath d='M100 80c-30 10-40 30-40 50 30-10 50-30 40-50z'/%3E%3Cpath d='M100 80c30 10 40 30 40 50-30-10-50-30-40-50z'/%3E%3Cpath d='M100 140c-10 20 0 40 0 40s10-20 0-40z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  pointer-events: none;
  z-index: -1;
}

/* HERO */
header {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.15), rgba(0,0,0,0.35)),
    url("images/cover_photo.jpg")
      center / cover;
  color: #fff;
}

.hero-content {
  z-index: 1;
  margin-top: 100px;
}

header h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  letter-spacing: 1px;
}

header .date {
  margin-top: 20px;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* HERO NAVIGATION */
.hero-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  padding: 0 20px;
}

.hero-nav a {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.hero-nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 600px) {
  .hero-nav {
    bottom: 24px;
    margin-top: 48px;
    gap: 10px 16px;
  }

  .hero-nav a {
    font-size: 0.65rem;
  }
}

@media (max-width: 500px) {
  .hero-nav {
    display: none;
  }
}

/* SECTIONS */
section {
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1, h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}

/* CARDS */

.card {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  padding: 40px;
  box-shadow: none;
  margin-bottom: 40px;
}

.story {
  text-align: center;
  font-size: 1.05rem;
}

/* EVENTS */
.events {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .events {
    grid-template-columns: 1fr 1fr;
  }
}

.event-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.event-meta {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* EVENTS (KDY / KDE) */
.events-card {
  text-align: center;
}

.event-block {
  padding: 20px 0;
}

.event-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.event-content {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

.route-info,
.parking-info {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

.event-divider {
  height: 1px;
  width: 60%;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    var(--border),
    transparent
  );
}

.event-icon {
  font-size: 1.4rem;
  opacity: 0.75;
  margin-bottom: 8px;
}


/* MAP */

.map-wrapper {
  position: relative;
  height: 420px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


.divider {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 32px auto 48px;
  opacity: 0.6;
}

.divider-timeline {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto 48px;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}




/* TIMELINE */
.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-align: center; 
}

.timeline-item:last-child {
  border-bottom: none;
}

.time {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.timeline h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.time::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 12px auto;
  opacity: 0.6;
}


/* GALLERY */
.gallery {
  display: grid;
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: grayscale(10%);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery img {
    height: 260px;
  }
}

/* GALLERY IMAGE HOVER */
.gallery-item img {
  cursor: pointer;           /* Shows hand cursor */
  transition: transform 0.2s ease, opacity 0.2s ease; /* smooth hover effect */
}

.gallery-item img:hover {
  transform: scale(1.03);    /* slight zoom on hover */
  opacity: 0.9;              /* subtle fade effect */
}


/* LIGHTBOX OVERLAY */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  border-radius: 8px;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}


.lightbox img {
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.visible img {
  transform: scale(1);
  opacity: 1;
}


/* LIGHTBOX CONTROLS */
.lightbox-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  user-select: none;
  padding: 10px 14px;
}

.lightbox-button:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 1;
}
