/* Look Inside flipbook styles */

.li-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 22, 40, 0.86);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 24px 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.li-overlay.is-open { display: flex; opacity: 1; }

.li-shell {
  width: 100%;
  max-width: 1080px;
  max-height: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}

.li-close {
  position: absolute;
  top: -10px; right: 0;
  background: rgba(246, 239, 222, 0.96);
  color: #14213d;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.li-close:hover { transform: scale(1.05); }

.li-stage {
  width: 100%;
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}

.li-book {
  /* StPageFlip writes its own dimensions */
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.55));
}
.li-book .stf__parent { background: transparent; }
.li-book .stf__block { background: transparent; }
.li-page-cell {
  background: transparent;
  width: 100%; height: 100%;
  overflow: hidden;
  display: block;
}
.li-pageimg {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
  /* Image protection: deter right-click save, drag-save, long-press save */
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none; /* StPageFlip captures gestures on the parent */
}

/* Apply selection/drag protection to every element inside the flipbook */
.li-overlay,
.li-overlay * {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
}
.li-overlay button,
.li-overlay a { -webkit-user-select: auto; user-select: auto; }

.li-page-end {
  background: linear-gradient(180deg, #f6efde 0%, #ece1c4 100%);
}
.li-page-end .li-end-card {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  height: 100%;
  padding: 32px 28px;
  font-family: 'Source Serif 4', Georgia, serif;
  color: #14213d;
}
.li-page-end h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  margin: 0 0 14px;
  color: #14213d;
  font-weight: 600;
}
.li-page-end p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 28ch;
}
.li-end-buy {
  display: inline-block;
  background: #14213d;
  color: #f6efde;
  padding: 12px 22px;
  text-decoration: none;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  border-top: 2px solid #b48316;
  transition: background 0.15s;
}
.li-end-buy:hover { background: #1a2b50; }

.li-footer {
  display: flex; align-items: center; gap: 18px;
  background: rgba(246, 239, 222, 0.94);
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.li-nav {
  background: transparent;
  border: 0;
  color: #14213d;
  font-size: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.li-nav:hover { background: rgba(20, 33, 61, 0.08); }
.li-meta {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #14213d;
  letter-spacing: 0.04em;
  text-align: center;
  min-width: 130px;
}
.li-page { font-weight: 500; }

/* "Take a Look Inside" trigger button — book pages */
.lookinside-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #f6efde;
  color: #14213d;
  border: 1.5px solid #b48316;
  padding: 12px 22px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 0 0 #b48316, 0 8px 22px rgba(180, 131, 22, 0.25);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.lookinside-btn:hover {
  background: #b48316;
  color: #14213d;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 #8a6210, 0 10px 28px rgba(180, 131, 22, 0.4);
}
.lookinside-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 0 #8a6210, 0 4px 12px rgba(180, 131, 22, 0.3);
}
.lookinside-btn svg { flex: 0 0 auto; color: #b48316; }
.lookinside-btn:hover svg { color: #14213d; }

@media (max-width: 720px) {
  .li-close { top: 6px; right: 6px; }
  .li-footer { padding: 6px 10px; gap: 10px; }
  .li-meta { min-width: 90px; font-size: 12px; }
  .li-nav { width: 34px; height: 34px; font-size: 18px; }
  .li-page-end h3 { font-size: 22px; }
}
