/* TGR Hero Slider
 * Replicates the homepage hero "slide" disposition (container d80c3f5):
 * left content column, right framed image column.
 */

.tgr-hero-slider {
	position: relative;
}

.tgr-hero-slider .tgr-hero-slider__swiper {
	overflow: hidden;
	width: 100%;
}

/* Each slide clips its own content: the frame SVGs overhang the image box
 * (e.g. landscape extends 16.5% left of the image), and without this the
 * overhang paints into the neighboring slide during/after transitions. */
.tgr-hero-slider .swiper-slide {
	overflow: hidden;
	display: flex;
	height: auto;
}

.tgr-hero-slide {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	flex: 1 1 auto;
	min-height: 700px;
	box-sizing: border-box;
}

/* Left column: subtitle / title / description / button */
.tgr-hero-slide__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	width: 44%;
	flex-shrink: 0;
	z-index: 10;
	padding: 120px 10px 10px 10px;
	box-sizing: border-box;
}

.tgr-hero-slide__subtitle {
	color: #ffffff;
	margin-bottom: 8px;
}

/* Title: H2 element carrying the global (kit) H1 typography.
 * Values mirror the Elementor kit Theme Style > Typography > H1. */
.tgr-hero-slider .tgr-hero-slide__title {
	margin: 0;
	color: #ffffff;
	font-family: "Melun High", sans-serif;
	font-weight: 700;
	font-size: 72px;
	line-height: 80px;
	letter-spacing: -1.44px;
}

.tgr-hero-slide__description {
	color: #ffffff;
	margin: 16px 0 0;
}

.tgr-hero-slide__button {
	margin-top: 30px;
}

.tgr-hero-slide__button .elementor-button {
	position: relative;
	overflow: hidden;
}

/* Right column: image (optionally framed) */
.tgr-hero-slide__media {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.tgr-hero-slide__media .tgr-hero-slide__img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* "Pin Image to Bottom": anchor the media column (and its image) to the
 * bottom edge of the slide instead of vertically centering it. */
.tgr-hero-slide__media--pinned {
	align-self: flex-end;
	align-items: flex-end;
}

/* Frame wrapper mimics the framed Image widget markup so the existing
 * .elementor-widget-image svg.{landscape|portrait|square} and
 * img.image-frame-* rules (Customizer CSS) apply unchanged. */
.tgr-hero-slide__frame {
	position: relative;
	max-width: 100%;
}

.tgr-hero-slide__frame .tgr-hero-slide__img {
	width: 100%;
}

/* Framed images take ~80% of the available width (unframed stay full size):
 * the frame SVGs overhang the image box asymmetrically, so width + left
 * offset are tuned per frame type to keep the whole painted frame inside
 * the slide instead of being clipped at its edges.
 *   landscape: svg spans -16.5% .. +102.5% of the image width
 *   portrait:  svg spans -22%   .. +109%
 *   square:    svg spans -10.5% .. +118.5%
 */
.tgr-hero-slide__frame.image-frame-landscape {
	width: 80%;
	margin-left: 15%;
	margin-right: auto;
}

.tgr-hero-slide__frame.image-frame-portrait {
	width: 75%;
	margin-left: 17%;
	margin-right: auto;
}

.tgr-hero-slide__frame.image-frame-square {
	width: 76%;
	margin-left: 9%;
	margin-right: auto;
}

/* Mirror the Customizer image-frame rules so this widget keeps working
 * even if those global selectors ever change. The shared class names
 * (svg.landscape / img.image-frame-*) also pick up the Customizer CSS. */
.tgr-hero-slide__frame svg.square {
	position: absolute;
	left: -10.5%;
	top: -20.5%;
	width: 129%;
	height: 142%;
	fill: white;
	pointer-events: none;
}
.tgr-hero-slide__frame img.image-frame-square {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.tgr-hero-slide__frame svg.landscape {
	position: absolute;
	left: -16.5%;
	top: -23.5%;
	width: 119%;
	height: 142%;
	fill: white;
	pointer-events: none;
}
.tgr-hero-slide__frame img.image-frame-landscape {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.tgr-hero-slide__frame svg.portrait {
	position: absolute;
	z-index: 2;
	fill: white;
	width: 131%;
	height: 124.7%;
	left: -22%;
	top: -9%;
	pointer-events: none;
}
.tgr-hero-slide__frame img.image-frame-portrait {
	aspect-ratio: 98 / 160;
	object-fit: cover;
}

/* Pagination dots: bottom-left of the slides, aligned with the content column */
.tgr-hero-slider .tgr-hero-slider__dots {
	position: absolute;
	left: 10px;
	right: auto;
	bottom: 32px;
	width: auto;
	text-align: left;
	z-index: 20;
	line-height: 0;
}

.tgr-hero-slider .tgr-hero-slider__dots .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	margin: 0 12px 0 0;
	background: #ffffff;
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.tgr-hero-slider .tgr-hero-slider__dots .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Laptop: kit H1 uses a laptop-specific size */
@media (max-width: 1366px) {
	.tgr-hero-slider .tgr-hero-slide__title {
		font-size: 85px;
	}
}

@media (max-width: 1200px) {
	.tgr-hero-slider .tgr-hero-slide__title {
		font-size: 60px;
	}
}

/* Tablet & below */
@media (max-width: 1024px) {
	.tgr-hero-slide__content {
		width: 50%;
	}
}

@media (max-width: 767px) {
	.tgr-hero-slide {
		flex-direction: column;
		justify-content: center;
		min-height: 660px;
	}

	.tgr-hero-slide__content {
		width: 100%;
		flex: 0 0 auto;
		order: 1;
		padding: 32px 16px 64px 16px; /* extra bottom room for the dots */
		align-items: flex-start;
		text-align: left;
	}

	.tgr-hero-slider .tgr-hero-slide__title {
		font-size: 47px;
		line-height: 1em;
	}

	/* Button stretches edge-to-edge so labels don't wrap */
	.tgr-hero-slide__button {
		width: 100%;
	}

	.tgr-hero-slide__button .elementor-button {
		display: block;
		width: 100%;
		text-align: center;
	}

	.tgr-hero-slide__button .elementor-button .elementor-button-content-wrapper {
		display: flex;
		justify-content: center;
		white-space: nowrap;
	}

	/* Media: 20px lateral breathing room; framed images are narrowed and
	 * offset so the frame SVG overhang stays inside the viewport. */
	.tgr-hero-slide__media {
		display: block;
		width: 100%;
		flex: 0 0 auto;
		order: 0;
		padding: 100px 10px 0 0;
	}

	.tgr-hero-slide__media .tgr-hero-slide__img {
		margin: 0 auto;
	}

	.tgr-hero-slider .tgr-hero-slider__dots {
		left: 16px;
		bottom: 20px;
	}
}
