/* MIGSG Flip book widget (mu-plugin migsg/flipbook.php). Page-turn engine: page-flip (MIT), vendor/. */
.migsg-fb { --fb-max: 1100px; width: 100%; max-width: var(--fb-max); margin: 0 auto; }
.migsg-fb__stage { position: relative; padding: clamp(14px, 2.4vw, 30px); background: #131C3F; border: 1px solid rgba(201, 162, 75, .45); box-shadow: 0 30px 70px rgba(19, 28, 63, .22); }
.migsg-fb__book { min-width: 0 !important; max-width: 100% !important; margin: 0 auto; }
.migsg-fb--spread .migsg-fb__book { max-width: 100% !important; }
.migsg-fb__page { background: #fff; overflow: hidden; }
.migsg-fb__page img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }
.migsg-fb:not(.is-ready) .migsg-fb__page { display: none; }
.migsg-fb:not(.is-ready) .migsg-fb__page:first-child { display: block; max-width: 520px; margin: 0 auto; }
.migsg-fb__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 4px 0; font-family: 'Source Sans 3', sans-serif; }
.migsg-fb__nav { display: flex; align-items: center; gap: 12px; }
.migsg-fb .migsg-fb__btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #D8CDB8 !important; border-radius: 50% !important; background: #FDFBF6 !important; color: #131C3F !important; transition: background .25s, border-color .25s, color .25s; }
.migsg-fb .migsg-fb__btn:hover { background: #131C3F !important; border-color: #131C3F !important; color: #E2C27B !important; }
.migsg-fb .migsg-fb__btn:focus-visible { outline: 2px solid #C9A24B; outline-offset: 3px; }
.migsg-fb .migsg-fb__btn[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.migsg-fb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.migsg-fb__count { min-width: 92px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5B5F72; }
.migsg-fb__tools { display: flex; align-items: center; gap: 10px; }
.migsg-fb a.migsg-fb__dl { display: inline-block; padding: 13px 22px; background: #131C3F; border: 1px solid #131C3F; color: #fff !important; font-size: 11.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.migsg-fb a.migsg-fb__dl:hover { background: #C9A24B; border-color: #C9A24B; color: #131C3F !important; }
.migsg-fb__hint { margin: 10px 4px 0; font: 400 13.5px/1.5 'Source Sans 3', sans-serif; color: #7A7E90; }
/* full screen */
.migsg-fb:fullscreen { max-width: none; width: 100vw; height: 100vh; padding: 18px clamp(12px, 3vw, 40px); background: #0B1129; display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.migsg-fb:fullscreen .migsg-fb__stage { background: transparent; border: 0; box-shadow: none; padding: 0; width: 100%; max-width: var(--fb-fs, 1500px); margin: 0 auto; }
.migsg-fb:fullscreen .migsg-fb__bar { width: 100%; max-width: var(--fb-fs, 1500px); margin: 0 auto; }
.migsg-fb:fullscreen .migsg-fb__count, .migsg-fb:fullscreen .migsg-fb__hint { color: #C9D2E8; }
.migsg-fb:fullscreen .migsg-fb__hint { display: none; }
@media (max-width: 767px) {
	.migsg-fb__stage { padding: 8px; }
	.migsg-fb__bar { justify-content: center; }
	.migsg-fb__tools { width: 100%; justify-content: center; }
}
/* inside a centred Elementor section the widget would shrink to its content and the book would
   fall back to one page at a time: always take the full width available */
.elementor-widget-migsg-flipbook { width: 100% !important; max-width: 100% !important; align-self: stretch !important; }
.elementor-widget-migsg-flipbook > .elementor-widget-container { width: 100%; }
