@import url('https://fonts.googleapis.com/css2?family=Lancelot&display=swap');

@font-face {
  font-family: 'Lancelot-Local';
  src: url('./images/Lancelot-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-primary: 'Lancelot', 'Lancelot-Local', Georgia, serif;
  --font-sans: 'Lancelot', 'Lancelot-Local', Georgia, serif;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-dark: #2b2523;
  --text-muted: #555555;
  --title-blue: #3c6ca8;
  --accent-terra: #a04728;
  --accent-terra-hover: #82361c;
  --btn-bg-dark: rgba(50, 65, 88, 0.85);
  --btn-bg-dark-hover: rgba(35, 48, 68, 0.95);
  --border-light: #eceeef;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 50px;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base - Enforcing Lancelot for Whole Site */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary) !important;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scrollbars for 100vw elements */
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  font-family: var(--font-primary) !important;
}

button, input, textarea, select {
  font-family: var(--font-primary) !important;
}

/* Header & Navigation matching Image 2 EXACTLY */
.site-header {
  padding: 1.25rem 2rem 1.25rem;
  background-color: #ffffff;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.header-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

.header-wreath-logo {
  height: 135px;
  width: auto;
  object-fit: contain;
}

.header-brand-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
}

.header-title-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.4rem;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 2rem;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
}

.nav-item {
  color: #2b2523;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  font-size: 2rem;
  font-family: var(--font-primary) !important;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent-terra);
}

.nav-divider {
  color: #2b2523;
  font-weight: 400;
  font-size: 1.8rem;
  user-select: none;
}

/* Page Container & Tab Views */
.main-content {
  flex: 1;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tab-view,
.page-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* FULL-WIDTH EDGE-TO-EDGE HERO SLIDESHOW */
.hero-slideshow-container {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -2rem;
  margin-bottom: 3.5rem;
  border-radius: 0;
  overflow: hidden;
  background-color: #faf8f5;
  height: clamp(250px, 50vw, 850px);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide.active img {
  transform: scale(1);
  animation: heroKenBurns 7s ease-in-out infinite alternate;
}

.slideshow-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 2rem;
  pointer-events: none;
}

.slide-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b2523;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.slide-btn svg {
  width: 24px;
  height: 24px;
  stroke: #2b2523;
  transition: stroke var(--transition-fast);
}

.slide-btn:hover {
  background: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(160, 71, 40, 0.25);
}

.slide-btn:hover svg {
  stroke: var(--accent-terra);
}

.slide-btn:active {
  transform: scale(0.95);
}

.slideshow-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease, border-radius 0.4s ease, transform 0.4s ease;
}

.dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--accent-terra);
  box-shadow: 0 3px 10px rgba(160, 71, 40, 0.35);
}

/* Home Page Candy Doody Featured Section */
.home-featured-layout {
  max-width: 980px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.home-section-title {
  font-size: 2.6rem;
  font-family: var(--font-primary) !important;
  color: var(--text-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.candy-doody-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3.5rem;
  align-items: start;
  width: 100%;
}

.candy-doody-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.candy-doody-description {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: var(--font-primary) !important;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-terra);
  color: #ffffff;
  font-family: var(--font-primary) !important;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.65rem 2.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(160, 71, 40, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-pill:hover {
  background-color: var(--accent-terra-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.candy-doody-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.redwood-character-img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.character-divider {
  width: 100%;
  height: 1px;
  background-color: #333333;
  margin: 0.75rem 0 0.5rem;
}

.redwood-books-label {
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--text-dark);
  font-family: var(--font-primary) !important;
  text-transform: uppercase;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-play-slideshow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent-terra);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary) !important;
  font-size: 1.15rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(160, 71, 40, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-play-slideshow:hover {
  background-color: var(--accent-terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 71, 40, 0.35);
}

.btn-play-slideshow svg {
  fill: #ffffff;
}

.section-title {
  font-size: 2.7rem;
  font-family: var(--font-primary) !important;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #f7f7f7;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow var(--transition-smooth);
  will-change: opacity, transform;
}

.gallery-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-item.full-width {
  grid-column: 1 / -1;
  aspect-ratio: 2.1 / 1;
}

.gallery-item-more {
  display: none;
}

.gallery-item-more.show {
  display: block;
}

.gallery-item.revealed:hover {
  transform: translateY(-5px) scale(1.005);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.overlay-btn {
  background: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-primary) !important;
  font-size: 1.1rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.gallery-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.btn-load-more {
  background: transparent;
  border: none;
  font-family: var(--font-primary) !important;
  font-size: 2.2rem;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.btn-load-more:hover {
  color: var(--accent-terra);
}

.social-link-label {
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-primary) !important;
}

/* Books Page Alternating Layout */
.books-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.book-card {
  display: grid;
  grid-template-columns: 384px 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.book-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.book-card:last-child {
  border-bottom: none;
}

.book-card:nth-child(even) {
  grid-template-columns: 1fr 384px;
  gap: 32px;
}

.book-card:nth-child(even) .book-cover-container {
  order: 2;
}

.book-card:nth-child(even) .book-details {
  order: 1;
}

.book-cover-container {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-sm);
  overflow: visible;
  cursor: pointer;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto !important;
}

.book-cover-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.book-cover-container:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.book-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.book-title {
  font-size: 2.3rem;
  color: var(--text-dark);
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  font-family: var(--font-primary) !important;
}

.book-authors {
  font-size: 1.35rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-primary) !important;
}

.book-description {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: var(--font-primary) !important;
}

/* 55+ Books Showcase Section */
.books-showcase-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px dashed var(--border-light);
}

.books-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1), transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), box-shadow var(--transition-fast);
  will-change: opacity, transform;
}

.showcase-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.showcase-item.revealed:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 5;
}

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

/* About Page 2-Column Layout */
.about-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 33px;
  align-items: start;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-family: var(--font-primary) !important;
}

.portrait-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.portrait-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-section {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid var(--border-light);
}

.contact-heading {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.4;
  text-transform: uppercase;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-primary) !important;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.contact-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  color: var(--text-dark);
  background: #fbf7f2;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid #f0e6dc;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  font-family: var(--font-primary) !important;
}

.contact-badge:hover {
  transform: translateY(-2px);
  color: var(--accent-terra);
  border-color: var(--accent-terra);
}

.contact-badge svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-terra);
}

.tagline {
  font-size: 2rem;
  color: var(--accent-terra);
  letter-spacing: 1px;
  margin-bottom: 2rem;
  font-family: var(--font-primary) !important;
}

.contact-form,
.inquiry-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  display: block;
}

.form-control {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #fafafa;
  color: #2d3748;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: #a0aec0;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-terra);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(160, 71, 40, 0.12);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .contact-form,
  .inquiry-form {
    padding: 1.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-submit {
  background: var(--accent-terra);
  color: #ffffff;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-shadow: 0 4px 14px rgba(160, 71, 40, 0.3);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit:hover {
  background: var(--accent-terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 71, 40, 0.4);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 12, 10, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.lightbox-img.fade-transition {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox-caption {
  color: #ffffff;
  font-family: var(--font-primary) !important;
  font-size: 1.4rem;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent-terra);
}

.lightbox-exit-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1010;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-exit-btn:hover {
  background: #ffffff;
  color: var(--accent-terra);
  transform: scale(1.05);
}

.lightbox-exit-btn:hover svg {
  stroke: var(--accent-terra);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 1rem;
}

.lightbox-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  transition: stroke var(--transition-fast);
}

.lightbox-btn:hover {
  background: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-btn:hover svg {
  stroke: var(--accent-terra);
}

.lightbox-btn:active {
  transform: scale(0.95);
}

/* Global Footer matching Lucy Fleming */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1.2rem;
  color: var(--text-dark);
  font-family: var(--font-primary) !important;
}

.footer-disclaimer {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--font-primary) !important;
  white-space: nowrap;
}

/* Mobile Responsive Media Queries */
@media (max-width: 900px) {
  .footer-disclaimer {
    white-space: normal;
  }

  .site-header {
    padding: 1rem 1rem 0.85rem;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
  }

  .header-brand-nav {
    align-items: flex-start;
  }

  .header-wreath-logo {
    height: 95px;
  }

  .header-title-img {
    height: 40px;
    margin-bottom: 0.2rem;
  }

  .nav-menu {
    gap: 0.75rem;
  }

  .nav-item {
    font-size: 1.4rem;
  }

  .nav-divider {
    font-size: 1.3rem;
  }

  .candy-doody-grid,
  .about-profile-grid,
  .book-card,
  .book-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .candy-doody-left {
    align-items: center;
    text-align: center;
  }

  .candy-doody-right {
    order: 2;
    margin-top: 1rem;
  }

  .book-card:nth-child(even) .book-cover-container {
    order: 1;
  }

  .book-card:nth-child(even) .book-details {
    order: 2;
  }

  .book-cover-container img {
    height: auto;
    max-height: 480px;
    object-fit: contain;
  }

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

@media (max-width: 600px) {
  .site-header {
    padding: 0.75rem 0.5rem 0.65rem;
  }

  .header-container {
    gap: 0.6rem;
  }

  .header-wreath-logo {
    height: 70px;
  }

  .header-title-img {
    height: 28px;
    margin-bottom: 0.15rem;
  }

  .nav-menu {
    gap: 0.4rem;
  }

  .nav-item {
    font-size: 1.15rem;
    padding: 0;
  }

  .nav-divider {
    font-size: 1.05rem;
  }

  .books-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }
  
  .contact-methods {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .site-header {
    padding: 0.5rem 0.25rem;
  }

  .header-container {
    gap: 0.35rem;
  }

  .header-wreath-logo {
    height: 58px;
  }

  .header-title-img {
    height: 23px;
  }

  .nav-menu {
    gap: 0.25rem;
  }

  .nav-item {
    font-size: 0.98rem;
  }

  .nav-divider {
    font-size: 0.9rem;
  }
}
