/* Brochure PDF modal iframe — centred, size set in JS on resize */
.re-brochure-iframe-wrap {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100%;
	box-sizing: border-box;
	padding: 1rem;
}

/* PowerPack fullscreen shells need a tall wrap; property modals must not. */
.pp-modal .re-brochure-iframe-wrap,
.pp-modal-content-inner .re-brochure-iframe-wrap {
	min-height: 100vh;
}

.re-property-modal .re-brochure-iframe-wrap {
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	padding: 0 !important;
}

.pp-modal-content-inner:has(> .re-brochure-iframe-wrap) {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 100%;
	padding: 0 !important;
}

.re-brochure-iframe-wrap iframe.re-brochure-iframe,
.pp-modal .re-brochure-iframe-wrap iframe.mfp-iframe.re-brochure-iframe {
	display: block !important;
	border: 0 !important;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	/* Fallback before JS runs — A4 landscape, 80vh capped by 95vw */
	width: min(95vw, calc(80vh * 297 / 210));
	height: min(80vh, calc(95vw * 210 / 297));
	max-width: 95vw;
	max-height: 80vh;
	aspect-ratio: 297 / 210;
}
