/* Flexa frontend: lightbox triggers + embed wrapper */

.flexa-embed { line-height: 0; }
.flexa-align-left  { margin-right: auto !important; }
.flexa-align-right { margin-left: auto !important; }

.flexa-lb-trigger {
	display: inline-block;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
}
img.flexa-lb-trigger {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 4px;
	transition: transform .15s ease, box-shadow .15s ease;
}
img.flexa-lb-trigger:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
button.flexa-lb-trigger {
	font: inherit;
	padding: 10px 20px;
	border-radius: 6px;
	background: #2f6bff;
	color: #fff;
}
button.flexa-lb-trigger:hover { background: #1d54e0; }

.flexa-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10, 12, 16, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(10px, 3vw, 40px);
}
.flexa-lightbox-frame {
	width: 100%;
	height: 100%;
	max-width: 1400px;
	border: 0;
	border-radius: 8px;
	background: #222a36;
}
.flexa-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.flexa-lightbox-close:hover { background: rgba(255, 255, 255, .22); }

.flexa-download-row {
	line-height: normal;
	margin-top: 10px;
	text-align: center;
}

/* When a lightbox "View" trigger and the standalone "Download" link both
   render from the same placement, they sit side by side in this row
   instead of stacking - .flexa-download-row's own top margin is meant for
   the "stacked below the embed" case and would create uneven spacing here. */
.flexa-buttons-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}
.flexa-buttons-row .flexa-download-row {
	margin-top: 0;
}
.flexa-download-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 50%;
	background: #2f6bff;
	color: #fff;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}
.flexa-download-link svg { fill: currentColor; flex: none; }
.flexa-download-link:hover { background: #1d54e0; color: #fff; transform: translateY(-2px); }

.flexa-download-link--image {
	display: inline-block;
	width: auto;
	height: auto;
	padding: 0;
	background: none;
	border-radius: 4px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.flexa-download-link--image img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 4px;
}
.flexa-download-link--image:hover {
	background: none;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
