/* ==========================================================================
   Issuu Lightbox — Frontend Styles
   ========================================================================== */

/* Image trigger button
   Sits inside the <figure> and wraps the <img>
   ========================================================================== */

.ilg-trigger {
	display: inline-block;
	position: relative;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	line-height: 0; /* prevents gap below img */
}

.ilg-trigger img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.ilg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.ilg-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: pointer;
}

.ilg-panel {
	position: relative;
	z-index: 1;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	width: min(1400px, 96vw);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	animation: ilg-pop-in 0.22s ease;
}

@keyframes ilg-pop-in {
	from { opacity: 0; transform: scale(0.94) translateY(12px); }
	to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.ilg-panel-header {
	display: none;
}

.ilg-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.ilg-close:hover { background: rgba(0, 0, 0, 0.85); }

.ilg-panel-body {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.ilg-panel-body iframe {
	display: block;
	width: 100%;
	/* extend past the bottom to clip Issuu's branding bar */
	height: calc(100% + 50px);
	min-height: 650px;
	border: none;
	margin-bottom: -50px;
}

@media (max-width: 600px) {
	.ilg-panel-body iframe { min-height: 430px; }
}
