.fodrp-modal[hidden] {
	display: none;
}

.fodrp-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.68);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 20px;
	position: fixed;
	transition: opacity 0.2s ease;
	z-index: 999999;
}

.fodrp-modal.is-visible {
	opacity: 1;
}

.fodrp-modal__content {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
	max-height: calc(100vh - 40px);
	max-width: calc(100vw - 40px);
	position: relative;
	width: var(--fodrp-width-desktop, 600px);
}

.fodrp-modal__link {
	display: block;
	line-height: 0;
}

.fodrp-modal__image {
	border-radius: 10px;
	display: block;
	height: auto;
	max-height: calc(100vh - 40px);
	object-fit: contain;
	width: 100%;
}

.fodrp-modal__close {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	color: #111;
	cursor: pointer;
	display: flex;
	font: 700 28px/1 Arial, sans-serif;
	height: 40px;
	justify-content: center;
	padding: 0 0 3px;
	position: absolute;
	right: -12px;
	top: -12px;
	width: 40px;
	z-index: 2;
}

.fodrp-modal__close:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.fodrp-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.fodrp-modal__content {
		width: var(--fodrp-width-tablet, 75%);
	}
}

@media (max-width: 600px) {
	.fodrp-modal {
		padding: 16px;
	}

	.fodrp-modal__close {
		right: 6px;
		top: 6px;
	}

	.fodrp-modal__content {
		max-width: calc(100vw - 32px);
		width: var(--fodrp-width-mobile, 92%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fodrp-modal {
		transition: none;
	}
}
