/* 5th Axis — Guides & Resources Slider */

.axis5th-guides {
	--axis5th-guides-image-min-height: 520px;
	--axis5th-guides-label-color: var( --e-global-color-primary, #6d2b2b );
	--axis5th-guides-title-color: #000000;
	--axis5th-guides-desc-color: var( --e-global-color-text, #4a4a4a );
	--axis5th-guides-btn-bg: var( --e-global-color-primary, #6d2b2b );
	--axis5th-guides-btn-hover-bg: #c4191f;
	--axis5th-guides-btn-color: #ffffff;
	--axis5th-guides-nav-border: var( --e-global-color-primary, #6d2b2b );
	--axis5th-guides-nav-color: #ffffff;
	--axis5th-guides-nav-hover-bg: var( --e-global-color-primary, #6d2b2b );
	--axis5th-guides-nav-hover-color: #ffffff;
	--axis5th-guides-thumb-label-color: #ffffff;
	--axis5th-guides-thumb-bg: #1a1a1a;
}

.axis5th-guides-layout {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
	gap: 10px;
	align-items: stretch;
}

/*
 * Grid and flex items default to "at least as wide as my content". The
 * sliders below size their slides from their own width, so without these
 * min-width: 0 rules the two feed each other — slide grows, column grows,
 * slide grows — until the browser's maximum width (16,777,216px). On phones
 * that blew the whole Resources & News section up to millions of pixels.
 */
.axis5th-guides-layout > *,
.axis5th-guides-content,
.axis5th-guides-thumbs {
	min-width: 0;
}

.axis5th-guides-images {
	width: 100%;
	min-height: var( --axis5th-guides-image-min-height );
	overflow: hidden;
}

.axis5th-guides-images .swiper-slide {
	height: auto;
}

.axis5th-guides-slide__image {
	width: 100%;
	height: 100%;
	height: var( --axis5th-guides-image-min-height );
	overflow: hidden;
	background: #111111;
}

.axis5th-guides-slide__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.axis5th-guides-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: var( --axis5th-guides-image-min-height );
}

.axis5th-guides-content {
	width: 100%;
	overflow: hidden;
	flex: 1;
}

.axis5th-guides-label {
	font-family: var( --e-global-typography-57475c0-font-family ), Sans-serif;
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: var( --axis5th-guides-label-color );
	margin-bottom: 1.25rem;
}

.axis5th-guides-title {
	font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
	font-size: clamp( 1.75rem, 3.5vw, 22px );
	font-weight: 700;
	line-height: 1.15;
	color: var( --axis5th-guides-title-color );
	margin-bottom: 2rem;
	max-width: 520px;
}

.axis5th-guides-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	flex-direction: column;
}

.axis5th-guides-desc {
	font-size: clamp( 0.875rem, 1.4vw, 16px );
	line-height: 1.4;
	color: var( --axis5th-guides-desc-color );
	flex: 1;
	font-weight: 400;
}

.axis5th-guides-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.875rem 1.75rem;
	font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: var( --axis5th-guides-btn-color );
	background: var( --axis5th-guides-btn-bg );
	text-decoration: none;
	transition: background 0.25s;
}

.axis5th-guides-btn:hover {
	background: var( --axis5th-guides-btn-hover-bg );
	color: var( --axis5th-guides-btn-color );
}

.axis5th-guides-meta .axis5th-guides-btn {
	margin-left: auto;
}

.axis5th-guides-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp( 2rem, 4vw, 3rem );
	flex-direction: column;
}

.axis5th-guides-panel .axis5th-guides-meta,
.axis5th-guides-panel p,
.axis5th-guides-panel h2 {
	padding-left: 20px;
}

.axis5th-guides-panel .axis5th-guides-meta p {
	padding-left: 0;
}

.axis5th-guides-thumbs {
	flex: 1;
	overflow: hidden;
	max-width: 100%;
}

.axis5th-guides-thumbs .swiper-slide {
	width: 200px;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.3s;
}

.axis5th-guides-thumbs .swiper-slide.is-active {
	opacity: 1;
	display: none;
}

.axis5th-guides-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var( --axis5th-guides-thumb-bg );
}

.axis5th-guides-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.axis5th-guides-thumb__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.65rem 0.75rem;
	font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: var( --axis5th-guides-thumb-label-color );
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.85 ) 0%, transparent 100% );
}

.axis5th-guides-nav {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.axis5th-guides-nav-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var( --axis5th-guides-nav-border );
	color: var( --axis5th-guides-nav-color );
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s;
	padding: 0;
}

.axis5th-guides-nav-btn:hover {
	background: var( --axis5th-guides-nav-hover-bg );
	color: var( --axis5th-guides-nav-hover-color );
}

.axis5th-guides-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

@media ( max-width: 900px ) {
	.axis5th-guides-layout {
		/* minmax(0, 1fr), not 1fr: a plain 1fr column grows to fit the slider (see above). */
		grid-template-columns: minmax( 0, 1fr );
	}

	.axis5th-guides-slide__image,
	.axis5th-guides-images,
	.axis5th-guides-panel {
		min-height: auto;
	}

	.axis5th-guides-slide__image {
		height: 280px;
	}

	.axis5th-guides-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.axis5th-guides-desc {
		max-width: 100%;
	}

	.axis5th-guides-bottom {
		flex-direction: column;
		align-items: stretch;
	}

	.axis5th-guides-thumbs .swiper-slide {
		width: 160px;
	}

	.axis5th-guides-nav {
		align-self: flex-end;
	}
}

@media ( max-width: 480px ) {
	.axis5th-guides-thumbs .swiper-slide {
		width: 140px;
	}

	.axis5th-guides-nav-btn {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}
}
