/* ==========================================================================
   MARY LOU'S BOOK SHOP — STYLESHEET
   Authentic antique book presentation & interactive reading experience
   ========================================================================== */

:root {
  --wood-bg-1: #2a1910;
  --wood-bg-2: #21130c;
  --wood-grain-line: #180d07;
  
  --leather-cover: #3a2219;
  --leather-cover-dark: #27160f;
  --gold-foil: #cfad6b;
  --gold-foil-light: #e5ca8d;
  --gold-foil-dark: #9e7f41;
  
  --paper-bg: #f8f4ea;
  --paper-bg-warm: #f3ede0;
  --paper-edge: #e6dfcf;
  
  --ink-primary: #2d2520;
  --ink-muted: #5e544c;
  --ink-faint: #8e8379;
  
  --accent-rust: #8d3a2b;
  --accent-rust-hover: #a34635;
  --accent-rust-dark: #6e2a1e;
  --accent-sage: #4f6354;
  
  --font-serif-title: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif-book: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --font-serif-body: 'Lora', Georgia, serif;
  --font-typewriter: 'Special Elite', 'Courier New', monospace;
  
  --book-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 10px 25px rgba(0, 0, 0, 0.45);
  --page-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --polaroid-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-serif-body);
  color: var(--ink-primary);
  background-color: var(--wood-bg-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESK CONTAINER & WOOD PATTERN
   ========================================================================== */

.desk-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
  background-color: var(--wood-bg-1);
}

/* Realistic vertical wooden table planks */
.desk-wood-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      #2e1b12 0px,
      #28170e 55px,
      #21120a 56px,
      #180b05 57px,
      #29180f 58px,
      #321e14 120px,
      #24140b 121px,
      #1a0d06 122px
    );
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

/* Warm vignette lighting focused on center desk */
.desk-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Utility to hide views */
.hidden {
  display: none !important;
}

/* ==========================================================================
   VINTAGE BUTTONS & CONTROLS
   ========================================================================== */

.vintage-btn {
  display: inline-block;
  font-family: var(--font-serif-title);
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: #fff6e8;
  background-color: var(--accent-rust);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease-in-out;
}

.vintage-btn:hover {
  background-color: var(--accent-rust-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vintage-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   1. BOOK COVER VIEW
   ========================================================================== */

.book-cover-view {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.6s ease-out;
}

.book-cover {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 11;
  min-height: 520px;
  background: 
    radial-gradient(ellipse at 40% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(135deg, var(--leather-cover) 0%, var(--leather-cover-dark) 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--book-shadow), inset 15px 0 30px rgba(0, 0, 0, 0.75);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-left: 12px solid #20110a;
}

/* Gold foil embossed borders on cover */
.cover-emboss-outer {
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-foil);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.5);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-emboss-inner {
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-foil);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.cover-est {
  font-family: var(--font-serif-title);
  color: var(--gold-foil);
  font-size: 0.85rem;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 24px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.cover-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.cover-title-primary {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--gold-foil-light);
  line-height: 1.1;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 230, 160, 0.3);
}

.cover-title-secondary {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--gold-foil-light);
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 230, 160, 0.3);
}

.cover-rule {
  width: 90px;
  height: 1px;
  background-color: var(--gold-foil);
  margin-bottom: 20px;
  opacity: 0.8;
}

.cover-location {
  font-family: var(--font-serif-title);
  font-size: 0.82rem;
  letter-spacing: 4px;
  color: var(--gold-foil);
  margin-bottom: 34px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.btn-open-cover {
  padding: 14px 34px;
  font-size: 0.88rem;
  letter-spacing: 3px;
}

/* ==========================================================================
   2. OPEN BOOK SPREAD VIEW
   ========================================================================== */

.book-open-view {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
}

.book-nav-top {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.btn-close-cover {
  background: none;
  border: none;
  font-family: var(--font-typewriter);
  color: #d1c7b8;
  font-size: 0.88rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.btn-close-cover:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateX(-3px);
}

.book-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Bookmark Tabs along the top edge of the book */
.bookmark-tabs {
  display: flex;
  gap: 4px;
  margin-right: 30px;
  z-index: 15;
  position: relative;
  top: 4px;
}

.tab-item {
  font-family: var(--font-serif-title);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.25);
  border-bottom: none;
  padding: 8px 18px 6px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  background-color: #6b3e34;
  color: #dfd3c3;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.tab-item:hover {
  background-color: #83473b;
  color: #ffffff;
  transform: translateY(-2px);
}

.tab-item.active {
  background-color: var(--accent-rust);
  color: #fff9ed;
  padding-top: 10px;
  transform: translateY(-4px);
  box-shadow: 0 -4px 8px rgba(0,0,0,0.35);
}

/* The Open Book itself */
.open-book {
  position: relative;
  width: 100%;
  min-height: 680px;
  background-color: var(--paper-bg);
  border-radius: 6px;
  box-shadow: var(--book-shadow), 0 0 0 1px rgba(0,0,0,0.15);
  border: 12px solid #2e1a12;
  border-left-width: 16px;
  border-right-width: 16px;
  overflow: hidden;
}

/* Center spine crease & multi-stop shading for realistic curved pages */
.book-spine-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.24) 50%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 20;
}

/* Chapters (Spreads) */
.chapter-spread {
  display: none;
  width: 100%;
  min-height: 656px;
}

.chapter-spread.active {
  display: flex;
  flex-direction: row;
  animation: pageTurn 0.4s ease-out;
}

/* Left & Right Pages */
.page {
  flex: 1;
  min-height: 100%;
  padding: 40px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-left {
  background: linear-gradient(to right, #ece4d4 0%, var(--paper-bg) 6%, #fdfbf7 95%, #e2d9c8 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.page-right {
  background: linear-gradient(to right, #ded4c2 0%, #fdfbf7 5%, var(--paper-bg) 94%, #ebe2d2 100%);
}

.page-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Chapter Metadata & Roman Numerals (Left Page) */
.chapter-meta {
  margin-bottom: 24px;
}

.chapter-number-small {
  display: block;
  font-family: var(--font-serif-title);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 6px;
}

.chapter-roman-numeral {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.8rem;
  line-height: 0.9;
  color: #ccbba7;
  font-weight: 400;
}

/* Polaroid & Photo Plate Styling */
.polaroid-wrapper {
  margin-top: auto;
  margin-bottom: auto;
  align-self: center;
  max-width: 380px;
  width: 100%;
  background: #ffffff;
  padding: 12px 12px 20px;
  box-shadow: var(--polaroid-shadow);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.polaroid-wrapper.tilt-left {
  transform: rotate(-1.5deg);
}

.polaroid-wrapper.tilt-right {
  transform: rotate(1.2deg);
}

.polaroid-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-frame {
  width: 100%;
  overflow: hidden;
  background-color: #eee;
  aspect-ratio: 4 / 3;
}

.polaroid-wrapper.polaroid-large .polaroid-frame {
  aspect-ratio: 16 / 11;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) saturate(1.05);
}

.polaroid-caption {
  font-family: var(--font-typewriter);
  font-size: 0.74rem;
  color: #554f47;
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.5px;
}

/* Right Page Headings */
.chapter-heading-area {
  margin-bottom: 24px;
}

.chapter-sublabel {
  display: block;
  font-family: var(--font-serif-title);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.chapter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.15rem;
  color: var(--ink-primary);
  font-weight: 600;
  line-height: 1.2;
}

/* Chapter 1: Story Details */
.story-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3b322b;
}

.story-body p {
  margin-bottom: 18px;
}

.drop-cap {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.8rem;
  line-height: 0.78;
  margin: 6px 10px 0 0;
  color: var(--accent-rust);
  font-weight: 700;
}

.pull-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-rust);
  background-color: rgba(141, 58, 43, 0.04);
}

.pull-quote .quote-text {
  font-family: var(--font-serif-book);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: #2b1f1a;
  line-height: 1.45;
  margin-bottom: 8px;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-serif-title);
  font-size: 0.74rem;
  letter-spacing: 2px;
  font-style: normal;
  color: var(--accent-rust);
  font-weight: 700;
}

/* Chapter Footer */
.chapter-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-tags {
  font-family: var(--font-typewriter);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

.page-number {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-left: auto;
}

/* ==========================================================================
   CHAPTER 2: REVIEWS & GUEST BOOK
   ========================================================================== */

.reviews-collection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.review-entry {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.review-entry .quote-text {
  font-family: var(--font-serif-book);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.4;
  color: #382e27;
  margin-bottom: 4px;
}

.review-entry cite {
  display: block;
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  color: var(--accent-rust);
  letter-spacing: 0.5px;
}

.facebook-link-container {
  margin-bottom: 22px;
}

.text-link {
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--accent-rust);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dashed var(--accent-rust);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.text-link:hover {
  color: var(--accent-rust-hover);
  border-bottom-style: solid;
}

/* Guestbook Form */
.guestbook-section {
  background-color: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 16px;
  border-radius: 3px;
  margin-top: 10px;
}

.guestbook-heading {
  font-family: var(--font-serif-title);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent-rust);
  margin-bottom: 4px;
}

.guestbook-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.guestbook-form input,
.guestbook-form textarea,
.hello-contact-form input,
.hello-contact-form textarea {
  width: 100%;
  font-family: var(--font-serif-body);
  font-size: 0.9rem;
  padding: 8px 12px;
  background-color: #fffefb;
  border: 1px solid #d8cfc0;
  border-radius: 2px;
  color: var(--ink-primary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.hello-contact-form input:focus,
.hello-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-rust);
  background-color: #ffffff;
}

.btn-guestbook {
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 0.72rem;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 140px;
  overflow-y: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.guest-note .quote-text {
  font-size: 0.88rem;
  font-style: italic;
}

.guest-note cite {
  font-family: var(--font-typewriter);
  font-size: 0.65rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   CHAPTER 3: VISIT
   ========================================================================== */

.visit-info-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
  padding: 24px;
  background-color: #fffefb;
  border: 1px solid #dfd7c9;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.info-primary {
  font-family: var(--font-serif-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.info-secondary {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.visit-action-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}

.btn-action {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.78rem;
}

.btn-facebook {
  background-color: #4a5c68;
}

.btn-facebook:hover {
  background-color: #3b4c57;
}

.community-notice-box {
  padding: 16px 20px;
  background-color: rgba(141, 58, 43, 0.05);
  border-left: 3px solid var(--accent-rust);
}

.community-notice-box p {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  line-height: 1.5;
  color: var(--accent-rust-dark);
}

/* ==========================================================================
   CHAPTER 4: HELLO
   ========================================================================== */

.hello-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #40362f;
  margin-bottom: 24px;
}

.hello-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.hello-contact-form .form-group input,
.hello-contact-form .form-group textarea {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.btn-send-note {
  align-self: flex-start;
  padding: 12px 26px;
  font-size: 0.8rem;
}

.fast-reply-hint {
  font-family: var(--font-typewriter);
  font-size: 0.76rem;
  letter-spacing: 1px;
  color: var(--ink-muted);
}

.fast-reply-hint a {
  color: var(--accent-rust);
  font-weight: bold;
  text-decoration: underline;
}

.form-status-msg {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 2px;
  margin-top: 10px;
}

.form-status-msg.success {
  background-color: #e8f3ec;
  color: #2b573a;
  border: 1px solid #c2e2cc;
}

/* ==========================================================================
   CHAPTER 5: PHOTOS (SNAPSHOTS & GALLERY)
   ========================================================================== */

.snapshots-intro {
  font-size: 0.96rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.grid-polaroid {
  background: #ffffff;
  padding: 8px 8px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-polaroid:nth-child(odd) {
  transform: rotate(-1deg);
}

.grid-polaroid:nth-child(even) {
  transform: rotate(1deg);
}

.grid-polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.grid-polaroid-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #eee;
}

.grid-polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-caption {
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  color: #554f47;
  text-align: center;
  margin-top: 8px;
}

.photos-credit-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.credit-tag {
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

/* ==========================================================================
   CHAPTER 6: EVENTS
   ========================================================================== */

.anniversary-feature-card {
  background-color: #fffefb;
  border: 1px solid #ded6c8;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  position: relative;
}

.badge-save-date {
  display: inline-block;
  font-family: var(--font-serif-title);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--accent-rust);
  font-weight: 700;
  margin-bottom: 6px;
}

.anniversary-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.anniversary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif-title);
  font-size: 0.85rem;
  color: var(--accent-sage);
  font-weight: 600;
  margin-bottom: 10px;
}

.anniversary-summary {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.countdown-badge {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  background-color: var(--accent-rust);
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: bold;
}

.events-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.schedule-entry {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.schedule-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.schedule-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.events-cta-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.btn-follow-dates {
  padding: 10px 22px;
  font-size: 0.78rem;
}

.dates-facebook-note {
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--ink-faint);
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL (ZOOM VIEW)
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}

/* Semi-transparent overlay so the actual website/book remains the backdrop */
.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

/* Container has zero white backdrop - strictly transparent */
.lightbox-content {
  position: relative;
  z-index: 1001;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  animation: zoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-close-btn {
  display: none;
}

/* The photo itself, scaled up 250% and floating cleanly over the page */
.lightbox-image {
  display: block;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: zoom-out;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-caption {
  display: none;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageTurn {
  from { opacity: 0.4; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 900px) {
  .desk-container {
    padding: 20px 10px;
  }

  .bookmark-tabs {
    flex-wrap: wrap;
    margin-right: 0;
    justify-content: center;
    gap: 3px;
  }

  .tab-item {
    font-size: 0.65rem;
    padding: 6px 12px 4px;
  }

  .open-book {
    border-width: 8px;
    min-height: auto;
  }

  .book-spine-crease {
    display: none;
  }

  .chapter-spread.active {
    flex-direction: column;
  }

  .page {
    padding: 30px 22px;
  }

  .page-left {
    border-right: none;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
  }

  .polaroid-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .chapter-roman-numeral {
    font-size: 3.2rem;
  }

  .chapter-title {
    font-size: 1.7rem;
  }

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