/* Contentscape Works: quick view (eye icon on the works grids). Neuron's popup, with the painting shown whole. */
.m-neuron__quick-view .cw-qv { align-items: stretch; }

/* Painting: never cropped, on white, linking to the work page */
.m-neuron__quick-view .cw-qv-media {
	display: flex; align-items: center; justify-content: center;
	padding: 48px; background: #fff; overflow: visible;
}
.m-neuron__quick-view .cw-qv-media a { display: block; line-height: 0; cursor: pointer; }
.m-neuron__quick-view .m-neuron__quick-view--product-thumbnail.cw-qv-media img {
	width: auto; height: auto; max-width: 100%;
	max-height: min(640px, calc(100vh - 220px));
	object-fit: contain;
}

/* Text column: same order and fonts as the work page */
.m-neuron__quick-view .cw-qv-summary { padding: 48px 56px 48px 8px; font-family: "Abel", sans-serif; }
.m-neuron__quick-view .cw-qv-title { margin: 0 0 16px; }
.m-neuron__quick-view .cw-qv-title a { color: inherit; text-decoration: none; }
.m-neuron__quick-view .cw-qv-title a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.m-neuron__quick-view .cw-qv-details {
	margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid #eaeaea;
	font-family: inherit; font-size: 16px; line-height: 1.5; color: #000;
}
.m-neuron__quick-view .cw-qv-text { margin: 0 0 24px; font-family: inherit; font-size: 15px; line-height: 1.6; color: #000; }
.m-neuron__quick-view .cw-qv-text p { margin: 0 0 8px; font-family: inherit; }
.m-neuron__quick-view .cw-qv-text a { color: inherit; }
.m-neuron__quick-view .cw-work-button { margin: 0 0 20px; }
.m-neuron__quick-view a.cw-qv-more {
	align-self: flex-start; margin: 0;
	font-family: inherit; font-size: 16px; line-height: 1.5; color: #000;
	text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.m-neuron__quick-view a.cw-qv-more:hover { text-decoration-thickness: 2px; }
.m-neuron__quick-view .cw-qv-cats { margin: 0 0 24px; font-family: inherit; font-size: 14px; color: #5a5a5a; }
.m-neuron__quick-view .cw-qv-cats a { color: inherit; }

@media (max-width: 1279px) {
	.m-neuron__quick-view .cw-qv-media { padding: 64px 32px 8px; }
	.m-neuron__quick-view .m-neuron__quick-view--product-thumbnail.cw-qv-media img { max-height: 60vh; }
	.m-neuron__quick-view .cw-qv-summary { padding: 32px 40px 40px; }
}
@media (max-width: 720px) {
	.m-neuron__quick-view .cw-qv-media { padding: 64px 20px 0; }
	.m-neuron__quick-view .cw-qv-summary { padding: 24px 24px 32px; }
}

/* Close (x) inside the white box, black, on every screen size (Neuron puts it outside, in white, on desktop) */
.m-neuron__quick-view--wrapper:has(.cw-qv) .m-neuron__quick-view--close {
	top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px;
	filter: invert(1);
}

/* ---------- Badges (Available / Sold) on the picture ---------- */
.m-neuron-product__inner { position: relative; }
.elementor-widget-neuron-post-featured-image a,
.cw-badge-wrap,
.cw-qv-media a { position: relative; display: inline-block; }
.cw-badge {
	position: absolute; top: 12px; left: 12px; z-index: 4;
	display: inline-block; padding: 5px 10px 4px;
	font-family: "Abel", sans-serif; font-size: 12px; line-height: 1.3; font-weight: 400;
	letter-spacing: .14em; text-transform: uppercase;
	background: #fff; color: #000; border: 1px solid #000;
	pointer-events: none;
}
.cw-badge--sold { background: #000; color: #fff; }
.cw-badge--in-card { top: 10px; left: 10px; }
@media (max-width: 767px) {
	.cw-badge { top: 8px; left: 8px; padding: 4px 8px 3px; font-size: 11px; }
}

/* Hidden page heading (H1) for search engines and screen readers */
.cw-sr-only {
	position: absolute !important; width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important; overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Eye icon (quick view) on the works grids: 20px from the top, same as from the right (theme default 64px) */
.m-neuron-product .m-neuron-product__overlay .m-neuron-product__quick-view { top: 20px; }

/* Quick view on big screens (side-by-side layout, 1280px+): wider popup (up to 1280px / 90% of the screen),
   painting 60% / text 40%, so landscape paintings are not squeezed. Phones/tablets unchanged. */
@media (min-width: 1280px) {
	.m-neuron__quick-view .m-neuron__quick-view--wrapper:has(.cw-qv) { max-width: min(1280px, 90vw); }
	.m-neuron__quick-view .cw-qv > .cw-qv-media { flex: 0 0 60%; max-width: 60%; padding: 40px; }
	.m-neuron__quick-view .cw-qv > .cw-qv-summary { flex: 0 0 40%; max-width: 40%; padding: 40px 48px 40px 8px; }
	.m-neuron__quick-view .m-neuron__quick-view--product-thumbnail.cw-qv-media img { max-height: min(680px, calc(100vh - 200px)); }
}
