/**
 * VBP About 2 widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-about2.css with the
 * ELEMENTOR_SCREEN_* placeholders replaced by the Site Settings breakpoints.
 * Do not use relative url()s here (images are rendered as <img> from PHP).
 *
 * Figma "About us" (desktop 1545px): white logo card 636 × 490 | 28px | dark story card 881 × 490
 * (#242424 + mirrored curve texture) holding a 392 × 422 photo slider and a 392px text column.
 * Image rules are prefixed with .vbp-about2 to beat Elementor's `.elementor img` reset.
 */

.vbp-about2 {
	font-family: var(--vbp-font);
}

.vbp-about2__grid {
	display: grid;
	grid-template-columns: minmax(0, 636fr) minmax(0, 881fr);
	gap: 28px;
}

.vbp-about2__logo-card,
.vbp-about2__story {
	border-radius: 25px;
}

.vbp-about2__logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	box-shadow: 0 4px 64.3px rgba(0, 0, 0, 0.06);
}

.vbp-about2 .vbp-about2__logo {
	display: block;
	width: 73.15%;
	max-width: 465px;
	height: auto;
}

.vbp-about2__story {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #242424;
}

/* Figma: the dark curve texture, mirrored, slightly taller than the card. */
.vbp-about2 .vbp-about2__texture {
	position: absolute;
	z-index: -1;
	top: -12px;
	left: 0;
	width: 100%;
	max-width: none;
	height: calc(100% + 24px);
	object-fit: cover;
	transform: scaleX(-1);
	pointer-events: none;
}

/* Size container: the story text scales with the card like the Figma artboard (see .vbp-about2__text). */
.vbp-about2__story-inner {
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 392fr) minmax(0, 392fr);
	justify-content: space-between;
	column-gap: 41.5px;
	padding: 27px 28px 14px;
}

.vbp-about2__gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
}

.vbp-about2__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 392 / 422;
	overflow: hidden;
	border-radius: 25px;
	background-color: #383838;
}

.vbp-about2 .vbp-about2__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.vbp-about2 .vbp-about2__slide.is-active {
	opacity: 1;
}

.vbp-about2__dots {
	display: flex;
	gap: 14px;
}

.vbp-about2 .vbp-about2__dot,
.vbp-about2 .vbp-about2__dot:hover,
.vbp-about2 .vbp-about2__dot:focus {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #d9d9d9;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.vbp-about2 .vbp-about2__dot.is-active {
	background-color: #c08e2f;
}

.vbp-about2 .vbp-about2__dot:focus-visible {
	outline: 2px solid #c08e2f;
	outline-offset: 3px;
}

/*
 * Two-column layout: the photo sets the row height and the story column may not exceed it.
 * The text sits absolutely inside its wrapper (so it doesn't stretch the row), stops at the photo's
 * bottom edge (above the dots), and scrolls with a thin gold scrollbar if it is longer.
 */
.vbp-about2__story-inner {
	--vbp-about2-dots-space: 0px;
}

.vbp-about2__story-inner.has-dots {
	--vbp-about2-dots-space: 27px; /* 13px gap + 14px dots */
}

.vbp-about2__text-wrap {
	position: relative;
	min-height: 0;
}

.vbp-about2__text {
	position: absolute;
	inset: 0 0 var(--vbp-about2-dots-space);
	overflow-y: auto;
	padding-right: 12px;
	color: #e0e0e0;
	/* Figma: 20px / 28px in an 825.5px-wide card → keeps the same line breaks at any content width.
	   assets/js/about2.js trims it further if a fallback font still runs past the photo. */
	font-size: clamp(14px, 2.423cqw, 20px);
	line-height: 1.4;
	overscroll-behavior: contain;
	scrollbar-color: #c08e2f transparent;
	scrollbar-width: thin;
}

.vbp-about2__text::-webkit-scrollbar {
	width: 4px;
}

.vbp-about2__text::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: #c08e2f;
}

.vbp-about2__text:focus-visible {
	outline: 2px solid #c08e2f;
	outline-offset: 4px;
	border-radius: 4px;
}

.vbp-about2__text p {
	margin: 0 0 12px;
}

.vbp-about2__text > :last-child {
	margin-bottom: 0;
}

.vbp-about2__text a {
	color: var(--vbp-color-gold-light);
}

@media (prefers-reduced-motion: reduce) {
	.vbp-about2 .vbp-about2__slide {
		transition: none;
	}
}

/* Tablet and below: cards stacked. */
@media (max-width: 1024px) {
	.vbp-about2__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.vbp-about2__logo-card {
		min-height: 360px;
	}

	.vbp-about2__story-inner {
		column-gap: 32px;
		padding: 24px 24px 20px;
	}
}

/* Mobile (Figma 393px): logo card 311px, photo full width, dots, then the story text. */
@media (max-width: 767px) {
	.vbp-about2__logo-card {
		min-height: 311px;
	}

	.vbp-about2 .vbp-about2__logo {
		width: 79.5%;
	}

	.vbp-about2__story-inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 14px;
		padding: 14px 15px 22px;
	}

	.vbp-about2__gallery {
		gap: 10px;
	}

	.vbp-about2__slides {
		aspect-ratio: 321 / 422;
	}

	/* Figma mobile: 12px dots, 7px apart (50 × 12). */
	.vbp-about2__dots {
		gap: 7px;
	}

	.vbp-about2__story-inner.has-dots {
		--vbp-about2-dots-space: 0px;
	}

	.vbp-about2 .vbp-about2__dot,
	.vbp-about2 .vbp-about2__dot:hover,
	.vbp-about2 .vbp-about2__dot:focus {
		width: 12px;
		height: 12px;
	}

	/* Stacked: the story sits under the photo at its full length. */
	.vbp-about2__text {
		position: static;
		overflow: visible;
		padding-right: 0;
		color: #dfdfdf;
		font-size: 18px;
		line-height: 28px;
	}
}
