@charset "UTF-8";
/*
 * AGFO Slide Deck - front end viewer
 */

.agfo-sd {
	--agfo-sd-bg: #14161a;
	--agfo-sd-surface: #1d2027;
	--agfo-sd-border: #2c3038;
	--agfo-sd-text: #e8eaed;
	--agfo-sd-muted: #9aa0a6;
	--agfo-sd-accent: #2f80ed;
	--agfo-sd-radius: 10px;
	margin: 0 auto 1.6em;
	max-width: 100%;
	font-size: 15px;
	line-height: 1.45;
	outline: none;
}

/*
 * The theme colour is applied to the deck's own surfaces only. The root keeps
 * the colour of the surrounding page, so the title above the frame stays
 * readable on both light and dark site themes.
 */
.agfo-sd__stage,
.agfo-sd__bar,
.agfo-sd__notes {
	color: var(--agfo-sd-text);
}

.agfo-sd--light {
	--agfo-sd-bg: #f4f5f7;
	--agfo-sd-surface: #ffffff;
	--agfo-sd-border: #d9dce1;
	--agfo-sd-text: #1b1f24;
	--agfo-sd-muted: #5f6672;
}

.agfo-sd:focus-visible {
	box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.45);
	border-radius: var(--agfo-sd-radius);
}

.agfo-sd__title {
	margin: 0 0 0.5em;
	color: inherit;
	font-size: 1.05em;
	font-weight: 600;
}

/* ---------- stage ---------- */

.agfo-sd__stage {
	position: relative;
	background: var(--agfo-sd-bg);
	border: 1px solid var(--agfo-sd-border);
	border-radius: var(--agfo-sd-radius) var(--agfo-sd-radius) 0 0;
	overflow: hidden;
}

.agfo-sd__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agfo-sd__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	margin: 0;
	transition: opacity 0.18s ease-out;
	user-select: none;
	-webkit-user-drag: none;
}

.agfo-sd.is-loading .agfo-sd__image {
	opacity: 0.35;
}

.agfo-sd__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--agfo-sd-accent);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s linear;
}

.agfo-sd.is-loading .agfo-sd__spinner {
	opacity: 1;
	animation: agfo-sd-spin 0.8s linear infinite;
}

@keyframes agfo-sd-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.agfo-sd__image,
	.agfo-sd__spinner {
		transition: none;
	}

	.agfo-sd.is-loading .agfo-sd__spinner {
		animation: none;
	}
}

/* ---------- arrows ---------- */

.agfo-sd__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 68px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.42);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	border-radius: 6px;
	opacity: 0;
	transition: opacity 0.15s ease-out, background 0.15s ease-out;
}

.agfo-sd__stage:hover .agfo-sd__nav,
.agfo-sd__nav:focus-visible {
	opacity: 1;
}

.agfo-sd__nav:hover {
	background: rgba(0, 0, 0, 0.68);
}

.agfo-sd__nav--prev {
	left: 10px;
}

.agfo-sd__nav--next {
	right: 10px;
}

.agfo-sd__nav[disabled] {
	opacity: 0.2 !important;
	cursor: default;
}

@media (hover: none) {
	.agfo-sd__nav {
		opacity: 1;
	}
}

/* ---------- progress ---------- */

.agfo-sd__progress {
	height: 3px;
	background: var(--agfo-sd-border);
	overflow: hidden;
}

.agfo-sd__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--agfo-sd-accent);
	transition: width 0.2s ease-out;
}

/* ---------- control bar ---------- */

.agfo-sd__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px 10px;
	background: var(--agfo-sd-surface);
	border: 1px solid var(--agfo-sd-border);
	border-top: 0;
	border-radius: 0 0 var(--agfo-sd-radius) var(--agfo-sd-radius);
}

.agfo-sd__bar-left,
.agfo-sd__bar-center,
.agfo-sd__bar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.agfo-sd__bar-center {
	flex: 1 1 auto;
	justify-content: center;
}

.agfo-sd__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid var(--agfo-sd-border);
	background: transparent;
	color: var(--agfo-sd-text);
	font: inherit;
	font-size: 13px;
	line-height: 1;
	padding: 7px 11px;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s ease-out, background 0.15s ease-out;
}

.agfo-sd__btn:hover {
	border-color: var(--agfo-sd-accent);
}

.agfo-sd__btn[disabled] {
	opacity: 0.4;
	cursor: default;
	border-color: var(--agfo-sd-border);
}

.agfo-sd__btn.is-active {
	border-color: var(--agfo-sd-accent);
	color: var(--agfo-sd-accent);
}

.agfo-sd__counter {
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	color: var(--agfo-sd-muted);
	white-space: nowrap;
}

.agfo-sd__current {
	color: var(--agfo-sd-text);
	font-weight: 600;
}

.agfo-sd__jump-input {
	width: 62px;
	padding: 5px 6px;
	font: inherit;
	font-size: 13px;
	text-align: center;
	color: var(--agfo-sd-text);
	background: transparent;
	border: 1px solid var(--agfo-sd-border);
	border-radius: 6px;
}

.agfo-sd__jump-input:focus {
	outline: 2px solid var(--agfo-sd-accent);
	outline-offset: 1px;
}

/* ---------- notes ---------- */

.agfo-sd__notes {
	margin-top: 10px;
	padding: 10px 12px;
	background: var(--agfo-sd-surface);
	border: 1px solid var(--agfo-sd-border);
	border-radius: 8px;
	font-size: 14px;
}

.agfo-sd__notes.is-empty {
	display: none;
}

.agfo-sd__notes-label {
	margin: 0 0 4px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--agfo-sd-muted);
}

.agfo-sd__notes-text {
	margin: 0;
	white-space: pre-line;
}

/* ---------- thumbnails ---------- */

.agfo-sd__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.agfo-sd__thumbs[hidden] {
	display: none;
}

.agfo-sd__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 112px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: var(--agfo-sd-bg);
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.agfo-sd__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.agfo-sd__thumb:hover {
	border-color: var(--agfo-sd-muted);
}

.agfo-sd__thumb.is-active {
	border-color: var(--agfo-sd-accent);
}

.agfo-sd__thumb-number {
	position: absolute;
	bottom: 3px;
	right: 3px;
	padding: 1px 5px;
	font-size: 10px;
	line-height: 1.5;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

/* ---------- fullscreen ---------- */

.agfo-sd:fullscreen {
	max-width: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 12px;
	background: var(--agfo-sd-bg);
	display: flex;
	flex-direction: column;
}

.agfo-sd:fullscreen .agfo-sd__stage {
	flex: 1 1 auto;
	border-radius: var(--agfo-sd-radius);
}

.agfo-sd:fullscreen .agfo-sd__frame {
	height: 100%;
	aspect-ratio: auto;
}

.agfo-sd:fullscreen .agfo-sd__thumbs {
	flex: 0 0 auto;
}

/* ---------- misc ---------- */

.agfo-sd__noscript img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 10px;
}

.agfo-sd-notice {
	padding: 10px 12px;
	border-left: 4px solid #d98b00;
	background: #fff8e5;
	color: #4a3a00;
	font-size: 14px;
}

.agfo-sd .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.agfo-sd__bar-left,
	.agfo-sd__bar-right {
		flex-wrap: wrap;
	}

	.agfo-sd__btn {
		padding: 7px 9px;
		font-size: 12px;
	}

	.agfo-sd__thumb {
		width: 84px;
	}
}
