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

/* Dark backdrop */
body .fg-panel {
	background: rgba(0,0,0,.72) !important;
	max-width: 900px;
	padding-left: calc(50% - (900px / 2));
	padding-right: calc(50% - (900px / 2));
}

.fg-panel.fg-light :is(.fg-panel-cart-inner, .fg-panel-info-inner) {
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
	border-top: 1px solid rgba(0,0,0,0.08);
	bottom: 5px;
}

/* Keep info panel visible */
.fg-panel .fg-panel-info {
	display: block !important;
	margin-top: 20px;
}

/* Hide native caption so it never flashes */
.fg-panel .fg-panel-info-inner > .fg-media-caption,
.fg-panel .fg-media-caption,
.fg-panel .fg-media-caption.fg-loaded {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Hide bottom thumbnail strip */
.fg-panel .fg-panel-thumbs {
	display: none !important;
}

/* Hide info icon */
.fg-panel .fg-panel-button-info {
	display: none !important;
}

/* Lightbox controls */
.fg-panel .fg-panel-button-close,
.fg-panel .fg-panel-button-prev,
.fg-panel .fg-panel-button-next {
	background: rgba(255,255,255,.94) !important;
	border-radius: 10px !important;
	box-shadow: 0 4px 16px rgba(0,0,0,.14);
	transition: background .18s ease, transform .15s ease;
}

.fg-panel-area-toggle .fg-icon,
.fg-panel-button .fg-icon {
	color: #57a5ab;
	transition: color .18s ease;
}

.fg-panel-button:hover {
	background: rgba(255,255,255,1) !important;
}

.fg-panel-button:hover .fg-icon {
	color: #8b1a1a;
}

/* Media area */
.fg-media {
	top: 5px !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.fg-media-content {
	padding-bottom: 215px;
	box-shadow: 0 14px 50px rgba(0,0,0,.35);
	border-radius: 6px;
}

/* =========================================
   Custom injected info card
========================================= */

.fm-showroom-testbox {
	background: none;
	padding: 24px 32px 26px;
	min-height: 200px;
	border-top: 1px solid rgba(0,0,0,.06);
	border-radius: 0 0 14px 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.fm-showroom-testbox-inner {
	max-width: 860px;
	margin: 0 auto;
	transition: opacity .14s ease;
}

.fm-showroom-testbox-inner h2 {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #2f2f2f;
}

.fm-showroom-testbox-inner .fm-meta {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: #5a6168;
}

.fm-meta {
	display: flex;
	align-items: center;
	gap: 4px;
}

.fm-showroom-testbox-inner p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.7;
	color: #555d65;
}

.fm-showroom-testbox-inner blockquote {
	margin: 6px 0 0;
	padding: 14px 16px;
	background: #eef2f3;
	border-left: 3px solid #7dc7cf;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: #4e5961;
}

.fm-showroom-link {
	color: #a43c3c;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.fm-showroom-link:hover {
	color: #8b1a1a;
	text-decoration: underline;
}

/* Header row */
.fm-showroom-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 4px;
}

/* Title */
.fm-showroom-header h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #2f2f2f;
}

/* Memorial type / size */
.fm-showroom-header .fm-meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 500;
	color: #5a6168;
	white-space: nowrap;
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	top: -16px;
	position: relative;
}

.fm-meta-secondary {
	font-size: 13px;
	color: #7a8086;
	margin-top: 2px;
}

.fg-panel img {
	pointer-events: none;
}

.fm-showroom-link::after {
	content: " →";
	opacity: 0.85;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {
	.fm-showroom-testbox {
		padding: 20px 22px 22px;
		min-height: 170px;
	}

	.fm-showroom-testbox-inner h2 {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.fm-showroom-testbox blockquote {
		display: none;
	}

	.fm-showroom-testbox p {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.fm-showroom-testbox {
		padding: 16px;
	}

	.fg-panel:is(.fg-medium, .fg-panel-no-mobile) :is(.fg-panel-buttons, .fg-panel-content-buttons) :is(.fg-panel-button-prev, .fg-panel-button-next) {
		top: 40%;
		transform: translateY(-50%);
		background: rgba(255,255,255,0.85) !important;
	}
	
	.fg-media-content {
		padding-bottom: 170px;
	}

}