.rst-award-modal[hidden] {
	display: none !important;
}

.rst-award-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 1000000;
}

.rst-award-modal__backdrop {
	background: rgba(0, 0, 0, 0.78);
	inset: 0;
	position: absolute;
}

.rst-award-modal__dialog {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
	max-height: calc(100vh - 48px);
	max-width: 1100px;
	overflow: auto;
	position: relative;
	width: 100%;
	z-index: 1;
}

.rst-award-modal__close {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	color: #222;
	cursor: pointer;
	display: flex;
	font: 400 34px/1 Arial, sans-serif;
	height: 44px;
	justify-content: center;
	padding: 0 0 4px;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 44px;
	z-index: 2;
}

.rst-award-modal__close:hover,
.rst-award-modal__close:focus-visible {
	background: #f2f2f2;
	outline: 3px solid #7d8f3f;
	outline-offset: 2px;
}

.rst-award-modal__image-link {
	align-items: center;
	display: flex;
	justify-content: center;
}

.rst-award-modal__image-link img {
	display: block;
	height: auto;
	max-height: calc(100vh - 48px);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.rst-award-modal__sr-only {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

body.rst-award-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.rst-award-modal {
		padding: 12px;
	}

	.rst-award-modal__dialog {
		max-height: calc(100vh - 24px);
	}

	.rst-award-modal__close {
		height: 40px;
		right: 8px;
		top: 8px;
		width: 40px;
	}

	.rst-award-modal__image-link img {
		max-height: calc(100vh - 24px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rst-award-modal__dialog {
		animation: rst-award-modal-in 180ms ease-out;
	}

	@keyframes rst-award-modal-in {
		from {
			opacity: 0;
			transform: translateY(10px) scale(0.98);
		}
		to {
			opacity: 1;
			transform: translateY(0) scale(1);
		}
	}
}
