/**
 * Single Legend (bv_legend) template.
 *
 * Loaded only on is_singular('bv_legend') (see bootstrap.php).
 * Hero itself is the shared .bv-editorial-panel component (dark, full
 * bleed) — see boravision-components.css. Quote and bio typography here
 * are page-specific, matching the existing precedent that the product
 * page's own Legend quote is page-specific CSS too, not a shared
 * component.
 */

body.boravision.single-bv_legend .bv-legend-single {
	width: 100%;
}

/* ---------- Quote spotlight ---------- */

body.boravision.single-bv_legend .bv-legend-single__quote {
	width: min(calc(100% - (2 * var(--bv-page-gutter))), 900px);
	margin: clamp(64px, 8vw, 104px) auto;
	text-align: center;
}

body.boravision.single-bv_legend .bv-legend-single__quote blockquote {
	margin: 0;
	color: var(--bv-color-black);
	font-family: var(--bv-font-heading);
	font-size: clamp(26px, 3vw, 40px);
	font-style: italic;
	font-weight: 600;
	line-height: 1.3;
}

body.boravision.single-bv_legend .bv-legend-single__quote-attrib {
	margin: 20px 0 0;
	color: var(--bv-color-text-muted);
	font-family: var(--bv-font-ui);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- Bio ---------- */

body.boravision.single-bv_legend .bv-legend-single__bio {
	padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px);
}

body.boravision.single-bv_legend .bv-legend-single__bio-grid {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 40px;
	width: min(calc(100% - (2 * var(--bv-page-gutter))), 1100px);
	margin: 0 auto;
}

body.boravision.single-bv_legend .bv-legend-single__bio-index {
	font-family: var(--bv-font-ui);
	font-size: 14px;
	font-weight: 600;
	color: var(--bv-color-border);
	letter-spacing: 0.08em;
}

body.boravision.single-bv_legend .bv-legend-single__bio-body {
	max-width: 70ch;
	color: var(--bv-color-text-muted);
	font-size: 16px;
	line-height: 1.8;
}

body.boravision.single-bv_legend .bv-legend-single__bio-body p {
	margin: 0 0 18px;
}

body.boravision.single-bv_legend .bv-legend-single__bio-body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	body.boravision.single-bv_legend .bv-legend-single__bio-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.boravision.single-bv_legend .bv-legend-single__bio-index {
		display: none;
	}
}

/* ---------- Gallery ---------- */

body.boravision.single-bv_legend .bv-legend-single__gallery {
	padding-bottom: clamp(64px, 8vw, 104px);
}

/* ---------- October 2026 refresh ---------- */

/* The template's Elementor containers add their own side padding on top of
   the page gutter; the page owns its gutters, so drop the container ones. */
/* The parent theme wraps singles in .theme-container (20px) + .page-content
   (15px); the legend page manages its own gutters, so remove both. */
body.boravision.single-bv_legend .site-content .theme-container,
body.boravision.single-bv_legend .site-content .page-content {
	max-width: none;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.boravision.single-bv_legend .elementor-location-single .e-con {
	--padding-left: 0px;
	--padding-right: 0px;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.boravision.single-bv_legend .bv-legend-single__bio-body {
	color: #39393b;
	font-size: 17px;
	line-height: 1.75;
}

/* Shop the edition */
body.boravision.single-bv_legend .bv-legend-single__editions {
	width: min(calc(100% - (2 * var(--bv-page-gutter))), 1100px);
	margin: 0 auto clamp(56px, 7vw, 96px);
}

body.boravision.single-bv_legend .bv-legend-single__editions-head {
	margin-bottom: 20px;
}

body.boravision.single-bv_legend .bv-legend-single__editions-head h2 {
	margin: 0;
	color: #111111;
	font-family: var(--bv-font-heading);
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
}

body.boravision.single-bv_legend .bv-legend-single__editions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 16px;
}

body.boravision.single-bv_legend .bv-legend-edition {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 16px;
	background: #f5f5f5;
	color: #111111;
	text-decoration: none;
	transition: background 200ms ease;
}

body.boravision.single-bv_legend .bv-legend-edition:hover {
	background: #ececec;
}

body.boravision.single-bv_legend .bv-legend-edition__media {
	overflow: hidden;
	border-radius: 10px;
	background: #ffffff;
}

body.boravision.single-bv_legend .bv-legend-edition__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	margin: 0;
	object-fit: contain;
}

body.boravision.single-bv_legend .bv-legend-edition__body {
	display: grid;
	gap: 6px;
}

body.boravision.single-bv_legend .bv-legend-edition__body strong {
	font-family: var(--bv-font-heading);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

body.boravision.single-bv_legend .bv-legend-edition__price {
	color: #39393b;
	font-weight: 600;
}

body.boravision.single-bv_legend .bv-legend-edition__cta {
	display: inline-flex;
	justify-self: start;
	align-items: center;
	height: 44px;
	margin-top: 8px;
	padding: 0 20px;
	border-radius: 22px;
	color: #ffffff;
	background: #111111;
	font-weight: 600;
}

@media (max-width: 767px) {
	/* Hero photo edge to edge on phones. */
	body.boravision.single-bv_legend .bv-legend-single .bv-editorial-panel {
		width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		border-radius: 0 !important;
	}

	body.boravision.single-bv_legend .bv-legend-single__quote {
		margin: 48px auto;
		text-align: left;
	}

	body.boravision.single-bv_legend .bv-legend-single__bio {
		padding-top: 0;
	}

	body.boravision.single-bv_legend .bv-legend-single__gallery .bv-media-mosaic {
		width: calc(100% - (2 * var(--bv-page-gutter))) !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	body.boravision.single-bv_legend .bv-legend-edition {
		grid-template-columns: 112px minmax(0, 1fr);
		padding: 12px;
	}

	body.boravision.single-bv_legend .bv-legend-edition__body strong {
		font-size: 20px;
	}
}

/* ---------- Gallery grid (any number of photos) ---------- */

body.boravision.single-bv_legend .bv-legend-single__gallery-head,
body.boravision.single-bv_legend .bv-legend-gallery {
	width: min(calc(100% - (2 * var(--bv-page-gutter))), 1320px);
	margin-right: auto;
	margin-left: auto;
}

body.boravision.single-bv_legend .bv-legend-single__gallery-head {
	margin-bottom: 20px;
}

body.boravision.single-bv_legend .bv-legend-single__gallery-head h2 {
	margin: 0;
	color: var(--bv-color-black);
	font-family: var(--bv-font-heading);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

body.boravision.single-bv_legend .bv-legend-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

body.boravision.single-bv_legend .bv-legend-gallery__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--bv-radius);
	background: var(--bv-color-surface);
}

body.boravision.single-bv_legend .bv-legend-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

body.boravision.single-bv_legend .bv-legend-gallery__item:hover img,
body.boravision.single-bv_legend .bv-legend-gallery__item:focus-visible img {
	transform: scale(1.03);
}

@media (max-width: 1023px) {
	body.boravision.single-bv_legend .bv-legend-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.boravision.single-bv_legend .bv-legend-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
}
