/* Styles for the [flipbook id="N"] shortcode embed (assets/js/flipbook-embed.js).
   Shared by the public site and the admin flipbook preview. */
.jamiat-flipbook {
  margin: 1.75rem auto; max-width: 100%; text-align: center;
}
.jamiat-flipbook__loading, .jamiat-flipbook__error {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 200px; color: #6b7280; font-size: .9375rem;
  background: #f9fafb; border-radius: 8px;
}
.jamiat-flipbook__error { color: #b91c1c; }
.jamiat-flipbook__title {
  font-weight: 700; color: #0d3320; margin-bottom: .75rem; font-size: 1.05rem;
}
.jamiat-flipbook__stage {
  margin: 0 auto; max-width: 100%;
}
.jamiat-flipbook__stage canvas { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
/* Fullscreen — .is-fullscreen is toggled by flipbook-embed.js for both the
   native Fullscreen API and the CSS-only fallback (iPhone Safari). */
.jamiat-flipbook.is-fullscreen {
  position: fixed; inset: 0; z-index: 2147483000;
  margin: 0; max-width: none; padding: 1rem; box-sizing: border-box;
  background: #111827; display: flex; flex-direction: column;
}
.jamiat-flipbook.is-fullscreen .jamiat-flipbook__title { color: #fff; flex-shrink: 0; }
.jamiat-flipbook.is-fullscreen .jamiat-flipbook__viewport {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
}
.jamiat-flipbook.is-fullscreen .jamiat-flipbook__controls { flex-shrink: 0; }
.jamiat-flipbook.is-fullscreen .jf-page-indicator { color: #d1d5db; }
.jamiat-flipbook__controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1rem;
  position: relative; z-index: 2; /* keep above the book's wrapper, which can overflow its box */
}
.jamiat-flipbook__controls button {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: #255c40; color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.jamiat-flipbook__controls button:hover { background: #0d3320; }
.jamiat-flipbook__controls .jf-page-indicator { font-size: .875rem; color: #4b5563; min-width: 4.5rem; }
