/* ==========================================================================
   Ade Ayoola's Family Gallery - Modern Luxury Design System
   Color Scheme: Royal Blue, Imperial Purple & Crisp Platinum White
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Royal Navy, Sapphire & Imperial Purple */
  --bg-main: #060a17;
  --bg-surface: #0c142b;
  --bg-surface-elevated: #131f42;
  --bg-glass: rgba(12, 20, 43, 0.82);
  --bg-glass-card: rgba(19, 31, 66, 0.65);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-glow: rgba(99, 102, 241, 0.4);
  
  /* Accents */
  --accent-royal: #2563eb;
  --accent-royal-light: #60a5fa;
  --accent-sapphire: #3b82f6;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a78bfa;
  --accent-indigo: #6366f1;
  --gradient-royal: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --gradient-card: linear-gradient(145deg, rgba(25, 38, 80, 0.7) 0%, rgba(12, 20, 43, 0.7) 100%);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-royal: #93c5fd;
  --text-purple: #c4b5fd;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.35);
  --shadow-glow-royal: 0 0 25px rgba(37, 99, 235, 0.35);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(99, 102, 241, 0.08) 0%, transparent 55%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-glass-glow);
  color: var(--accent-purple-light);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.075rem;
  font-weight: 400;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(6, 10, 23, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(99, 102, 241, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-royal-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-royal);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-royal);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-indigo);
  color: var(--accent-purple-light);
  background: rgba(99, 102, 241, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: 150px;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-royal-light) 65%, var(--accent-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 480px;
  position: relative;
}

.collage-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  transition: var(--transition-slow);
}

.collage-item:hover {
  transform: scale(1.03) translateY(-5px);
  z-index: 10;
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-royal-light);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-1 {
  grid-column: 1 / 9;
  grid-row: 1 / 10;
}

.collage-2 {
  grid-column: 7 / 13;
  grid-row: 5 / 13;
  border: 3px solid var(--bg-main);
}

.hero-floating-badge {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass-glow);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 15;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-royal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.badge-text h4 {
  font-size: 0.95rem;
}

.badge-text p {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Family Spotlight Section
   ========================================================================== */

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.family-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.family-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-glow);
  box-shadow: var(--shadow-glow);
}

.first-gen-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 920px;
  margin: 0 auto;
}

.first-gen-card {
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.first-gen-card:hover {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.35);
}

.first-gen-card .family-avatar-wrap {
  height: 320px;
}

.family-avatar-wrap {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.family-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.family-card:hover .family-avatar-wrap img {
  transform: scale(1.08);
}

.family-card-action-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(12, 20, 43, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-glow);
  color: var(--accent-royal-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-fast);
}

.family-card:hover .family-card-action-hint {
  opacity: 1;
  transform: translateY(0);
}

.family-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.family-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.family-role {
  font-size: 0.85rem;
  color: var(--accent-purple-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.family-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   10-Album Interactive Gallery Section
   ========================================================================== */

.gallery-filters-container {
  margin-bottom: 3rem;
  position: relative;
}

.gallery-filters-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-filters-scroll::-webkit-scrollbar {
  height: 5px;
}
.gallery-filters-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--bg-surface-elevated);
}

.filter-btn.active {
  background: var(--gradient-royal);
  color: #ffffff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.filter-count {
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-card.tall {
  aspect-ratio: 3 / 4;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 23, 0.95) 0%, rgba(6, 10, 23, 0.4) 50%, transparent 100%);
  opacity: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-normal);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card-badge {
  align-self: flex-start;
  background: var(--gradient-royal);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gallery-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.gallery-card-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--accent-royal-light);
}

/* ==========================================================================
   Our Heritage & Family Message Section
   ========================================================================== */

.story-single-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
  overflow: hidden;
}

.story-single-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-royal);
}

.story-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-quote-symbol {
  font-size: 2.25rem;
  color: var(--accent-purple-light);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.story-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.85;
  color: #ffffff;
  font-style: italic;
  font-family: var(--font-heading);
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(12, 20, 43, 0.6);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-indigo);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

.author-info {
  text-align: left;
}

.author-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.author-info p {
  font-size: 0.825rem;
  color: var(--accent-royal-light);
}


/* ==========================================================================
   Tribute & Family Connect Section (Replacing Contact Form)
   ========================================================================== */

.tribute-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.tribute-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.tribute-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--gradient-royal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.tribute-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.tribute-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.tribute-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.btn-whatsapp {
  background: #22c55e;
  color: #060a17;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.btn-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* ==========================================================================
   Enhanced Fullscreen Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-top-bar {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2020;
}

.lightbox-counter {
  background: rgba(19, 31, 66, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-royal-light);
  letter-spacing: 0.5px;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--gradient-royal);
  color: #ffffff;
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 31, 66, 0.75);
  border: 1px solid var(--border-glass-glow);
  color: var(--text-primary);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 2010;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: var(--gradient-royal);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-content-wrap {
  max-width: 1100px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.lightbox-image-holder {
  max-width: 100%;
  max-height: 66vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass-glow);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-holder img {
  max-height: 66vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-meta {
  margin-top: 1.25rem;
  text-align: center;
  max-width: 750px;
}

.lightbox-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.lightbox-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lightbox-details {
  font-size: 0.825rem;
  color: var(--accent-royal-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 360px;
  font-size: 0.925rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-purple-light);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-lock-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.admin-lock-link:hover {
  color: var(--accent-purple-light);
  border-color: var(--border-glass);
  background: rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Hide mobile admin link on desktop */
.mobile-admin-link {
  display: none;
}

@media (max-width: 992px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 72px;
  }

  .hero-section {
    padding-top: 105px;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 10, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass-glow);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
  }

  .mobile-admin-link {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
  }

  .mobile-admin-link .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-purple-light);
    font-weight: 600;
  }
  
  .nav-actions .btn {
    display: none;
  }

  .family-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .first-gen-grid {
    grid-template-columns: 1fr;
  }

  .story-single-card {
    padding: 2.25rem 1.25rem;
  }

  .story-author {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 1.25rem;
  }

  .author-info {
    text-align: center;
  }

  .tribute-card {
    padding: 2.25rem 1.25rem;
  }

  .tribute-actions {
    flex-direction: column;
    width: 100%;
  }

  .tribute-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Lightbox */
  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-prev {
    left: 0.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .lightbox-next {
    right: 0.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .lightbox-top-bar {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .lightbox-close {
    width: 42px;
    height: 42px;
  }

  .lightbox-image-holder {
    max-height: 55vh;
  }

  .lightbox-image-holder img {
    max-height: 55vh;
  }

  .lightbox-title {
    font-size: 1.2rem;
  }

  .lightbox-caption {
    font-size: 0.875rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-collage {
    height: 320px;
  }

  .collage-1 {
    width: 220px;
    height: 270px;
  }

  .collage-2 {
    width: 180px;
    height: 220px;
  }

  .hero-floating-badge {
    bottom: -15px;
    left: 5%;
    padding: 0.6rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filters-scroll {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

