.rmt-pdf-container {
	align-items: stretch;
	display: flex;
	gap: 20px;
	height: var(--rmt-pdf-effective-height, var(--rmt-pdf-height, 800px));
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.rmt-pdf-list {
	align-self: stretch;
	box-sizing: border-box;
	flex: 0 0 var(--rmt-pdf-list-width, 30%);
	height: 100%;
	max-height: 100%;
	min-height: 0;
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	padding-right: 4px;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

.rmt-pdf-category + .rmt-pdf-category {
	margin-top: 22px;
}

.rmt-pdf-category h3 {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 8px;
}

.rmt-pdf-covers-enabled .rmt-pdf-documents {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.rmt-pdf-link {
	appearance: none;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: block;
	font: inherit;
	line-height: 1.4;
	margin: 0 0 4px;
	padding: 9px 10px;
	text-align: left;
	width: 100%;
}

.rmt-pdf-link:hover {
	background: #f5f5f5;
}

.rmt-pdf-link:focus-visible,
.rmt-pdf-close:focus-visible,
.rmt-pdf-list:focus-visible,
.rmt-image-open:focus-visible,
.rmt-image-lightbox button:focus-visible,
.rmt-image-lightbox-stage:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.rmt-pdf-list:focus-visible {
	outline-offset: -3px;
}

.rmt-pdf-link.active {
	background: var(--rmt-pdf-active-color, #eeeeee);
	border-left-color: currentColor;
	font-weight: 600;
}

.rmt-pdf-link-with-cover {
	align-items: stretch;
	border: 2px solid transparent;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 6px;
	text-align: center;
}

.rmt-pdf-link-with-cover.active {
	border-color: currentColor;
}

.rmt-pdf-cover-frame {
	align-items: center;
	aspect-ratio: 210 / 297;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	overflow: hidden;
	width: 100%;
}

.rmt-pdf-cover-image {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.rmt-pdf-link-title {
	display: block;
	font-size: 0.9em;
	line-height: 1.35;
	margin-top: 7px;
	overflow-wrap: anywhere;
}

.rmt-pdf-view {
	background: #fff;
	border: var(--rmt-pdf-border-width, 1px) solid var(--rmt-pdf-border, #cccccc);
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.rmt-pdf-mobile-bar {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	display: none;
	flex: 0 0 auto;
	justify-content: space-between;
	min-height: 46px;
	padding: 4px 8px 4px 14px;
}

.rmt-pdf-mobile-title {
	font-weight: 600;
	overflow: hidden;
	padding-right: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rmt-pdf-close {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--rmt-pdf-close-color, #666666);
	cursor: pointer;
	font-size: var(--rmt-pdf-close-size, 32px);
	line-height: 1;
	min-height: 40px;
	min-width: 40px;
	padding: 0;
}

.rmt-pdf-frame {
	background: #e6e6e6;
	border: 0;
	display: block;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	width: 100%;
}

.rmt-pdf-frame[hidden] {
	display: none;
}

.rmt-image-open {
	align-items: center;
	appearance: none;
	background: #e6e6e6;
	border: 0;
	box-sizing: border-box;
	cursor: zoom-in;
	display: flex;
	flex: 1 1 auto;
	height: 100%;
	justify-content: center;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	width: 100%;
}

.rmt-image-open[hidden] {
	display: none;
}

.rmt-image-display {
	display: block;
	height: 100%;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.rmt-pdf-placeholder {
	align-items: center;
	color: #50575e;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.rmt-pdf-placeholder[hidden] {
	display: none;
}

.rmt-pdf-empty {
	margin: 0;
}

.rmt-pdf-container .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.rmt-image-lightbox[hidden] {
	display: none;
}

.rmt-image-lightbox {
	box-sizing: border-box;
	display: flex;
	inset: 0;
	padding: clamp(8px, 2vw, 24px);
	position: fixed;
	z-index: 2147483640;
}

.rmt-image-lightbox-backdrop {
	background: rgba(0, 0, 0, 0.86);
	inset: 0;
	position: absolute;
}

.rmt-image-lightbox-dialog {
	background: #171717;
	border: 1px solid var(--rmt-pdf-border, #cccccc);
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	position: relative;
}

.rmt-image-lightbox-toolbar {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	box-sizing: border-box;
	color: #1d2327;
	display: flex;
	flex: 0 0 auto;
	gap: 14px;
	justify-content: space-between;
	min-height: 52px;
	padding: 6px 8px 6px 16px;
}

.rmt-image-lightbox-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rmt-image-lightbox-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 5px;
}

.rmt-image-lightbox-actions button {
	align-items: center;
	appearance: none;
	background: #f6f7f7;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	box-sizing: border-box;
	color: #1d2327;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	line-height: 1;
	min-height: 36px;
	min-width: 36px;
	padding: 6px 9px;
}

.rmt-image-lightbox-actions button:hover {
	background: #e9e9e9;
}

.rmt-image-lightbox-actions button:disabled {
	cursor: default;
	opacity: 0.45;
}

.rmt-image-lightbox-actions .rmt-image-lightbox-close {
	background: transparent;
	border: 0;
	color: var(--rmt-pdf-close-color, #666666);
	font-size: var(--rmt-pdf-close-size, 32px);
	padding: 0;
}

.rmt-image-zoom-level {
	box-sizing: border-box;
	font-variant-numeric: tabular-nums;
	min-width: 62px;
	text-align: center;
}

.rmt-image-lightbox-stage {
	align-items: center;
	background: #252525;
	cursor: zoom-in;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
	touch-action: none;
	user-select: none;
}

.rmt-image-lightbox-stage.is-zoomed {
	cursor: grab;
}

.rmt-image-lightbox-stage.is-zoomed:active {
	cursor: grabbing;
}

.rmt-image-lightbox-image {
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transform-origin: center center;
	user-select: none;
	width: auto;
	will-change: transform;
}

.rmt-image-lightbox .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-lightbox {
	display: block;
	height: auto;
	max-height: none;
	overflow: visible;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-lightbox .rmt-pdf-list {
	height: auto;
	max-height: none;
	overflow: visible;
	overscroll-behavior-y: auto;
	padding-right: 0;
	width: 100%;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-lightbox .rmt-pdf-view {
	display: flex;
	height: auto;
	inset: max(10px, 3vh) max(10px, 3vw);
	pointer-events: none;
	position: fixed;
	visibility: hidden;
	z-index: 2147483000;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-lightbox .rmt-pdf-view.is-open {
	box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
	visibility: visible;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-lightbox .rmt-pdf-view.is-open .rmt-pdf-mobile-bar {
	display: flex;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-columns {
	gap: 10px;
}

.rmt-pdf-container.rmt-pdf-is-mobile.rmt-pdf-mobile-columns .rmt-pdf-list {
	flex-basis: min(var(--rmt-pdf-list-width, 30%), 42%);
}

body.rmt-pdf-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.rmt-image-lightbox {
		padding: 0;
	}

	.rmt-image-lightbox-dialog {
		border: 0;
	}

	.rmt-image-lightbox-toolbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
		padding: 7px 8px;
	}

	.rmt-image-lightbox-title {
		box-sizing: border-box;
		padding: 2px 6px 0;
		width: 100%;
	}

	.rmt-image-lightbox-actions {
		justify-content: space-between;
		width: 100%;
	}

	.rmt-image-lightbox-actions button {
		min-height: 40px;
		min-width: 40px;
	}
}

@media (forced-colors: active) {
	.rmt-pdf-link.active {
		border: 2px solid CanvasText;
	}

	.rmt-image-lightbox-backdrop {
		background: Canvas;
	}
}
