/* ==========================================================================
   Maison du Choux — Grand 3D Artisan Portfolio Flipbook (2026 Physical Edition)
   Realistic Physics-Based Paper-Curl Engine with Luxury Leather & Gilt Casing
   ========================================================================== */

/* ── RESET & DESIGN TOKENS ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* French Patisserie Palette */
  --leather-base:     #2B170F;
  --leather-highlight:#4A2718;
  --leather-shadow:   #150B07;
  
  --gold-foil:        #D4AF37;
  --gold-sheen:       #F9E498;
  --gold-dark:        #8C6D1F;
  --gold-subtle:      rgba(212, 175, 55, 0.22);
  
  --paper-ivory:      #FAF6ED;
  --paper-edge:       #F1E7D0;
  --paper-shade:      #E4D4B5;
  --paper-shadow:     rgba(50, 28, 14, 0.14);
  
  --ink-primary:      #2A1E14;
  --ink-secondary:    #635041;
  --ink-muted:        #8F7968;
  
  --ribbon-red:       #A31D1D;
  --ribbon-shadow:    rgba(163, 29, 29, 0.45);
  
  --green-avail:      #1E7E34;
  --green-avail-bg:   rgba(30, 126, 52, 0.12);
  
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display:     'Cinzel', 'Playfair Display', Georgia, serif;
  --font-hand:        'Caveat', cursive, sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #F6EDE1;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 25%, #FFF9F2 0%, #F5EAE0 60%, #E9DACB 100%);
  color: var(--ink-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SITE TOP HEADER ──────────────────────────────────────────────────────── */
.gallery-header {
  background: var(--leather-base);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gallery-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-sheen);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 180ms ease;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-back-link:hover {
  color: #FFFFFF;
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(-3px);
}

.gallery-header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-emblem {
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-brand-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-sheen);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: all 180ms ease;
}

.gallery-header-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.45);
}

/* ── MAIN CONTENT CONTAINER ───────────────────────────────────────────────── */
.gallery-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3.5rem;
  gap: 1.5rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── BOOK TITLE & VINTAGE BANNER ──────────────────────────────────────────── */
.book-title-area {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--leather-base);
  color: var(--gold-sheen);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gold-foil);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 8px rgba(43, 23, 15, 0.15);
}

.badge-sparkle {
  color: var(--gold-foil);
  font-size: 0.65rem;
}

.book-main-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--leather-base);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.book-sub-heading {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--ink-secondary);
  max-width: 580px;
  line-height: 1.5;
}

/* ── TABS SWITCHER (KARYA vs RENTAL) ──────────────────────────────────────── */
.book-tabs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.book-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(43, 23, 15, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 0.3rem;
  gap: 0.4rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.06);
}

.book-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms ease;
  white-space: nowrap;
}

.book-tab-btn.is-active {
  background: linear-gradient(135deg, var(--leather-highlight) 0%, var(--leather-base) 100%);
  color: var(--paper-ivory);
  box-shadow: 0 4px 14px rgba(43, 23, 15, 0.3);
  border: 1px solid var(--gold-dark);
}

.book-tab-btn:not(.is-active):hover {
  background: rgba(43, 23, 15, 0.07);
  color: var(--leather-base);
}

.tab-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.3);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.book-tab-btn.is-active .tab-counter {
  background: var(--gold-foil);
  color: var(--leather-base);
}

.tab-description {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 520px;
  line-height: 1.45;
  font-style: italic;
}

/* ==========================================================================
   GRAND 3D LUXURY BOOK STAGE & HARDCOVER CASING
   ========================================================================== */
.book-grand-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}

/* Ambient Wooden Table Drop Shadow */
.book-table-shadow {
  position: absolute;
  bottom: -15px;
  width: 95%;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(30, 15, 8, 0.55) 0%, rgba(30, 15, 8, 0.2) 50%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

/* Leather Hardcover Outer Shell */
.book-hardcover {
  position: relative;
  width: 100%;
  min-height: 620px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 39, 24, 0.4) 0%, transparent 80%),
    linear-gradient(135deg, var(--leather-highlight) 0%, var(--leather-base) 60%, var(--leather-shadow) 100%);
  border-radius: 8px 18px 18px 8px;
  padding: 16px 20px 20px 20px;
  box-shadow:
    0 30px 65px -15px rgba(26, 12, 6, 0.65),
    0 12px 28px -5px rgba(26, 12, 6, 0.4),
    inset 0 0 16px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  z-index: 2;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gold Foil Stamped Inset Border Line */
.cover-gold-trim {
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px 14px 14px 6px;
  pointer-events: none;
  z-index: 5;
}

/* Vintage Gilded Brass Corner Protectors */
.corner-brass {
  position: absolute;
  width: 34px;
  height: 34px;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(135deg, var(--gold-sheen) 0%, var(--gold-foil) 50%, var(--gold-dark) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.corner-tl {
  top: 0; left: 0;
  border-radius: 6px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.corner-tr {
  top: 0; right: 0;
  border-radius: 0 16px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.corner-bl {
  bottom: 0; left: 0;
  border-radius: 0 0 0 6px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.corner-br {
  bottom: 0; right: 0;
  border-radius: 0 0 16px 0;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ── 3D PHYSICAL PAPER STACK THICKNESS (EDGES) ────────────────────────────── */
.paper-stack-edge {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.edge-left {
  left: 3px;
  top: 16px;
  bottom: 20px;
  width: 12px;
  background: repeating-linear-gradient(
    to bottom,
    #FDF8EE 0px,
    #E8DCBE 1px,
    #CDBE9F 2px,
    #FDF8EE 3px
  );
  border-radius: 4px 0 0 4px;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.4);
}

.edge-right {
  right: 4px;
  top: 16px;
  bottom: 20px;
  width: 13px;
  background: repeating-linear-gradient(
    to bottom,
    #FDF8EE 0px,
    #E8DCBE 1px,
    #CDBE9F 2px,
    #FDF8EE 3px
  );
  border-radius: 0 6px 6px 0;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.4);
}

.edge-bottom {
  left: 20px;
  right: 20px;
  bottom: 4px;
  height: 12px;
  background: repeating-linear-gradient(
    to right,
    #FDF8EE 0px,
    #E8DCBE 1px,
    #CDBE9F 2px,
    #FDF8EE 3px
  );
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}

/* ── CENTRAL BINDING SPINE (DESKTOP) ──────────────────────────────────────── */
.book-spine-binding {
  position: absolute;
  top: 16px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  background: linear-gradient(
    to right,
    rgba(20, 10, 5, 0.45) 0%,
    rgba(20, 10, 5, 0.15) 30%,
    transparent 50%,
    rgba(20, 10, 5, 0.15) 70%,
    rgba(20, 10, 5, 0.45) 100%
  );
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine-thread {
  width: 2px;
  height: 94%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 18px,
    var(--gold-dark) 18px,
    var(--gold-sheen) 26px,
    transparent 26px
  );
  opacity: 0.8;
}

/* ── SILK BOOKMARK RIBBON ─────────────────────────────────────────────────── */
.silk-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: calc(100% + 44px);
  background: linear-gradient(to right, #801414 0%, var(--ribbon-red) 50%, #680E0E 100%);
  box-shadow: 2px 4px 12px var(--ribbon-shadow), 0 2px 5px rgba(0,0,0,0.4);
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
}

.silk-ribbon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: transparent;
  border-left: 10px solid var(--ribbon-red);
  border-right: 10px solid var(--ribbon-red);
  border-bottom: 10px solid transparent;
}

/* ── STAGE VIEWPORT & STPAGEFLIP MOUNT ─────────────────────────────────────── */
.book-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.flip-book-container {
  width: 100%;
  height: 100%;
  touch-action: pan-y; /* Vertical page scroll allowed; horizontal captured by flipbook */
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

/* ==========================================================================
   PAGE STYLING (INSIDE PHYSICAL FLIPBOOK)
   ========================================================================== */
.book-page {
  background-color: var(--paper-ivory);
  box-shadow: inset 0 0 30px rgba(74, 44, 20, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle Realistic Curvature at Binding Edge */
.book-page.--left {
  background:
    linear-gradient(to right, rgba(0,0,0,0.06) 0%, transparent 5%),
    linear-gradient(to left, rgba(43, 23, 15, 0.16) 0%, rgba(43, 23, 15, 0.03) 15%, transparent 35%),
    var(--paper-ivory);
  border-right: 1px solid rgba(43, 23, 15, 0.15);
}

.book-page.--right {
  background:
    linear-gradient(to left, rgba(0,0,0,0.05) 0%, transparent 5%),
    linear-gradient(to right, rgba(43, 23, 15, 0.16) 0%, rgba(43, 23, 15, 0.03) 15%, transparent 35%),
    var(--paper-ivory);
}

/* Page Inner Content Container */
.page-inner-content {
  width: 100%;
  height: 100%;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

/* Header Row of the Page */
.page-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.35rem;
  flex-shrink: 0;
}

.page-folio-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-number-tag {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* Photo Showcase Frame */
.page-art-frame {
  position: relative;
  height: 220px;
  flex-shrink: 0;
  background: #EFE6D6;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.08),
    0 4px 14px rgba(43, 23, 15, 0.08);
}

.page-art-frame.frame-rental {
  height: 175px;
}

.page-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
  pointer-events: none; /* Prevent browser native image dragging */
}

.page-art-frame:hover img {
  transform: scale(1.03);
}

.art-vintage-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(36, 20, 12, 0.88);
  color: var(--gold-sheen);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--gold-dark);
}

/* Description & Story Section */
.page-narrative {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.page-item-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--leather-base);
  line-height: 1.2;
}

.page-item-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* Rental Specific Pricing Box */
.rental-pricing-box {
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px dashed rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.rental-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rate-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.rate-amount {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--leather-base);
}

.btn-book-rental {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #25D366 0%, #15803D 100%);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.15rem;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  transition: all 180ms ease;
  pointer-events: auto !important; /* Ensure clickability inside flipbook */
  cursor: pointer;
  position: relative;
  z-index: 25;
}

.btn-book-rental:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.4);
}

/* Blank / Cover Ending Sheet */
.page-blank-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  color: var(--ink-muted);
  opacity: 0.75;
}

.blank-crest {
  font-size: 3rem;
  color: var(--gold-foil);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.blank-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--leather-highlight);
}

/* ==========================================================================
   NAVIGATION HUD (BELOW BOOK)
   ========================================================================== */
.book-nav-hud {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper-ivory);
  border: 1.5px solid var(--gold-foil);
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  box-shadow: 0 6px 20px rgba(43, 23, 15, 0.12);
  margin-top: 0.5rem;
  user-select: none;
}

.hud-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--leather-base);
  color: var(--gold-sheen);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.hud-nav-btn:hover:not(:disabled) {
  background: var(--leather-highlight);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 23, 15, 0.25);
}

.hud-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.hud-page-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.hud-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.hud-page-number {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--leather-base);
}

/* Interactive Tips */
.book-interactive-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.tip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tip-sep {
  opacity: 0.4;
}

/* Rental Notice Card */
.rental-notice-card {
  display: none;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
  border: 1.5px solid var(--gold-foil);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(43, 23, 15, 0.06);
}

.rental-notice-card.is-visible {
  display: flex;
}

.rental-notice-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.rental-notice-text {
  flex: 1;
}

.rental-notice-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--leather-base);
  margin-bottom: 0.2rem;
}

.rental-notice-text p {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.rental-notice-cta {
  flex-shrink: 0;
  background: var(--leather-base);
  color: var(--gold-sheen);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--gold-dark);
  transition: all 180ms ease;
  white-space: nowrap;
}

.rental-notice-cta:hover {
  background: var(--leather-highlight);
  color: #FFFFFF;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.gallery-footer {
  background: var(--leather-base);
  color: var(--paper-ivory);
  border-top: 2px solid var(--gold-dark);
  padding: 2rem 1.25rem;
  text-align: center;
  margin-top: auto;
}

.footer-links a {
  color: var(--gold-sheen);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.6rem;
  opacity: 0.5;
}

.footer-copyright {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(250, 246, 237, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 860px) {
  .book-grand-stage {
    min-height: 560px;
  }
  
  .book-hardcover {
    min-height: 540px;
    padding: 12px 14px 14px 14px;
  }

  .page-inner-content {
    padding: 1.1rem 1.2rem;
  }

  .page-art-frame {
    height: 190px;
  }

  .page-art-frame.frame-rental {
    height: 155px;
  }
}

@media (max-width: 767px) {
  /* On mobile and narrow tablets: Single-page luxury book view */
  .book-grand-stage {
    min-height: 600px;
    max-width: 480px;
  }

  .book-hardcover {
    min-height: 580px;
    padding: 12px 14px 14px 14px;
    border-radius: 12px;
  }

  /* No center spine on mobile single-page view */
  .book-spine-binding {
    display: none !important;
  }

  .edge-left {
    display: none !important;
  }

  .silk-ribbon {
    right: 22px;
    left: auto;
    transform: none;
    width: 16px;
  }

  .gallery-main {
    padding: 1.25rem 0.6rem 2.5rem;
  }

  .book-tabs {
    width: 100%;
    max-width: 350px;
    justify-content: center;
    padding: 0.25rem;
    gap: 0.25rem;
  }

  .book-tab-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
  }

  .tab-counter {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .page-inner-content {
    padding: 1.1rem 1rem;
  }

  .page-art-frame {
    height: 190px;
  }

  .page-art-frame.frame-rental {
    height: 150px;
  }

  .book-nav-hud {
    gap: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .hud-nav-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .rental-notice-card.is-visible {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .header-brand-title {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .gallery-back-link span {
    display: none;
  }
  .gallery-back-link {
    padding: 0.4rem 0.6rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
