﻿/* ==========================================================================
   THE INVITATION PALACE - BLOG & JOURNAL UNIFIED STYLESHEET
   Standalone stylesheet containing all required styling for blog.html:
   - Luxury Typography & Custom Webfonts
   - CSS Variables & Global Resets
   - Top Vertical Marquee / Announcement Bar
   - Site Header & Glassy Responsive Navigation (Split Nav + Scrolled State)
   - Fullscreen Mobile Navigation Drawer & Backdrop
   - Unified Blog Hero Banner Header
   - Codrops BookBlock Page Flip Engine (3D Transitions)
   - Codrops 3D Bookshelf & Interactive Flip-Book Reader Spreads
   - Let's Begin (CTA Section) & Luxury Inquiry Modal
   - The Bombay Lettering Editorial Luxury Footer
   - Expandable Floating Social Action Pills (Instagram, WhatsApp, Facebook)
   ========================================================================== */


/* ==========================================================================
   CUSTOM LUXURY FONTS
   ========================================================================== */
@font-face {
  font-family: 'Absans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/absans.woff2') format('woff2'),
       url('../assets/fonts/absans.ttf') format('truetype'),
       url('https://static.wixstatic.com/ufonts/8c3f0e_59fb57afe89a464494e49a7d8036fb75/woff2/file.woff2') format('woff2');
}

@font-face {
  font-family: 'Tangier-Medium';
  src: url('../assets/fonts/Tangier-Medium.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nomark';
  src: url('../assets/fonts/nomark.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Reforma-1969';
  src: url('../assets/fonts/reforma-1969.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Reforma-2018';
  src: url('../assets/fonts/reforma-2018.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blackstone';
  src: url('../assets/fonts/blackstone.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeaufortPro-Light';
  src: url('../assets/fonts/BeaufortPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   1. GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */
:root {
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --color-dark: #2C3531;
  --color-light: #FAF8F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-sans);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   2. SECTION 1: TOP VERTICAL MARQUEE (ANNOUNCEMENT BAR)
   ========================================================================== */
:root {
  --marquee-bg: #3B0301;
  /* Background color (Parisian tone) */
  --marquee-bg-hover: #360E05;
  --marquee-text: #F7F5F0;
  /* Warm ivory text */
  --marquee-gold: #D4AF37;
  /* Luxury gold accent */
  --marquee-height: 40px;
  /* Desktop bar height */
  --marquee-font: 'Montserrat', sans-serif;
}

/* Outer Bar */
.marquee-bar {
  background-color: var(--marquee-bg);
  color: var(--marquee-text);
  width: 100%;
  height: var(--marquee-height);
  position: relative;
  overflow: hidden;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.marquee-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Vertical Scrolling Viewport & Track */
.marquee-viewport {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Individual Marquee Items */
.marquee-item {
  height: var(--marquee-height);
  min-height: var(--marquee-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

.marquee-link,
.marquee-text {
  color: var(--marquee-text);
  text-decoration: none;
  font-family: var(--marquee-font);
  font-size: clamp(10.5px, 1.8vw, 12px);
  font-weight: 500;
  letter-spacing: clamp(1.2px, 0.28vw, 2.6px);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.marquee-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Navigation Arrow Controls */
.marquee-nav-btn {
  background: transparent;
  border: none;
  color: var(--marquee-text);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 11px;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.marquee-nav-btn:hover {
  opacity: 1;
}

.marquee-nav-btn.prev {
  left: 10px;
}

.marquee-nav-btn.next {
  right: 10px;
}

.marquee-bar:hover .marquee-track.is-paused {
  cursor: pointer;
}

/* Responsive Marquee (Tablet & Mobile) */
@media (max-width: 768px) {
  :root {
    --marquee-height: 38px;
  }

  .marquee-item {
    height: var(--marquee-height);
    min-height: var(--marquee-height);
  }

  .marquee-link,
  .marquee-text {
    letter-spacing: 1.5px;
  }

  .marquee-nav-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --marquee-height: 36px;
  }

  .marquee-item {
    padding: 0 4px;
  }

  .marquee-link,
  .marquee-text {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
}


/* ==========================================================================
   3. SECTION 2: SITE HEADER / NAVIGATION
   ========================================================================== */
:root {
  --header-height: 120px;
  /* Desktop header natural height */

  /* ==========================================================================
     LIGHT LUXURY HEADER GRADIENT (NO GLASS BLUR)
     Pure light gradient color with balanced contrast over both
     dark hero imagery and light/white backgrounds
     ========================================================================== */
  --header-bg-pineider: linear-gradient(180deg,
      rgba(240, 240, 240, 0.25) 0%,
      rgba(240, 240, 240, 0.15) 40%,
      rgba(240, 240, 240, 0.08) 75%,
      rgba(240, 240, 240, 0.02) 100%);

  --header-bg-scrolled: #38040e00;
  /* Parisian luxury tone matching marquee bar */
}

.site-header {
  width: 100%;
  height: var(--header-height);
  background: #FAF8F5;
  background-color: #FAF8F5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  padding: 0;
  box-sizing: border-box;
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Sticky Header Scrolled State (Over white backgrounds & deep page scroll) */
.site-header.is-scrolled {
  background: #3B0301;
  /* backdrop-filter: blur(12px); */
  /* -webkit-backdrop-filter: blur(12px); */
  height: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
}

.site-header.is-scrolled .logo-img {
  max-height: 60px;
  height: 60px;
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
}

/* Split Navigation (Left & Right) */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 48px;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
  position: relative;
  text-shadow: none;
}

.nav-link:hover {
  color: #D4AF37;
  opacity: 0.9;
}

/* Center Brand Logo */
.brand-logo {
  margin: 0 clamp(28px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 100px;
  /* Clearly visible luxury emblem size */
  max-height: 95px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-logo a:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Mobile Hamburger Menu Button (Hidden by default on Desktop) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 0;
  box-sizing: border-box;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* Top bar: Full width */
.mobile-menu-toggle span:nth-child(1) {
  width: 27px;
}

/* Middle bar: Shorter & right-aligned (matching reference image) */
.mobile-menu-toggle span:nth-child(2) {
  width: 17px;
  margin-left: auto;
}

/* Bottom bar: Full width */
.mobile-menu-toggle span:nth-child(3) {
  width: 27px;
}

/* ==========================================================================
   MOBILE NAVIGATION (OPENS RIGHT BELOW #3B0301 NAVBAR - WHITE & BLACKISH THEME)
   ========================================================================== */

/* Hide marquee announcement bar when mobile menu is open */
body.menu-open .marquee-bar {
  display: none !important;
}

/* Navbar pinned at top with #3B0301 when mobile menu is open */
body.menu-open .site-header {
  background: #3B0301 !important;
  background-color: #3B0301 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 1000001 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

body.menu-open .site-header .logo-img {
  height: 44px !important;
  max-height: 46px !important;
}

body.menu-open .site-header .mobile-menu-toggle span {
  background-color: #ffffff !important;
}

/* Mobile Navigation Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  overscroll-behavior: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: opacity;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Navigation Drawer: White type background with blackish font */
.mobile-nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #111111;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  /* Smooth drop-down transition opening right below navbar */
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  will-change: transform, opacity;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .mobile-nav-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    padding: 0 !important;
  }
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-body {
  flex: 1;
  padding: 14px 0 32px 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Item Row with Down-Chevron, subtle divider, and blackish font color */
.mobile-nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  width: 100%;
  box-sizing: border-box;
  color: #111111;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.mobile-nav-link-title {
  font-family: 'Cinzel', var(--font-serif), Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #111111;
  transition: color 0.2s ease;
}

.mobile-nav-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  transition: transform 0.25s ease, color 0.2s ease;
}

.mobile-nav-link-arrow svg {
  display: block;
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Hover & Active States */
.mobile-nav-link:hover,
.mobile-nav-link:active {
  background-color: rgba(0, 0, 0, 0.04);
}

.mobile-nav-link:hover .mobile-nav-link-title,
.mobile-nav-link:active .mobile-nav-link-title {
  color: #b58d3d;
}

.mobile-nav-link:hover .mobile-nav-link-arrow,
.mobile-nav-link:active .mobile-nav-link-arrow {
  color: #b58d3d;
  transform: translateX(3px);
}

.mobile-nav-link.active .mobile-nav-link-title {
  color: #b58d3d !important;
}

.mobile-nav-link.active .mobile-nav-link-arrow {
  color: #b58d3d !important;
}

/* When mobile menu is open: lock background scroll cleanly without disabling touch interactions */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Header Responsive (Tablet & Mobile: 880px and below) */
@media (max-width: 880px) {
  :root {
    --header-height: 84px;
    /* Mobile header natural height */
  }

  .site-header {
    background: #FAF8F5;
    background-color: #FAF8F5;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    padding: 0;
    box-sizing: border-box;
  }

  .site-header.is-scrolled {
    background: #3B0301;
    height: 64px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  }

  .site-header.is-scrolled .logo-img {
    height: 44px;
    max-height: 46px;
  }

  .nav-left,
  .nav-right {
    display: none;
    /* Hide desktop split links */
  }

  .header-container {
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
  }

  /* Logo positioned on the LEFT - perfectly vertically centered */
  .brand-logo {
    margin: 0;
    order: 1;
    display: flex;
    align-items: center;
    align-self: center;
    line-height: 0;
  }

  .brand-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
  }

  .logo-img {
    height: 45px;
    max-height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
  }

  /* Hamburger menu positioned on the RIGHT, perfectly vertically centered middle with logo */
  .mobile-menu-toggle {
    display: flex !important;
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none !important;
    align-self: center;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 0;
    box-sizing: border-box;
    z-index: 1000002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-menu-toggle span {
    display: block;
    height: 2px;
    background-color: #333333;
    border-radius: 2px;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, width 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  }

  /* Top bar: Full width (27px) - Unchanged */
  .mobile-menu-toggle span:nth-child(1) {
    width: 27px;
  }

  /* Middle bar: Shorter & right-aligned (17px) - Unchanged */
  .mobile-menu-toggle span:nth-child(2) {
    width: 17px;
    margin-left: auto;
  }

  /* Bottom bar: Full width (27px) - Unchanged */
  .mobile-menu-toggle span:nth-child(3) {
    width: 27px;
  }

  .site-header.is-scrolled .mobile-menu-toggle span {
    background-color: #ffffff;
  }

  /* Morphing Hamburger into 'X' when menu is open */
  body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
  }

  body.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  body.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==========================================================================
   UNIFIED PAGE HERO HEADER & BOTTOM PATTERN
   Applies consistent typography, sizing, and bottom pattern to all pages:
   - Our Collections (html/collections.html)
   - Our Story (html/story.html)
   - Our Process (html/process.html)
   ========================================================================== */
.page-hero-section,
.collection-hero,
.story-hero,
.process-hero-section {
  position: relative;
  text-align: center;
  padding: 45px 20px 28px 20px;
  background-color: transparent;
}

.page-hero-title,
.collection-hero-title,
.story-hero-title,
.process-hero-title {
  font-family: 'Cinzel', 'Libre Caslon Display', 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(24px, 3.5vw, 36px) !important;
  font-weight: 500 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
  text-align: center !important;
  margin: 0 auto !important;
  line-height: 1.25 !important;
}

/* Unified Luxury Bottom Pattern (Dual Gradient Hairline + Centered Diamond) */
.page-hero-divider,
.collection-divider,
.story-divider,
.process-hero-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 140px !important;
  max-width: 140px !important;
  min-width: 140px !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  margin: 18px auto 0 auto !important;
  padding: 0 !important;
}

.page-hero-divider::before,
.page-hero-divider::after,
.collection-divider::before,
.collection-divider::after,
.story-divider::before,
.story-divider::after,
.process-hero-divider::before,
.process-hero-divider::after {
  content: '' !important;
  flex: 1 1 0% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #b58d3d) !important;
}

.page-hero-divider::after,
.collection-divider::after,
.story-divider::after,
.process-hero-divider::after {
  background: linear-gradient(90deg, #b58d3d, transparent) !important;
}

.page-hero-divider-icon,
.collection-divider-icon,
.story-divider-icon,
.process-hero-divider-icon {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  background-color: #b58d3d !important;
  transform: rotate(45deg) !important;
  flex-shrink: 0 !important;
}

/* Unified Luxury Subtitle Line (Below Page Hero Title & Bottom Pattern) */
.page-hero-subtitle,
.collection-hero-subtitle,
.story-hero-subtitle,
.process-hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(17px, 2.2vw, 21px) !important;
  font-style: italic !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
  color: #555555 !important;
  max-width: 720px !important;
  margin: 18px auto 0 auto !important;
  text-align: center !important;
  display: block !important;
}

@media screen and (max-width: 768px) {
  .page-hero-section,
  .collection-hero,
  .story-hero,
  .process-hero-section {
    padding: 35px 16px 22px 16px;
  }

  .page-hero-divider,
  .collection-divider,
  .story-divider,
  .process-hero-divider {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    gap: 12px !important;
    margin-top: 14px !important;
  }

  .page-hero-subtitle,
  .collection-hero-subtitle,
  .story-hero-subtitle,
  .process-hero-subtitle {
    font-size: 16px !important;
    margin-top: 14px !important;
    padding: 0 10px !important;
  }
}




/* ==========================================================================

   CODROPS BOOKBLOCK PAGE FLIP ENGINE

   ========================================================================== */

.bb-bookblock {
  width: 400px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
  -webkit-perspective: 1300px;
  -moz-perspective: 1300px;
  perspective: 1300px;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bb-page {
  position: absolute;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
}

.bb-vertical .bb-page {
  width: 50%;
  height: 100%;
  left: 50%;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  transform-origin: left center;
}

.bb-horizontal .bb-page {
  width: 100%;
  height: 50%;
  top: 50%;
  -webkit-transform-origin: center top;
  -moz-transform-origin: center top;
  transform-origin: center top;
}

.bb-page > div,
.bb-outer,
.bb-content,
.bb-inner {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: #fff;
}

.bb-outer {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bb-vertical .bb-content {
  width: 200%;
}

.bb-horizontal .bb-content {
  height: 200%;
}

.bb-page > div {
  width: 100%;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.bb-page > div:not(:only-child) {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bb-vertical .bb-back {
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.bb-horizontal .bb-back {
  -webkit-transform: rotateX(-180deg);
  -moz-transform: rotateX(-180deg);
  transform: rotateX(-180deg);
}

.bb-outer {
  width: 100%;
  overflow: hidden;
  z-index: 999;
}

.bb-overlay, 
.bb-flipoverlay {
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.bb-flipoverlay {
  background-color: rgba(0, 0, 0, 0.2);
}

/* */

.bb-bookblock.bb-vertical > div.bb-page:first-child,
.bb-bookblock.bb-vertical > div.bb-page:first-child .bb-back {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.bb-bookblock.bb-horizontal > div.bb-page:first-child,
.bb-bookblock.bb-horizontal > div.bb-page:first-child .bb-back {
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  transform: rotateX(180deg);
}

/* Content display */
.bb-vertical .bb-front .bb-content {
  left: -100%;
}

.bb-horizontal .bb-front .bb-content {
  top: -100%;
}

/* Flipping classes */
.bb-vertical .bb-flip-next,
.bb-vertical .bb-flip-initial {
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.bb-vertical .bb-flip-prev {
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

.bb-horizontal .bb-flip-next,
.bb-horizontal .bb-flip-initial {
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  transform: rotateX(180deg);
}

.bb-horizontal .bb-flip-prev {
  -webkit-transform: rotateX(0deg);
  -moz-transform: rotateX(0deg);
  transform: rotateX(0deg);
}

.bb-vertical .bb-flip-next-end {
  -webkit-transform: rotateY(-15deg);
  -moz-transform: rotateY(-15deg);
  transform: rotateY(-15deg);
}

.bb-vertical .bb-flip-prev-end {
  -webkit-transform: rotateY(-165deg);
  -moz-transform: rotateY(-165deg);
  transform: rotateY(-165deg);
}

.bb-horizontal .bb-flip-next-end {
  -webkit-transform: rotateX(15deg);
  -moz-transform: rotateX(15deg);
  transform: rotateX(15deg);
}

.bb-horizontal .bb-flip-prev-end {
  -webkit-transform: rotateX(165deg);
  -moz-transform: rotateX(165deg);
  transform: rotateX(165deg);
}

.bb-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background: #fff;
}

/* No JS */
.no-js .bb-bookblock, 
.no-js ul.bb-custom-grid li {
  width: auto;
  height: auto;
}

.no-js .bb-item {
  display: block;
  position: relative;
}

/* ==========================================================================

   CODROPS 3D BOOKSHELF & READER SPREADS

   ========================================================================== */

/* Background Scroll Lock */

html.hide-overflow,
body.hide-overflow {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none !important;
}

.bookshelf-main {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.bookshelf-section {
    padding: 20px 20px 80px 20px;
}

.bookshelf {
    position: relative;
    margin: 10px auto 0;
    list-style: none;
    text-align: center;
}

.bookshelf figure {
    position: relative;
    display: inline-block;
    margin: 20px auto;
    padding: 45px 0;
    max-width: 90%;
    width: 324px;
    vertical-align: top;
    text-align: center;
}

/* Perspectiv wrapper, figure and book */

.perspective {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-perspective: 1800px;
    perspective: 1800px;
}

.book {
    position: relative;
    margin: 0 auto;
    width: 180px;
    height: 260px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.book div {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cover {
    z-index: 10;
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.cover::before {
    position: absolute;
    left: 0;
    z-index: 10;
    visibility: hidden;
    width: 20px;
    height: 100%;
    background: #000;
    content: '';
    -webkit-transform: translateX(-100%) rotateY(-90deg);
    transform: translateX(-100%) rotateY(-90deg);
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.front {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.inner {
    border-width: 3px;
    border-style: solid;
    background-color: #fff;
}

.bookshelf .book .inner-left {
    border-right: none;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.inner-right { border-left: none }

/* Buttons and figcaption */

.buttons {
    margin-top: 5px;
    text-align: center;
}

.buttons a {
    display: inline-block;
    padding: 0 10px;
    color: #8c827a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.buttons a:first-child:not(:only-child) { border-right: 1px solid rgba(181, 141, 61, 0.4); }

.buttons a:hover,
.buttons a:active { color: #b58d3d; }

.bookshelf figcaption {
    position: relative;
    top: 100%;
    padding: 0 1em;
    text-align: center;
}

.bookshelf figcaption h2 {
    margin: 1.2em 0 0 0;
    font-weight: 500;
    font-size: 1.7rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    color: #1a1716;
    letter-spacing: 0.04em;
}

.bookshelf figcaption h2 span {
    position: relative;
    display: block;
    margin: 0.8em 0 0 0;
    padding: 0.8em 0 0 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    font-size: 0.72rem;
    font-family: "Cinzel", serif;
    color: #a88a58;
}

.bookshelf figcaption h2 span::before,
.details ul li:first-child::after {
    position: absolute;
    top: 0;
    left: 35%;
    width: 30%;
    height: 1px;
    background: rgba(181, 141, 61, 0.25);
    content: '';
}

/* Details panel */

.details {
    position: absolute;
    top: 0;
    width: 100%;
}

.details ul,
.csstransformspreserve3d .details ul {
    margin: 0;
    padding: 60px 25px 0 68px;
    list-style: none;
    text-align: left;
    font-family: 'Martel Sans', sans-serif;
}

.details ul li {
    margin: 0 0 10px;
    font-weight: 300;
    font-size: 0.85rem;
    color: #4a4542;
    line-height: 1.5;
}

.details ul li:not(:first-child) {
    font-weight: 700;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #1a1716;
    line-height: 1.6;
    text-transform: uppercase;
}

.details ul li:first-child {
    position: relative;
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3a3533;
}

.details ul li:first-child::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 25%;
    height: 1px;
    background: rgba(181, 141, 61, 0.35);
    content: '';
}

.close-details {
    position: absolute;
    top: 14px;
    right: 16px;
    visibility: hidden;
    width: 24px;
    height: 24px;
    font-size: 0;
    opacity: 0.6;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.details-open .close-details { visibility: visible }

.close-details:hover { opacity: 1 }

.close-details::before,
.close-details::after {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #333;
    content: '';
}

.close-details::before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.close-details::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Custom BookBlock */

.bb-custom-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 10px;
    width: 100%;
    height: 100%;
    border-width: 3px 10px;
    border-style: solid;
    touch-action: none;
    overscroll-behavior: none;
}

.bb-custom-wrapper::before,
.bb-custom-wrapper::after {
    position: absolute;
    top: 0;
    z-index: 10;
    width: 10px;
    height: 100%;
    background: -webkit-linear-gradient(left, #dddddd 33.33%, #f0f0f0 33.33%, #f0f0f0 66.66%, white 66.66%);
    background: linear-gradient(to right, #dddddd 33.33%, #f0f0f0 33.33%, #f0f0f0 66.66%, white 66.66%);
    background-size: 3px 100%;
    content: '';
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bb-custom-wrapper::before { left: 0 }

.bb-custom-wrapper::after { right: 0 }

.bb-custom-wrapper .bb-bookblock {
    width: 100%;
    height: 100%;
    -webkit-perspective: 2000px;
    perspective: 2000px;
}

.bb-custom-side {
    position: relative;
    float: left;
    overflow: hidden;
    width: 50%;
    height: 100%;
}

.bb-custom-side:first-child {
    border-right: 1px solid rgba(181, 141, 61, 0.12);
}

.bb-custom-side::before,
.bb-custom-side:first-child::before {
    display: none !important;
    content: none !important;
}

/* Page Layout 1 (Pages 3 & 4: Story Chapter Full-Page Spread) */
.page-layout-1 {
    background: #ffffff;
    position: relative;
    height: 100%;
    width: 50%;
    float: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 7% 9%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(181, 141, 61, 0.25) transparent;
}

.page-layout-1::-webkit-scrollbar {
    width: 4px;
}

.page-layout-1::-webkit-scrollbar-thumb {
    background: rgba(181, 141, 61, 0.25);
    border-radius: 4px;
}

.page-layout-1:first-child {
    background: #ffffff;
}

.page-layout-1-inner {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Dedicated Desktop & Mobile content containers for Pages 3 & 4 */
.book-content-desktop {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
}

.book-content-mobile {
    display: none !important;
}

.page-layout-1 h3 {
    text-align: center;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-family: 'Cinzel', serif;
    color: #3B0301;
    margin: 0 0 16px 0;
    letter-spacing: 2px;
    line-height: 1.25;
}

.page-layout-1 h3 span {
    display: block;
    padding: 8px 0 12px;
    border-top: 1px solid #b58d3d;
    border-bottom: 1px solid #b58d3d;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    color: #b58d3d;
    line-height: 1.2;
    margin-top: 8px;
}

.page-layout-1 p {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    text-align: justify;
    font-style: normal;
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: clamp(0.92rem, 1.35vw, 1.15rem);
    line-height: 1.75;
    color: #4a4542;
}

.page-layout-1 p:last-child {
    margin-bottom: 0;
}

.page-layout-2 {
    background: #ffffff;
    position: relative;
    height: 100%;
}

.page-layout-2:first-child {
    background: #ffffff;
}

.page-layout-2-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7% 9%;
    box-sizing: border-box;
    text-align: center;
}

.spec-header {
    margin-bottom: 22px;
    text-align: center;
}

.spec-kicker {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b58d3d;
    margin-bottom: 6px;
    font-weight: 600;
}

.spec-heading {
    margin: 0;
    font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: #3B0301;
    letter-spacing: 1px;
    line-height: 1.2;
}

.spec-divider {
    width: 48px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #b58d3d, transparent);
    margin: 10px auto 0;
}

.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    width: 100%;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(181, 141, 61, 0.25);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #b58d3d;
    line-height: 1;
    min-width: 42px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.spec-text {
    flex: 1;
}

.spec-item h3 {
    margin: 0 0 6px 0;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3B0301;
    font-weight: 600;
    line-height: 1.3;
}

.spec-item p {
    margin: 0;
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4a4542;
}

.page-layout-3:last-child {
    background: url(https://i.pinimg.com/736x/d9/0b/7e/d90b7ea916ae9e3dceb1fff4b94b46ce.jpg) no-repeat center center;
    background-size: cover;
}

.page-layout-3 div {
    padding: 12% 10%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-layout-3 h3 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 2.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    color: #1a1716;
    line-height: 1.15;
}

.page-layout-3 .bb-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #b58d3d;
    text-transform: uppercase;
    margin: 0 0 14px 0;
}

.page-layout-3 .bb-desc {
    margin: 0;
    font-style: normal;
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #4a4542;
}

.bb-nav-pages {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #b58d3d;
    text-transform: uppercase;
    z-index: 1000;
}

/* Book navigation */

.bb-custom-wrapper > nav a {
    position: absolute;
    z-index: 1000;
    font-size: 0;
    opacity: 0.4;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bb-custom-wrapper > nav a:hover { opacity: 1 }

.bb-custom-wrapper > nav a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(221, 221, 221, 0.7);
}

.bb-nav-prev,
.bb-nav-next {
    top: 50%;
    left: 25px;
    margin-top: -15px;
}

.bb-nav-close {
    top: 15px;
    right: 25px;
}

.bb-nav-next {
    right: 25px;
    left: auto;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.bb-custom-wrapper > nav a::before,
.bb-custom-wrapper > nav a::after {
    position: absolute;
    top: 0;
    left: 25%;
    width: 1px;
    height: 50%;
    background: #333;
    content: '';
}

.bb-custom-wrapper > nav a.bb-nav-close::before,
.bb-custom-wrapper > nav a.bb-nav-close::after {
    top: 15%;
    left: 50%;
    height: 70%;
}

.bb-custom-wrapper > nav a:not(.bb-nav-close)::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

.bb-custom-wrapper > nav a:not(.bb-nav-close)::after {
    top: 50%;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

.bb-custom-wrapper > nav a.bb-nav-close::before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.bb-custom-wrapper > nav a.bb-nav-close::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/****** Custom book colors and borders *****/

/* Custom book covers */

.no-csstransforms3d .book[data-book="book-1"],
.no-js .book[data-book="book-1"],
.book[data-book="book-1"] .front {
    background: url(../assets/blog/bookfront.png) no-repeat center center;
    background-size: cover;
}

.book[data-book="book-1"] .inner {
    border-color: #b58d3d;
    background-color: #faf7f2;
}

.book[data-book="book-1"] .cover::before {
    background: url(../assets/blog/bookside.png) no-repeat center center;
    background-size: 100% 100%;
}

#book-1 { border-color: #b58d3d }

.no-csstransforms3d .book[data-book="book-2"],
.no-js .book[data-book="book-2"],
.book[data-book="book-2"] .front {
    background: url(../img/cover2.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover2.svg), #f6a7a5;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover2.svg), #f6a7a5;
}

.book[data-book="book-2"] .inner { border-color: #f6a7a5 }

.book[data-book="book-2"] .cover::before {
    background: url(../img/spine2.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine2.svg), #f6a7a5;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine2.svg), #f6a7a5;
}

.no-csstransforms3d .book[data-book="book-3"],
.no-js .book[data-book="book-3"],
.book[data-book="book-3"] .front {
    background: url(../img/cover3.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover3.svg), #ebc989;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover3.svg), #ebc989;
}

.book[data-book="book-3"] .inner { border-color: #ebc989 }

.book[data-book="book-3"] .cover::before {
    background: url(../img/spine3.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine3.svg), #ebc989;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine3.svg), #ebc989;
}

.no-csstransforms3d .book[data-book="book-4"],
.no-js .book[data-book="book-4"],
.book[data-book="book-4"] .front {
    background: url(../img/cover4.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover4.svg), #a6a1a5;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover4.svg), #a6a1a5;
}

.book[data-book="book-4"] .inner { border-color: #a6a1a5 }

.book[data-book="book-4"] .cover::before {
    background: url(../img/spine4.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine4.svg), #a6a1a5;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine4.svg), #a6a1a5;
}

.no-csstransforms3d .book[data-book="book-5"],
.no-js .book[data-book="book-5"],
.book[data-book="book-5"] .front {
    background: url(../img/cover5.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover5.svg), #4cbb97;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover5.svg), #4cbb97;
}

.book[data-book="book-5"] .inner { border-color: #4cbb97 }

.book[data-book="book-5"] .cover::before {
    background: url(../img/spine5.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine5.svg), #4cbb97;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine5.svg), #4cbb97;
}

.no-csstransforms3d .book[data-book="book-6"],
.no-js .book[data-book="book-6"],
.book[data-book="book-6"] .front {
    background: url(../img/cover6.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover6.svg), #a1cae5;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover6.svg), #a1cae5;
}

.book[data-book="book-6"] .inner { border-color: #a1cae5 }

.book[data-book="book-6"] .cover::before {
    background: url(../img/spine6.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine6.svg), #a1cae5;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine6.svg), #a1cae5;
}

.no-csstransforms3d .book[data-book="book-7"],
.no-js .book[data-book="book-7"],
.book[data-book="book-7"] .front {
    background: url(../img/cover7.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover7.svg), #ebe6e5;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover7.svg), #ebe6e5;
}

.book[data-book="book-7"] .inner { border-color: #ebe6e5 }

.book[data-book="book-7"] .cover::before {
    background: url(../img/spine7.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine7.svg), #ebe6e5;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine7.svg), #ebe6e5;
}

.no-csstransforms3d .book[data-book="book-8"],
.no-js .book[data-book="book-8"],
.book[data-book="book-8"] .front {
    background: url(../img/cover8.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover8.svg), #f8eb48;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover8.svg), #f8eb48;
}

.book[data-book="book-8"] .inner { border-color: #f8eb48 }

.book[data-book="book-8"] .cover::before {
    background: url(../img/spine8.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine8.svg), #f8eb48;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine8.svg), #f8eb48;
}

.no-csstransforms3d .book[data-book="book-9"],
.no-js .book[data-book="book-9"],
.book[data-book="book-9"] .front {
    background: url(../img/cover9.svg);
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover9.svg), #f7a56e;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(211, 211, 211, 0.1) 5%, rgba(255, 255, 255, 0.15) 5%, rgba(255, 255, 255, 0.1) 9%, rgba(0, 0, 0, 0.01) 100%), url(../img/cover9.svg), #f7a56e;
}

.book[data-book="book-9"] .inner { border-color: #f7a56e }

.book[data-book="book-9"] .cover::before {
    background: url(../img/spine9.svg);
    background: -webkit-linear-gradient(left, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine9.svg), #f7a56e;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 0.1) 50%, transparent 100%), url(../img/spine9.svg), #f7a56e;
}

/* border around bookblock same as book cover color*/

#book-1 { border-color: #b58d3d }

#book-2 { border-color: #f6a7a5 }

#book-3 { border-color: #ebc989 }

#book-4 { border-color: #a6a1a5 }

#book-5 { border-color: #4cbb97 }

#book-6 { border-color: #a1cae5 }

#book-7 { border-color: #ebe6e5 }

#book-8 { border-color: #f8eb48 }

#book-9 { border-color: #f7a56e }

/****** Transitions ******/

/* Book open / view inside */

.book {
    -webkit-transition: -webkit-transform 0.5s, opacity 0.3s 0.3s;
    transition: transform 0.5s, opacity 0.3s 0.3s;
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
}

.bookshelf figure.open .cover,
.csstransformspreserve3d .bookshelf figure.open .cover {
    -webkit-animation: openSmallBook 0.5s forwards;
    animation: openSmallBook 0.5s forwards;
}

.bookshelf figure.close .cover,
.csstransformspreserve3d .bookshelf figure.close .cover {
    -webkit-animation: closeSmallBook 0.5s forwards;
    animation: closeSmallBook 0.5s forwards;
}

.bookshelf figure.open .book {
    z-index: 1000;
    -webkit-animation: scaleUpSmallBook 0.5s forwards;
    animation: scaleUpSmallBook 0.5s forwards;
}

.bookshelf figure.close .book {
    -webkit-animation: scaleDownSmallBook 0.5s forwards;
    animation: scaleDownSmallBook 0.5s forwards;
}

.inner-right {
    background-color: #ddd;
    -webkit-transition: background-color 0.5s 0.25s;
    transition: background-color 0.5s 0.25s;
}

.open .inner-right {
    background-color: #f9f9f9;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.bb-custom-wrapper {
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: visibility 0s 0.5s;
    transition: visibility 0s 0.5s;
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
}

.bb-custom-wrapper.show {
    visibility: visible;
    -webkit-transition: visibility 0s;
    transition: visibility 0s;
    -webkit-animation: openBigBook 0.5s forwards;
    animation: openBigBook 0.5s forwards;
}

.no-cssanimations .bb-custom-wrapper.show { opacity: 1 }

.bb-custom-wrapper.hide {
    -webkit-animation: closeBigBook 0.5s forwards;
    animation: closeBigBook 0.5s forwards;
}

.no-cssanimations .bb-custom-wrapper.hide { opacity: 0 }

/* Details open / view details */

.bookshelf figure {
    z-index: 100;
    -webkit-transition: z-index 0s 0.3s;
    transition: z-index 0s 0.3s;
}

.bookshelf figure.details-open {
    z-index: 101;
    -webkit-transition: none;
    transition: none;
}

.details-open .book,
.csstransformspreserve3d .details-open .book {
    -webkit-transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
    -webkit-transform: translateX(-36px) rotateY(90deg);
    transform: translateX(-36px) rotateY(90deg);
    opacity: 1 !important;
}

.cover::before,
.csstransformspreserve3d .cover::before {
    -webkit-transition: visibility 0s 0.5s;
    transition: visibility 0s 0.5s;
}

.details-open .cover::before,
.csstransformspreserve3d .details-open .cover::before {
    visibility: visible;
    -webkit-transition: none;
    transition: none;
}

.details {
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
    transition: opacity 0.5s, visibility 0s 0.5s;
}

.details-open .details {
    visibility: visible;
    opacity: 1;
    z-index: 10;
    -webkit-transition: opacity 0.5s, visibility 0s;
    transition: opacity 0.5s, visibility 0s;
}

.details ul li {
    visibility: visible;
    opacity: 0;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
    -webkit-transform: translateX(30%);
    transform: translateX(30%);
}

.details-open .details ul li:first-child {
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
}

.details-open .details ul li:nth-child(2) {
    -webkit-transition-delay: 0.15s;
    transition-delay: 0.15s;
}

.details-open .details ul li:nth-child(3) {
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}

.details-open .details ul li:nth-child(4) {
    -webkit-transition-delay: 0.25s;
    transition-delay: 0.25s;
}

.details-open .details ul li {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

/* Details background */

.bookshelf figure::before {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    background: #fff;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.3s, visibility 0s 0.3s;
    transition: opacity 0.3s, visibility 0s 0.3s;
    border-radius: 4px;
}

.bookshelf figure.details-open::before {
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity 0.3s, visibility 0s;
    transition: opacity 0.3s, visibility 0s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Overlay when viewing details */

.bookshelf figure::after {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 0;
    background: rgba(51, 51, 51, 0.1);
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.3s, height 0s 0.3s;
    transition: opacity 0.3s, height 0s 0.3s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bookshelf figure.details-open::after {
    height: 100%;
    opacity: 1;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

/* Animations */
@-webkit-keyframes openSmallBook { 
    0% { }
    55%, 100% { -webkit-transform: rotateY(-180deg) }
}
@keyframes openSmallBook { 
    0% { }
    55%, 100% { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); }
}
@-webkit-keyframes closeSmallBook { 
    0%, 45% { -webkit-transform: rotateY(-180deg) }
    100% { -webkit-transform: rotateY(0deg) }
}
@keyframes closeSmallBook { 
    0%, 45% { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); }
    100% { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); }
}
@-webkit-keyframes scaleUpSmallBook { 
    0% { }
    85%, 100% { -webkit-transform: scale(1.4) }
}
@keyframes scaleUpSmallBook { 
    0% { }
    85%, 100% { -webkit-transform: scale(1.4); transform: scale(1.4); }
}
@-webkit-keyframes scaleDownSmallBook { 
    0%, 15% { -webkit-transform: scale(1.4) }
    100% { -webkit-transform: scale(1) }
}
@keyframes scaleDownSmallBook { 
    0%, 15% { -webkit-transform: scale(1.4); transform: scale(1.4); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
@-webkit-keyframes openBigBook { 
    0% { }
    45% { opacity: 0; -webkit-transform: scale(0.95); }
    85% { opacity: 1 }
    100% { opacity: 1; -webkit-transform: scale(1); }
}
@keyframes openBigBook { 
    0% { }
    45% { opacity: 0; -webkit-transform: scale(0.95); transform: scale(0.95); }
    85% { opacity: 1 }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@-webkit-keyframes closeBigBook { 
    0%, 15% { opacity: 1; -webkit-transform: scale(1); }
    55%, 100% { opacity: 0; -webkit-transform: scale(0.95); }
}
@keyframes closeBigBook { 
    0%, 15% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
    55%, 100% { opacity: 0; -webkit-transform: scale(0.95); transform: scale(0.95); }
}

/* Media Queries */

@media screen and (max-width: 68.75em) { 
  .page-layout-3 h3 { font-size: 2.2rem }
  .page-layout-1 h3 { font-size: 2rem }
}

/* =================================================================
   RESPONSIVE LUXURY BOOK READER (Look Inside Mobile Experience)
   ================================================================= */
@media screen and (max-width: 52em) { 
  .bb-custom-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      padding: 0;
      border: none;
      background: rgba(18, 15, 14, 0.96);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
      flex-direction: column;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -webkit-align-items: center;
      align-items: center;
      box-sizing: border-box;
      z-index: 2000;
  }

  .bb-custom-wrapper::before,
  .bb-custom-wrapper::after {
      display: none;
  }

  .bb-custom-wrapper .bb-bookblock {
      position: relative;
      width: min(95vw, 540px);
      height: min(80vw, 440px);
      min-height: 300px;
      max-height: 66vh;
      margin: 0 auto;
      border-radius: 4px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 5px 25px rgba(0, 0, 0, 0.5);
  }

  .bb-custom-side::before,
  .bb-custom-side:first-child::before {
      display: none !important;
      content: none !important;
  }

  /* Page 1 (Spread 1: Atelier Cover) */
  .page-layout-3 div {
      padding: 8% 7%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100%;
      box-sizing: border-box;
  }

  .page-layout-3 h3 {
      font-size: clamp(1.2rem, 4.2vw, 1.7rem) !important;
      letter-spacing: 2px;
      margin: 0 0 4px 0;
      line-height: 1.15;
  }

  .page-layout-3 .bb-subtitle {
      font-family: 'Cinzel', serif;
      font-size: clamp(0.55rem, 2vw, 0.72rem);
      letter-spacing: 1.5px;
      color: #b58d3d;
      text-transform: uppercase;
      margin: 0 0 8px 0;
  }

  .page-layout-3 .bb-desc {
      font-family: 'Absans', 'Montserrat', sans-serif;
      font-style: normal;
      font-size: clamp(0.72rem, 2.7vw, 0.88rem);
      line-height: 1.4;
      color: #4a4542;
      margin: 0;
  }

  /* Page 2 (Spread 2: Story Chapter Full Coverage on Mobile) */
  .page-layout-1 {
      padding: 5% 6% !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      box-sizing: border-box !important;
      overflow-y: auto !important;
  }

  .page-layout-1-inner {
      width: 100%;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
  }

  .book-content-desktop {
      display: none !important;
  }

  .book-content-mobile {
      display: flex !important;
      flex-direction: column;
      justify-content: space-between;
      width: 100%;
      min-height: 100%;
      height: 100%;
      box-sizing: border-box;
  }

  .page-layout-1 h3 {
      font-size: clamp(0.95rem, 3.4vw, 1.25rem);
      line-height: 1.2;
      margin-bottom: 6px;
  }

  .page-layout-1 h3 span {
      font-size: clamp(0.55rem, 2vw, 0.68rem);
      letter-spacing: 1.5px;
      padding: 4px 0;
      margin-top: 4px;
  }

  .page-layout-1 p {
      font-size: clamp(0.68rem, 2.3vw, 0.84rem) !important;
      line-height: 1.48 !important;
      padding: 0 !important;
      margin-bottom: 6px !important;
      text-align: justify !important;
      max-width: 100% !important;
      width: 100% !important;
  }

  .page-layout-1 p:last-child {
      margin-bottom: 0 !important;
  }

  /* Page 3 (Spread 3: Four Specs Full Coverage on Mobile) */
  .page-layout-2-inner {
      padding: 5% 6% !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      height: 100% !important;
      box-sizing: border-box !important;
  }

  .spec-header {
      margin-bottom: 8px;
  }

  .spec-kicker {
      font-size: clamp(0.5rem, 1.8vw, 0.62rem);
      letter-spacing: 1.5px;
      margin-bottom: 2px;
  }

  .spec-heading {
      font-size: clamp(0.88rem, 3vw, 1.15rem);
      line-height: 1.15;
  }

  .spec-divider {
      width: 26px;
      margin: 4px auto 0;
  }

  .spec-grid {
      display: flex;
      flex-direction: column;
      gap: 6px !important;
      text-align: left;
      flex-grow: 1;
      justify-content: space-evenly;
  }

  .spec-item {
      display: flex;
      align-items: flex-start;
      gap: 8px !important;
      padding-bottom: 6px !important;
  }

  .spec-num {
      font-size: clamp(0.9rem, 2.8vw, 1.1rem);
      margin-bottom: 0;
      display: inline-block;
      margin-right: 2px;
      min-width: 22px;
      line-height: 1;
  }

  .spec-text {
      flex: 1;
  }

  .spec-item h3 {
      display: block;
      margin: 0 0 2px 0;
      font-size: clamp(0.6rem, 2vw, 0.72rem);
      letter-spacing: 1px;
      line-height: 1.25;
  }

  .spec-item p {
      font-size: clamp(0.58rem, 1.85vw, 0.7rem);
      line-height: 1.35;
      margin-top: 1px;
  }

  /* Mobile Reader Controls */
  .bb-custom-wrapper > nav {
      position: static;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      padding: 16px 0 0 0;
      margin-top: 10px;
      z-index: 1000;
  }

  .bb-nav-prev,
  .bb-nav-next {
      position: static;
      margin: 0;
      width: 44px;
      height: 44px;
      background: rgba(30, 26, 25, 0.9);
      border: 1px solid rgba(181, 141, 61, 0.45);
      border-radius: 50%;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
      opacity: 0.95;
      -webkit-tap-highlight-color: transparent;
      transition: all 0.2s ease;
  }

  .bb-nav-prev:active,
  .bb-nav-next:active {
      background: #b58d3d;
      border-color: #b58d3d;
      transform: scale(0.95);
  }

  .bb-nav-prev::before,
  .bb-nav-prev::after,
  .bb-nav-next::before,
  .bb-nav-next::after {
      background: #faf7f2;
  }

  .bb-nav-close {
      position: fixed;
      top: max(16px, env(safe-area-inset-top));
      right: 16px;
      margin: 0;
      width: 40px;
      height: 40px;
      background: rgba(30, 26, 25, 0.9);
      border: 1px solid rgba(181, 141, 61, 0.45);
      border-radius: 50%;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
      opacity: 0.95;
      -webkit-tap-highlight-color: transparent;
      transition: all 0.2s ease;
  }

  .bb-nav-close:active {
      background: #b58d3d;
      border-color: #b58d3d;
      transform: scale(0.95);
  }

  .bb-nav-close::before,
  .bb-nav-close::after {
      background: #faf7f2;
  }

  .bb-nav-pages {
      position: static;
      transform: none;
      font-family: 'Cinzel', serif;
      font-size: 0.8rem;
      letter-spacing: 2.5px;
      color: #b58d3d;
      text-transform: uppercase;
      user-select: none;
      padding: 0 4px;
  }
}

@media screen and (max-width: 26.3125em) { 
  .bookshelf figure {
      width: 324px;
      max-width: 100%;
      padding: 30px 0;
  }

  .details-open .book,
  .csstransformspreserve3d .details-open .book {
      -webkit-transform: translateX(-36px) rotateY(90deg);
      transform: translateX(-36px) rotateY(90deg);
  }

  .details ul,
  .csstransformspreserve3d .details ul {
      padding: 50px 15px 0 65px;
  }

  .details ul li {
      margin: 0 0 8px;
      font-size: 0.8rem;
  }

  .details ul li:first-child {
      font-size: 0.88rem;
      line-height: 1.45;
      margin-bottom: 12px;
      padding-bottom: 12px;
  }
}


/* ==========================================================================
   LET'S BEGIN - GET IN TOUCH (THE FINE PRESS REPLICA)
   Exact 1:1 reproduction of The Fine Press call-to-action & inquiry section
   ========================================================================== */
.tfp-begin-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding: 110px 5% 120px;
    box-sizing: border-box;
    text-align: center;
}

.tfp-begin-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Heading: LET'S BEGIN */
.tfp-begin-title {
   font-family: var(--font-serif);
    font-size: 50px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #333333;
    margin: 0 0 10px 0;
}

/* Script Calligraphy Artwork: Get in touch */
.tfp-script-wrapper {
    margin: 0 auto 32px auto;
    max-width: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tfp-script-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Descriptive paragraph */
.tfp-begin-desc {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #333333;
    letter-spacing: 0.2px;
    margin: 0 auto 46px auto;
    max-width: 580px;
}

/* Action button: INQUIRE + */
.tfp-begin-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tfp-inquire-btn {
    display: inline-block;
    font-family: 'Baskervville', 'Cormorant Garamond', 'Montserrat', serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    padding: 0 2px 4px 2px;
    border-bottom: 1px solid #333333;
    background: transparent;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.tfp-inquire-btn:hover {
    color: #22b6ab;
    border-bottom-color: #22b6ab;
    transform: translateY(-1px);
}

.tfp-inquire-btn:focus-visible {
    outline: 2px solid #22b6ab;
    outline-offset: 4px;
}

/* --- Inquiry Modal Dialog --- */
.tfp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.tfp-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.tfp-modal-content {
    position: relative;
    background: #3B0301;
    width: 100%;
    max-width: 420px;
    padding: 44px 34px;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.tfp-modal-overlay.is-open .tfp-modal-content {
    transform: translateY(0) scale(1);
}

.tfp-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    line-height: 1;
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tfp-modal-close:hover {
    color: #111111;
    transform: scale(1.1);
}

.tfp-modal-title {
    font-family: 'Baskervville', 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.tfp-modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin: 0 0 32px 0;
    font-weight: 300;
    line-height: 1.5;
}

.tfp-modal-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tfp-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.tfp-btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.tfp-btn-whatsapp:hover {
    background-color: #20bd5a;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.tfp-btn-email,
.tfp-btn-call {
    background-color: #f7f7f7;
    color: #333333;
    border: 1px solid #e2e2e2;
}

.tfp-btn-email:hover,
.tfp-btn-call:hover {
    background-color: #222222;
    color: #ffffff;
    border-color: #222222;
}

/* ==========================================================================
   LET'S BEGIN RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .tfp-begin-section {
        padding: 80px 6% 90px;
    }

    .tfp-begin-title {
        font-size: 38px;
        letter-spacing: 1px;
    }

    .tfp-script-wrapper {
        max-width: 270px;
        margin-bottom: 26px;
    }

    .tfp-begin-desc {
        font-size: 16.5px;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .tfp-inquire-btn {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

@media screen and (max-width: 480px) {
    .tfp-begin-section {
        padding: 65px 5% 75px;
    }

    .tfp-begin-title {
        font-size: 32px;
    }

    .tfp-script-wrapper {
        max-width: 220px;
        margin-bottom: 22px;
    }

    .tfp-begin-desc {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 36px;
    }

    .tfp-modal-content {
        padding: 34px 22px;
    }
}

/* ==========================================================================
   FOOTER: THE BOMBAY LETTERING COMPANY (EXACT REPLICA)
   Deep black editorial luxury footer with vector logo, contact, socials, policies
   ========================================================================== */
.bl-footer {
    position: relative;
    width: 100%;
    background-color: #3B0301;
    color: #ffffff;
    padding: 72px 20px 60px;
    box-sizing: border-box;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bl-footer-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Logo */
.bl-footer-logo-wrap {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.bl-footer-logo-link {
    display: inline-block;
    transition: opacity 0.25s ease;
}

.bl-footer-logo-link:hover {
    opacity: 0.85;
}

.bl-footer-logo-img {
    width: 240px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Contact Line (Email | Phone) */
.bl-footer-contact {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    letter-spacing: 0.4px;
    color: #ffffff;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bl-footer-email,
.bl-footer-phone {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.bl-footer-email:hover,
.bl-footer-phone:hover {
    opacity: 0.75;
}

.bl-footer-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    user-select: none;
}

/* Contact Us Action */
.bl-footer-action {
    margin-bottom: 22px;
}

.bl-footer-contact-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.25s ease, letter-spacing 0.25s ease;
}

.bl-footer-contact-link:hover {
    opacity: 0.75;
    letter-spacing: 2.5px;
}

/* Social Bar */
.bl-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.bl-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.bl-social-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.bl-social-icon:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Copyright */
.bl-footer-copy {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cccccc;
    margin-bottom: 18px;
}

/* Legal Links */
.bl-footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bl-footer-legal .bl-footer-sep {
    font-size: 9.5px;
    opacity: 0.5;
}

.bl-legal-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.25s ease;
}

.bl-legal-link:hover {
    color: #ffffff;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .bl-footer {
        padding: 55px 16px 45px;
    }

    .bl-footer-logo-img {
        width: 195px;
    }

    .bl-footer-contact {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 18px;
    }

    .bl-footer-contact-link {
        font-size: 11.5px;
    }

    .bl-footer-social {
        gap: 10px;
        margin-bottom: 20px;
    }

    .bl-social-icon {
        width: 30px;
        height: 30px;
    }

    .bl-social-icon svg {
        width: 13px;
        height: 13px;
    }

    .bl-footer-copy {
        font-size: 9.5px;
        letter-spacing: 1.2px;
        margin-bottom: 14px;
    }

    .bl-legal-link {
        font-size: 8.5px;
        letter-spacing: 1.2px;
    }
}

/* ==========================================================================
   FLOATING ACTION BADGES (EXPANDABLE HOVER PILLS - BOTTOM-RIGHT)
   Instagram & WhatsApp fixed expandable floating badges
   ========================================================================== */
.floating-social-stack {
    position: fixed;
    right: 25px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 99999;
    pointer-events: auto;
}

.floating-badge {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    text-decoration: none;
    border-radius: 999px;
    height: 56px;
    width: 56px;
    overflow: hidden;
    box-shadow: none;
    transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.28s ease, 
                box-shadow 0.3s ease, 
                transform 0.25s ease;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.floating-badge:hover {
    width: 275px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.floating-badge-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer Ring (concentric gradient or color) */
.floating-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.floating-badge:hover .floating-icon-ring {
    box-shadow: none;
}

.instagram-ring {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-ring {
    background: #1877F2;
}

.whatsapp-ring {
    background: #25D366;
}

/* Concentric white gap ring */
.floating-icon-gap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core icon circle */
.floating-icon-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.instagram-core {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-core {
    background: #1877F2;
}

.whatsapp-core {
    background: #25D366;
}

.floating-icon-core svg {
    display: block;
    width: 19px;
    height: 19px;
}

/* Text strip that unrolls/comes out on hover */
.floating-badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    padding-right: 22px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.28s ease 0.08s, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.floating-badge:hover .floating-badge-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.floating-badge-label {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #727272;
    margin-bottom: 2px;
    display: block;
    line-height: 1.2;
}

.floating-badge-handle {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    font-style: italic;
    color: #2b2b2b;
    display: block;
    line-height: 1.2;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .floating-social-stack {
        right: 16px;
        bottom: 20px;
        gap: 10px;
    }

    .floating-badge {
        height: 50px;
        width: 50px;
        background-color: transparent;
        box-shadow: none;
    }

    .floating-badge:hover {
        width: 250px;
        background-color: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .floating-badge-icon {
        width: 50px;
        height: 50px;
    }

    .floating-icon-ring {
        width: 42px;
        height: 42px;
    }

    .floating-icon-core svg {
        width: 17px;
        height: 17px;
    }

    .floating-badge-label {
        font-size: 8.5px;
        letter-spacing: 1px;
    }

    .floating-badge-handle {
        font-size: 12px;
    }
}


/* ==========================================================================
   BLOG SPECIFIC OVERRIDES & REFINEMENTS
   Ultra-luxury editorial aesthetic matching Collections, Story, and Process
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header & Glassy Sticky Navbar (Matching Collections, Story & Process)
   Top state: Navlink text is Black over light background
   Scrolled state: Navbar takes #3B0301 and Navlink text becomes White
   -------------------------------------------------------------------------- */
.site-header {
  background: #FAF8F5 !important;
  background-color: #FAF8F5 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

/* Nav links when at the top: Black */
.site-header .nav-link {
  color: #000000 !important;
  text-shadow: none !important;
  transition: color 0.3s ease, opacity 0.25s ease !important;
}

.site-header .nav-link:hover {
  color: #b58d3d !important;
}

.site-header .nav-link.active {
  color: #b58d3d !important;
}

/* Mobile hamburger bars when at the top: Black */
.mobile-menu-toggle span {
  background-color: #000000 !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease !important;
}

/* Scrolled State: Navbar takes #3B0301 background and Nav links turn White */
.site-header.is-scrolled {
  background: #3B0301 !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.site-header.is-scrolled .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.site-header.is-scrolled .nav-link:hover {
  color: #D4AF37 !important;
}

.site-header.is-scrolled .nav-link.active {
  color: #D4AF37 !important;
}

/* Mobile hamburger bars when scrolled: White */
.site-header.is-scrolled .mobile-menu-toggle span {
  background-color: #FFFFFF !important;
}

/* Mobile Nav Drawer opens right below navbar handled seamlessly */
@media (max-width: 768px) {
  .mobile-nav-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    top: 64px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Page Background & Typography Defaults (Matching Collections, Story & Process)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-light);
  color: #2b2725;
  font-family: 'Martel Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.blog-main {
  min-height: 80vh;
  padding-top: 0;
  padding-bottom: 60px;
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Blog Hero Header (Matching Our Collections, Our Process 1:1)
   -------------------------------------------------------------------------- */
.blog-hero-section {
  text-align: center;
  padding: 45px 20px 36px 20px;
  background-color: #ffffff;
}

.blog-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-hero-title {
  font-family: 'Cinzel', 'Libre Caslon Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 auto;
  line-height: 1.25;
}

.blog-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 140px;
  max-width: 140px;
  min-width: 140px;
  height: auto;
  background: none;
  border: none;
  margin: 18px auto 0 auto;
  padding: 0;
}

.blog-hero-divider::before,
.blog-hero-divider::after {
  content: '';
  flex: 1 1 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b58d3d);
}

.blog-hero-divider::after {
  background: linear-gradient(90deg, #b58d3d, transparent);
}

.blog-hero-divider-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #b58d3d;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.blog-hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: #555555;
  max-width: 720px;
  margin: 18px auto 0 auto;
  text-align: center;
  display: block;
}
