/**
 * Legacy live markup shim.
 * Live still serves pre-redesign PHP (header__side, old text-image classes).
 * Keep until WP Engine theme PHP matches git (header.php + building-block classes).
 */

/* ---- Header: old side | logo | side layout ---- */
.header:has(.header__side) {
	display: flex;
	justify-content: center;
}

.header:has(.header__side) .wrapper {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: var(--wrapper-max, 1200px);
	padding-left: var(--wrapper-pad, 20px);
	padding-right: var(--wrapper-pad, 20px);
	column-gap: 0;
	grid-template-columns: none;
}

.header:has(.header__side) .logo {
	justify-self: auto;
	grid-column: auto;
	margin: 0 20px;
	flex: 0 0 auto;
}

.header:has(.header__side) .header__side {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.header:has(.header__side) .header__side--right {
	justify-content: flex-end;
}

.header:has(.header__side) .nav__list {
	gap: 0;
}

.header:has(.header__side) .nav__list > li {
	padding: 0 16px;
	margin: 0;
}

.header:has(.header__side) .nav__list--login {
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.header:has(.header__side) .nav__list--login > li {
	padding: 0;
}

@media (max-width: 960px) {
	.header:has(.header__side) .wrapper {
		display: flex;
		justify-content: space-between;
	}

	.header:has(.header__side) .logo {
		margin: 0 auto;
		order: 0;
	}

	.header:has(.header__side) .header__side:not(.header__side--right) {
		flex: 0;
		order: -1;
	}

	.header:has(.header__side) .header__side--right {
		display: none;
	}

	.header:has(.header__side) .header__side .nav__list {
		display: none;
	}

	.header:has(.header__side) .header-burger {
		display: block;
	}
}

/* ---- Text + image: old live classes ---- */
.bb-txt-img__img {
	position: relative;
}

.bb-txt-img__img-bg {
	width: 50%;
	height: calc(100% + 60px);
	position: absolute;
	left: -80px;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 30px;
	z-index: -1;
}

.bb-txt-img:nth-child(even).bb-text-img--text-img-square .bb-txt-img__img-bg {
	left: auto;
	right: -80px;
}

.bb-txt-img__img-border {
	position: relative;
	overflow: hidden;
	border-radius: 30px;
	width: 90%;
	margin: 0 auto 0 0;
	display: block;
	height: 100%;
	min-height: 300px;
	max-height: 600px;
	border: 4px solid var(--color-white, #fff);
}

.bb-txt-img__img-border img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bb-txt-img:nth-child(even).bb-text-img--text-img-square .bb-txt-img__img-border {
	margin: 0 40px 0 auto;
}

.bb-txt-img__title-circle {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	position: absolute;
	z-index: -1;
	left: 0;
	top: -30px;
}

.bb-text-img--text-img-square .bb-txt-img__content h2 {
	position: relative;
	width: 100%;
	margin: 0 0 24px;
	padding: 0 0 0 50px;
}

.new-box-img {
	position: absolute;
	width: calc(100% - 40px);
	height: calc(100% - 40px);
	top: 0;
	left: 0;
	border: 4px solid var(--color-white, #fff);
	margin: 20px;
	pointer-events: none;
}

.new-box-img .circles {
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--color-white, #fff);
	background: var(--color-white, #fff);
}

.new-box-img .circles.top_left { top: -10px; left: -10px; }
.new-box-img .circles.top_right { top: -10px; right: -10px; }
.new-box-img .circles.bottom_left { bottom: -10px; left: -10px; }
.new-box-img .circles.bottom_right { bottom: -10px; right: -10px; }

@media (max-width: 960px) {
	.bb-txt-img__img-border {
		width: 100%;
		margin: 0 0 40px !important;
		max-height: 400px;
		height: 400px;
	}

	.bb-text-img--text-img-square .bb-txt-img__img-bg {
		height: 470px;
		top: -30px;
		width: 80%;
		bottom: auto;
	}

	.bb-text-img--text-img-square .bb-txt-img__content h2 {
		padding: 0;
		margin: 0 0 20px;
	}

	.bb-txt-img__title-circle {
		display: none;
	}
}
