.flipbook-section {
  padding-bottom: 40px;
}

.flipbook-section .blackFont {
  color: #f5f0e8 !important;
}

.flipbook-section h1.title {
  color: #fff !important;
}

.flipbook-section .flipbook-meta {
  color: #c9bfb0 !important;
}

.flipbook-description {
  margin-bottom: 20px;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.6;
}

.flipbook-description p,
.flipbook-description li,
.flipbook-description span,
.flipbook-description div,
.flipbook-description h1,
.flipbook-description h2,
.flipbook-description h3,
.flipbook-description h4,
.flipbook-description strong,
.flipbook-description em {
  color: #fff !important;
}

.flipbook-description a {
  color: #e8c4a0 !important;
  text-decoration: underline;
}

.flipbook-description a:hover {
  color: #fff !important;
}

.flipbook-viewer {
  margin-top: 20px;
}

.flipbook-book-shell {
  background: linear-gradient(165deg, #4a4038 0%, #2a2520 45%, #1c1916 100%);
  border: 1px solid #5c534a;
  border-radius: 6px;
  padding: 20px 20px 20px 20px;
  min-height: 505px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
}

.flipbook-book-shell::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  pointer-events: none;
}

.flipbook-book {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.flipbook-page {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.flipbook-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flipbook-page-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(20, 16, 12, 0.78);
  color: #f5f0e8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.flipbook-hint {
  text-align: center;
  color: #c9bfb0;
  font-size: 13px;
  margin: 0 0 14px;
  font-style: italic;
}

.flipbook-page-title {
  margin: 14px 0 6px;
  font-weight: 600;
  min-height: 1.4em;
  text-align: center;
  color: #f5f0e8;
  font-size: 16px;
}

.flipbook-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.flipbook-page-indicator {
  min-width: 100px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  padding: 6px 12px;
  background: #f5f0e8;
  border: 1px solid #d4c9b8;
  border-radius: 4px;
  color: #382f28 !important;
}

.flipbook-toolbar .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.flipbook-viewer:fullscreen,
.flipbook-viewer:-webkit-full-screen {
  background: #1a1a1a;
  padding: 20px;
  overflow: auto;
}

.flipbook-viewer:fullscreen .flipbook-book-shell,
.flipbook-viewer:-webkit-full-screen .flipbook-book-shell {
  min-height: calc(100vh - 120px);
  border: none;
  border-radius: 0;
}

@media (max-width: 767px) {
  .flipbook-book-shell {
    padding: 16px 8px 20px;
    min-height: 405px;
  }

  .flipbook-toolbar .btn {
    margin-bottom: 4px;
  }

  .flipbook-hint {
    font-size: 12px;
  }
}
