/* ============================================================
   Embed standalone (iframe) — Galerie PDF Spital
   ============================================================ */
:root {
	--pdfgal-accent: #0f6e78;
	--pdfgal-accent-dark: #0a4d54;
	--pdfgal-page-bg: #eaf0f1;
	--pdfgal-focus: #b8410e;
}

* { box-sizing: border-box; }

html, body {
	margin: 0; padding: 0; height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pdfgal-embed {
	display: flex; flex-direction: column;
	height: 100vh; height: 100dvh;
	background: var( --pdfgal-page-bg );
}

.pdfgal-embed-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 14px; background: var( --pdfgal-accent-dark ); color: #fff; flex-shrink: 0;
}
.pdfgal-embed-title {
	font-weight: 600; font-size: 15px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdfgal-embed-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.pdfgal-ebtn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 10px;
	border: 0; border-radius: 8px;
	background: rgba( 255, 255, 255, .16 ); color: #fff;
	font-size: 20px; line-height: 1; cursor: pointer; text-decoration: none;
	transition: background .15s ease;
}
.pdfgal-ebtn:hover { background: rgba( 255, 255, 255, .3 ); }
.pdfgal-ebtn:focus-visible { outline: 3px solid var( --pdfgal-focus ); outline-offset: 2px; }
.pdfgal-zoom-level { color: #fff; font-size: 14px; min-width: 48px; text-align: center; }

.pdfgal-embed-viewport { position: relative; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.pdfgal-embed-pages {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 18px 12px 40px;
}
.pdfgal-embed-pages:focus-visible { outline: 3px solid var( --pdfgal-focus ); outline-offset: -3px; }
.pdfgal-epage {
	max-width: 100%; background: #fff;
	box-shadow: 0 3px 14px rgba( 0, 0, 0, .16 ); border-radius: 2px;
}

.pdfgal-embed-loading {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	color: var( --pdfgal-accent-dark ); background: var( --pdfgal-page-bg );
}
.pdfgal-embed-loading p { margin: 0; font-size: 15px; }
.pdfgal-embed-loading a { color: var( --pdfgal-accent-dark ); font-weight: 700; }

.pdfgal-espinner {
	width: 42px; height: 42px;
	border: 4px solid #d6e0e2; border-top-color: var( --pdfgal-accent );
	border-radius: 50%; animation: pdfgal-espin .8s linear infinite;
}
@keyframes pdfgal-espin { to { transform: rotate( 360deg ); } }

@media ( prefers-reduced-motion: reduce ) {
	.pdfgal-espinner { animation: none; }
	.pdfgal-ebtn { transition: none; }
}
@media ( forced-colors: active ) {
	.pdfgal-ebtn { border: 1px solid ButtonText; }
	.pdfgal-ebtn:focus-visible { outline: 3px solid Highlight; }
}
