/**
 * ESS About — Public Carousel Styles
 * BEM naming with ess-about prefix.
 */

/* ============================================================
   Section
   ============================================================ */

.ess-about {
	position: relative;
	z-index: 0;
	background: transparent;
	color: #2d2d2d;
	/* Break out of any theme content container to fill full viewport width */
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	/* NO overflow here — it creates a box that traps arrows and slides.
	   Clipping lives on the viewport instead. */
	opacity: 0;
	transform: translateY(3rem);
	transition: opacity 0.6s, transform 0.6s;
}

.ess-about.ess-about--visible {
	opacity: 1;
	transform: translateY(0);
}

.ess-about::before,
.ess-about::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	height: 1px;
	width: calc(100vw - 48px);
	max-width: 1392px;
	background: #c7c4c0;
	z-index: 1;
}

.ess-about::before {
	top: 0;
}

.ess-about::after {
	bottom: 0;
}

/* ============================================================
   Container
   ============================================================ */

.ess-about__container {
	width: 100%;
	padding: 48px 24px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ess-about__container {
		padding: 56px 12px;
	}
}

/* Container has NO transform — transform creates a containing block
   that traps child overflow, preventing slides from extending
   past the container's padding boundary. */

/* ============================================================
   Filter Tabs
   ============================================================ */

.ess-about__filters {
	overflow-x: auto;
	position: relative;
	display: flex;
	width: calc(100% - 48px);
	margin-left: 24px;
	margin-bottom: 48px;
}

@media (min-width: 768px) {
	.ess-about__filters {
		width: calc(100% - 24px);
		margin-left: 12px;
		margin-bottom: 56px;
	}
}

.ess-about__filters::after {
	content: "";
	width: 100%;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #c7c4c0;
	margin: auto;
}

.ess-about__filters::-webkit-scrollbar {
	display: none;
}

.ess-about__filter-bar {
	display: flex;
	margin: auto;
	position: relative;
	z-index: 1;
}

.ess-about__filter-bar::after {
	content: "";
	width: 100%;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #c7c4c0;
	margin: auto;
}

.ess-about__tab {
	height: 56px;
	padding: 17px 16px 16px;
	display: block;
	text-decoration: none;
	font-size: 16px;
	line-height: 22px;
	position: relative;
	white-space: nowrap;
	letter-spacing: -0.02em;
	border: 0;
	background-color: transparent;
	font-family: "Spezia Serif", Georgia, "Times New Roman", serif;
	cursor: pointer;
	color: #2d2d2d;
}

.ess-about__tab::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 12px;
	width: calc(100% - 24px);
	height: 1px;
	background: currentColor;
	z-index: 1;
	opacity: 0;
	transition: 0.5s ease-out;
}

.ess-about__tab--active::after,
.ess-about__tab:hover::after {
	opacity: 1;
}

/* ============================================================
   Group (carousel per group)
   ============================================================ */

.ess-about__group {
	position: relative;
	padding: 0;
	overflow: visible;
	opacity: 0;
	transition: 0.3s ease-in-out;
	display: none;
	margin-left: -24px;
	margin-right: -24px;
}

@media (min-width: 768px) {
	.ess-about__group {
		margin-left: -12px;
		margin-right: -12px;
	}
}

.ess-about__group--active {
	opacity: 1;
	display: block;
}

/* ============================================================
   Swiper Container (overflow mask)
   ============================================================ */

.ess-about__viewport {
	position: relative;
	overflow: clip;
	padding: 0;
	z-index: 1;
	width: 100%;
}

/* ============================================================
   Track (translating wrapper)
   ============================================================ */

.ess-about__track {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
	transform: translate3d(0, 0, 0);
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.ess-about__track.ess-about__track--dragging {
	cursor: grabbing;
	transition-duration: 0ms !important;
}

/* ============================================================
   Slide
   ============================================================ */

.ess-about__slide {
	flex-shrink: 0;
	width: 330px;
	max-width: calc(100vw - 24px);
	height: auto;
	position: relative;
	padding: 0 24px;
	border-right: 1px solid #c7c4c0;
	transition: opacity 0.3s;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ess-about__slide {
		padding: 0 24px;
		width: 414px;
	}
}

.ess-about__slide:last-of-type {
	border-right: none !important;
}

/* ============================================================
   Image
   ============================================================ */

.ess-about__photo {
	position: relative;
}

.ess-about__photo::before {
	content: "";
	padding-bottom: 133.33%;
	display: block;
}

.ess-about__img {
	object-fit: cover;
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 0;
}

/* ============================================================
   Text Content
   ============================================================ */

.ess-about__content {
	width: 100%;
	margin-top: 16px;
}

.ess-about__heading {
	font-style: normal;
	font-weight: 300;
	padding: 0;
	margin: 0 0 12px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	letter-spacing: -0.02em;
	font-size: 18px;
	line-height: 26px;
	color: #392d2a;
}

@media (min-width: 768px) {
	.ess-about__heading {
		font-size: 20px;
		line-height: 28px;
	}
}

@media (min-width: 1025px) {
	.ess-about__heading {
		font-size: 22px;
		line-height: 30px;
		margin-bottom: 16px;
	}
}

.ess-about__job-title {
	color: #2d2d2d;
	font-family: "Century Gothic", "CenturyGothic", "AppleGothic", sans-serif;
	font-size: 15px;
	line-height: 21px;
}

.ess-about__bio {
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0 0 12px;
	font-family: "Spezia Serif", Georgia, "Times New Roman", serif;
	letter-spacing: -0.02em;
	font-size: 16px;
	line-height: 24px;
}

@media (min-width: 768px) {
	.ess-about__bio {
		font-size: 14px;
		line-height: 20px;
	}
}

@media (min-width: 1025px) {
	.ess-about__bio {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 16px;
	}
}

.ess-about__bio:last-child {
	margin-bottom: 0;
}

/* ============================================================
   Learn More CTA
   ============================================================ */

.ess-about__cta-wrap {
	margin-left: 1px;
	margin-top: 24px;
}

.ess-about__cta {
	line-height: normal;
	font-family: "Century Gothic", "CenturyGothic", "AppleGothic", sans-serif;
	color: currentColor;
	margin: 4px 4px 6px 0;
	text-decoration: none;
	transition: 0.15s ease-in-out;
	position: relative;
	padding: 0 0 3px;
	cursor: pointer;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.1em;
	border: 0;
	background: inherit;
	border-radius: 0;
	display: inline-block;
}

.ess-about__cta::before {
	content: "";
	width: 100%;
	opacity: 0.3;
	height: 1px;
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: currentColor;
	pointer-events: none;
}

.ess-about__cta::after {
	content: "";
	height: 1px;
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: currentColor;
	pointer-events: none;
	width: 0;
	transition: 0.15s ease-in-out;
}

.ess-about__cta:hover::after {
	width: 100%;
}

/* ============================================================
   Navigation Arrows
   ============================================================ */

.ess-about__arrow-next,
.ess-about__arrow-prev {
	position: absolute;
	top: 50%;
	margin-top: -20px;
	width: 40px;
	height: 40px;
	z-index: 10;
	cursor: pointer;
	background: #392d2a;
	background-image: none;
	border: 1px solid #392d2a;
	border-radius: 100%;
	opacity: 0.95;
	transition: 0.3s ease-in-out, opacity 0.1s;
	will-change: opacity, transform;
	display: none;
	padding: 0;
}

@media (min-width: 768px) {
	.ess-about__arrow-next,
	.ess-about__arrow-prev {
		display: block;
	}
}

/* Chevron arrows via CSS borders */
.ess-about__arrow-next::before,
.ess-about__arrow-prev::before {
	content: "";
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform-origin: center;
	width: 5px;
	height: 5px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/* Next arrow (right chevron) — sits just right of centered first slide */
.ess-about__arrow-next {
	left: auto;
	right: calc(50% - 230px);
}

.ess-about__arrow-next::before {
	margin: auto 14px;
	transform: rotate(-45deg);
}

/* Prev arrow (left chevron) — symmetric with next arrow */
.ess-about__arrow-prev {
	right: auto;
	left: calc(50% - 230px);
}

.ess-about__arrow-prev::before {
	margin: auto 17px;
	transform: rotate(135deg);
}

/* Hover state */
.ess-about__arrow-next:hover,
.ess-about__arrow-prev:hover {
	opacity: 1;
	transform: scale(1.1);
}

/* Arrows are always active — circular navigation wraps around */

/* Dimmed when at the boundary (first or last slide) */
.ess-about__arrow--end {
	opacity: 0.3;
	cursor: default;
}

/* Hidden only when a single slide or none */
.ess-about__arrow--hidden {
	display: none !important;
}

/* ============================================================
   Mobile line-break behavior
   ============================================================ */

@media (max-width: 767.98px) {
	.ess-about__content br {
		display: none;
	}

	.ess-about__spacer::before {
		content: " ";
	}
}

/* ============================================================
   Culture variant — wider landscape images, slides left-aligned
   ============================================================ */

.ess-about--culture .ess-about__photo::before {
	padding-bottom: 75%; /* 4:3 landscape instead of 3:4 portrait */
}

.ess-about--culture .ess-about__img {
	object-position: center center;
}

.ess-about--culture .ess-about__slide {
	width: 420px;
	padding: 0 48px;
}

@media (min-width: 768px) {
	.ess-about--culture .ess-about__slide {
		width: 520px;
		padding: 0 56px;
	}
}

.ess-about--culture .ess-about__bio {
	font-family: "Century Gothic", "CenturyGothic", "AppleGothic", sans-serif;
	letter-spacing: 0;
	font-size: 14px;
	line-height: 22px;
}

@media (min-width: 768px) {
	.ess-about--culture .ess-about__bio {
		font-size: 12px;
		line-height: 18px;
	}
}

@media (min-width: 1025px) {
	.ess-about--culture .ess-about__bio {
		font-size: 14px;
		line-height: 22px;
	}
}

.ess-about--culture .ess-about__arrow-prev {
	left: calc(50% - 282px);
}

.ess-about--culture .ess-about__arrow-next {
	right: calc(50% - 282px);
}


