/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --text-primary: #d4d0c8;
  --text-secondary: #7a756c;
  --text-faint: #4a4640;
  --font: 'Cormorant Garamond', serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* === Home Page === */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
}

.home-content {
  text-align: center;
}

.home-nav ul {
  list-style: none;
}

.home-nav li + li {
  margin-top: 1rem;
}

.home-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.home-nav a:hover {
  color: var(--text-primary);
}

/* === Navigation Bar === */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 2.5rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease;
}

.nav-bar.hidden {
  transform: translateY(-100%);
}

.nav-gallery-name {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-gallery-name:hover {
  color: var(--text-secondary);
}

/* === Swiper === */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Title Slide === */
.slide-title {
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.title-card-heading {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.title-card-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  color: var(--text-faint);
  animation: hint-bounce 2.5s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 0.8; }
}

/* === Photo Slides === */
.slide-photo {
  position: relative;
}

.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 4s ease;
}

.swiper-slide-active .photo {
  opacity: 1;
}

.photo img {
  display: block;
  max-height: 80vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* === Captions === */
.caption {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* === Footer Slide === */
.slide-footer {
  flex-direction: column;
}

.gallery-date {
  color: var(--text-faint);
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav-bar {
    padding: 1rem 1.25rem;
  }

  .nav-gallery-name {
    font-size: 0.8rem;
  }

  .caption {
    bottom: 1.5rem;
    right: 1.25rem;
  }
}
