/**
 * Home page - "Start with your journey" (Family / Groups / Couples / Solo): "Editorial gallery".
 * See home-journeys.js. Desktop: a soft panel on the left (with a faint topographic pattern) holds the
 * section's own eyebrow and title, set large; on its right, tall edge-to-edge photos run off the
 * screen and glide with a round arrow button (or drag / trackpad). Tablet & phone: the panel sits on
 * top, the photos swipe below (with the animated hand of home-destinations.css on phones).
 *
 *  .ath-jc            the section (outer container)
 *  .ath-jc__panel     left panel (created by the script), receives the heading block
 *  .ath-jc__row       the section's .e-con-inner - the scrolling track of photos
 *  .ath-jc__card      each journey (Elementor container, photo kept as its background)
 */
.ath-jc {
	--jc-ink: #100e0e;
	--jc-gold: #c9a876;
	--jc-gold-deep: var(--ath-gold, #b08d57);
	--jc-panel: #ebe5dc;
	--jc-display: var(--ath-serif, "Montserrat Alternates", sans-serif);
	--jc-body: var(--ath-sans, "Montserrat", sans-serif);
	--jc-ease: cubic-bezier(.2, .7, .1, 1);
	--jc-h: clamp(380px, 32vw, 500px);
	--jc-card: clamp(240px, 20vw, 340px);
	--jc-gap: 14px;
	--padding-top: 0px !important; --padding-bottom: 0px !important; --padding-left: 0px !important; --padding-right: 0px !important;
	--content-width: 100% !important;
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	scroll-snap-type: none !important;
}

/* -------------------------------------------------------------- left panel */
.ath-jc__panel {
	position: relative;
	flex: 0 0 30%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px clamp(24px, 4.5vw, 80px);
	background-color: var(--jc-panel);
	/* Faint topographic lines */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='%23100e0e' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M60 140c40-60 140-70 190-30s50 120 0 150-150 20-180-30-40-60-10-90z'/%3E%3Cpath d='M85 150c30-40 110-45 145-18s35 90-2 110-112 14-135-22-30-45-8-70z'/%3E%3Cpath d='M112 163c20-24 72-28 96-10s22 58-2 72-74 8-88-14-20-30-6-48z'/%3E%3Cpath d='M300 330c60-40 170-20 190 40s-40 120-110 120-140-30-130-90 20-50 50-70z'/%3E%3Cpath d='M325 352c44-28 122-14 136 30s-30 86-80 86-100-22-93-64 14-36 37-52z'/%3E%3Cpath d='M352 374c26-16 72-8 80 18s-18 50-46 50-58-12-54-36 8-22 20-32z'/%3E%3Cpath d='M-20 420c60-30 140 10 160 70M400 -10c-20 60 30 120 130 120M10 20c80 10 120 60 110 120'/%3E%3C/svg%3E");
	background-size: 520px 520px;
}
.ath-jc__panel > .e-con {
	--padding-top: 0px !important; --padding-bottom: 0px !important; --padding-left: 0px !important; --padding-right: 0px !important;
	--content-width: 100% !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}
.ath-jc__panel > .e-con > .e-con-inner { max-width: none !important; padding: 0 !important; align-items: flex-start !important; }
.ath-jc__panel .elementor-widget { width: 100% !important; margin: 0 !important; text-align: left !important; }
.ath-jc__panel .elementor-heading-title { text-align: left !important; margin: 0 !important; }
.ath-jc__panel .elementor-widget-heading:first-child .elementor-heading-title {
	font: 500 11px/1.4 var(--jc-body) !important;
	letter-spacing: .26em !important;
	text-transform: uppercase !important;
	color: var(--jc-gold-deep) !important;
}
.ath-jc__panel .elementor-widget-heading + .elementor-widget-heading { margin-top: 18px !important; }
.ath-jc__panel .elementor-widget-heading + .elementor-widget-heading .elementor-heading-title {
	font-family: var(--jc-display) !important;
	font-weight: 300 !important;
	font-size: clamp(30px, 3vw, 50px) !important;
	line-height: 1.02 !important;
	letter-spacing: -.02em !important;
	color: #4a4541 !important;
	text-transform: none !important;
}

/* ------------------------------------------------------------ photo track */
.ath-jc .ath-jc__row {
	flex: 1 1 auto;
	min-width: 0;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: var(--jc-gap) !important;
	max-width: none !important;
	width: auto !important;
	height: var(--jc-h) !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}
.ath-jc .ath-jc__row::-webkit-scrollbar { display: none; }
.ath-jc .ath-jc__row.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ath-jc .ath-jc__row.is-dragging .ath-jc__card { pointer-events: none; }

.ath-jc .ath-jc__card {
	--min-height: 0px !important;
	--width: auto !important;
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	align-items: stretch !important;
	flex: 0 0 var(--jc-card) !important;
	width: var(--jc-card) !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 clamp(20px, 2vw, 32px) clamp(20px, 2vw, 30px) !important;
	gap: 0 !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	isolation: isolate;
	background-size: cover !important;
	background-position: center !important;
	scroll-snap-align: start;
	-webkit-user-drag: none;
}
.ath-jc .ath-jc__card::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	z-index: 1 !important;
	opacity: 1 !important;
	pointer-events: none;
	background-image: linear-gradient(180deg, rgba(16, 14, 14, 0) 55%, rgba(16, 14, 14, .62) 100%) !important;
	transition: opacity .8s var(--jc-ease);
}
.ath-jc .ath-jc__card > .elementor-widget { position: relative; z-index: 2; margin: 0 !important; width: 100% !important; max-width: none !important; }
.ath-jc .ath-jc__card .elementor-heading-title { margin: 0 !important; text-align: left !important; }
.ath-jc .ath-jc__tag .elementor-heading-title {
	font: 500 11px/1.5 var(--jc-body) !important;
	letter-spacing: .22em !important;
	text-transform: uppercase !important;
	color: rgba(255, 255, 255, .85) !important;
}
.ath-jc .ath-jc__title { margin-top: 8px !important; }
.ath-jc .ath-jc__title .elementor-heading-title,
.ath-jc .ath-jc__title .elementor-heading-title a {
	font-family: var(--jc-display) !important;
	font-weight: 300 !important;
	font-size: clamp(22px, 1.8vw, 30px) !important;
	line-height: 1.1 !important;
	letter-spacing: -.01em !important;
	color: #fff !important;
	text-decoration: none !important;
}
.ath-jc .ath-jc__arrow-txt { color: var(--jc-gold); font-weight: 300; display: inline; position: relative; left: 0; transition: left .6s var(--jc-ease); }
.ath-jc .ath-jc__card:hover .ath-jc__arrow-txt { left: 6px; }
.ath-jc .ath-jc__cover { position: absolute; inset: 0; z-index: 3; }
.ath-jc .ath-jc__cover:focus-visible { outline: 2px solid var(--jc-gold); outline-offset: -4px; }

/* ------------------------------------------------------- round arrow buttons */
.ath-jc__btn {
	position: absolute;
	top: 50%;
	z-index: 6;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--jc-gold-deep);
	font: 300 18px/1 var(--jc-body);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 14px 34px -14px rgba(16, 14, 14, .45);
	transition: transform .5s var(--jc-ease), background .4s, color .4s, opacity .4s;
}
.ath-jc__btn:hover { transform: scale(1.08); background: var(--jc-ink); color: var(--jc-gold); }
.ath-jc__btn:focus-visible { outline: 2px solid var(--jc-gold); outline-offset: 3px; }
.ath-jc__btn--next { right: 28px; }
.ath-jc__btn--prev { left: calc(30% + 20px); }
.ath-jc__btn:disabled { opacity: 0; pointer-events: none; }
.ath-jc.is-static .ath-jc__btn { display: none; }

/* -------------------------------------------------------- tablet / phone */
@media (max-width: 1024px) {
	.ath-jc { flex-direction: column !important; overflow: visible !important; }
	.ath-jc__panel { flex: none; padding: 34px 24px 26px; }
	.ath-jc { --jc-h: clamp(320px, 50vw, 440px); --jc-card: clamp(220px, 38vw, 320px); --jc-gap: 12px; }
	.ath-jc .ath-jc__row { padding: 0 20px !important; scroll-padding: 0 20px; cursor: auto; }
	.ath-jc__btn { display: none; }
}
@media (max-width: 767px) {
	.ath-jc { --jc-h: min(100vw, 400px); --jc-card: 72vw; }
	.ath-jc__panel { padding: 28px 20px 22px; }
	.ath-jc__panel .elementor-widget-heading:first-child .elementor-heading-title { font-size: 11px !important; }
	.ath-jc__panel .elementor-widget-heading + .elementor-widget-heading { margin-top: 16px !important; }
	.ath-jc .ath-jc__card { padding: 0 18px 20px !important; }
	.ath-jc .ath-jc__title .elementor-heading-title,
	.ath-jc .ath-jc__title .elementor-heading-title a { font-size: 24px !important; }
	.ath-jc .ath-hs__swipe { top: calc(100% - var(--jc-h) / 2); }
}
@media (prefers-reduced-motion: reduce) {
	.ath-jc .ath-jc__row { scroll-behavior: auto; }
	.ath-jc__btn, .ath-jc .ath-jc__arrow-txt { transition: none !important; }
}
