/* Proportional Media Module — layout styles */

.pmm_module .pmm_media_frame {
	position: relative;
	width: 100%;
}

/* ---------- Image mode ---------- */
/* object-fit does the proportional scaling inside a fixed-height frame. */
.pmm_module .pmm_media_frame--image {
	overflow: hidden;
}

.pmm_module .pmm_media_frame--image > .pmm_image {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- PDF mode ---------- */
/* Height is derived from width + the chosen page ratio (padding-top
   "aspect ratio box" technique), which guarantees exact proportional
   scaling in every browser without relying on object-fit support on
   <object>/<iframe>. "Container Height" acts as an optional max-height cap. */
.pmm_module .pmm_pdf_wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.pmm_module .pmm_pdf_ratio_box {
	position: relative;
	width: 100%;
	height: 0;
}

.pmm_module .pmm_pdf_object,
.pmm_module .pmm_pdf_iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pmm_module .pmm_media_frame--pdf {
	margin-bottom: 44px; /* room for the "Open Full PDF" link below */
}

.pmm_module .pmm_pdf_link {
	position: absolute;
	bottom: -40px;
	right: 0;
	z-index: 2;
	padding: 8px 16px;
	background: #2c2c2c;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1;
}

.pmm_module .pmm_pdf_link:hover {
	background: #000;
	color: #fff;
}
