/**
 * MTW Marquee
 * Figma matched
 */

/* =========================================================
   OUTER MARQUEE
========================================================= */

.mtw-marquee {
	position: relative;

	width: 100%;
	max-width: none;
	height: 174px;

	margin: 0;

	/* background: #FFF8B6; */
	background: #F3D6BB;

	/* overflow: hidden; */
	isolation: isolate;
}


/* =========================================================
   ROTATED DARK YELLOW BAND
========================================================= */

.mtw-marquee__band {
	position: absolute;

	top: 0;
	left: -2%;

	width: 104%;
	height: 177px;

	/* background: #D7CC63; */
	background: linear-gradient(
        90deg,
        #E95D1F 0%,
        #F48847 100%
    );

	/*
	 * IMPORTANT:
	 * Reference slopes upward toward the right.
	 */
	transform: rotate(-2.8deg);
	transform-origin: center center;
}


/* =========================================================
   INNER OUTLINE
========================================================= */

.mtw-marquee__outline {
	position: relative;

	display: flex;
	align-items: center;

	width: 100%;
	height: 100%;

	padding: 0 40px;

	box-sizing: border-box;

	overflow: hidden;
}


/* =========================================================
   WHITE BORDER LINES
========================================================= */

.mtw-marquee__outline::before,
.mtw-marquee__outline::after {
	content: "";

	position: absolute;
	left: 0;

	width: 100%;
	height: 1px;

	background: rgba(255, 255, 255, 0.55);

	z-index: 3;
	pointer-events: none;
}

.mtw-marquee__outline::before {
	top: 12px;
}

.mtw-marquee__outline::after {
	bottom: 12px;
}


/* =========================================================
   VIEWPORT
========================================================= */

.mtw-marquee__viewport {
	position: relative;

	width: 100%;
	height: 100%;

	display: flex;
	align-items: center;

	overflow: hidden;
}


/* =========================================================
   MOVING TRACK
========================================================= */

.mtw-marquee__track {
	display: flex;
	align-items: center;

	width: max-content;

	flex-shrink: 0;

	will-change: transform;

	animation:
		mtw-marquee-scroll
		var(--mtw-marquee-duration, 32s)
		linear
		infinite;
}


/* =========================================================
   REPEATED GROUP
========================================================= */

.mtw-marquee__group {
	display: flex;
	align-items: center;

	flex-shrink: 0;
}


/* =========================================================
   ITEM
========================================================= */

.mtw-marquee__item {
	display: flex;
	align-items: center;

	flex-shrink: 0;

	gap: 60px;

	padding-right: 60px;
}


/* =========================================================
   STAMP
========================================================= */

.mtw-marquee__stamp {
	display: block;

	width: 81px;
	height: 109px;

	flex: 0 0 81px;

	object-fit: contain;
}


/* =========================================================
   TEXT
========================================================= */

.mtw-marquee__text {
	font-family: "Cambo", Georgia, "Times New Roman", serif;

	font-size: 72px;
	font-weight: 400;

	line-height: 74.3px;
	letter-spacing: 0;

	/* color: #2A3228; */
    color: #F5D7BA;

	white-space: nowrap;
}


/* =========================================================
   ANIMATION

   Reference video:
   RIGHT --> LEFT
========================================================= */

@keyframes mtw-marquee-scroll {

	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}


/* =========================================================
   PAUSE
========================================================= */

.mtw-marquee--pause-hover:hover .mtw-marquee__track {
	animation-play-state: paused;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

	.mtw-marquee {
		height: 150px;
	}

	.mtw-marquee__band {
		left: -2%;
		width: 104%;
		height: 152px;

		transform: rotate(-1.8deg);
	}

	.mtw-marquee__outline {
		padding: 0 28px;
	}

	.mtw-marquee__outline::before {
		top: 10px;
	}

	.mtw-marquee__outline::after {
		bottom: 10px;
	}

	.mtw-marquee__item {
		gap: 40px;
		padding-right: 40px;
	}

	.mtw-marquee__stamp {
		width: 60px;
		height: 82px;

		flex-basis: 60px;
	}

	.mtw-marquee__text {
		font-size: 54px;
		line-height: 56px;
	}
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	.mtw-marquee {
		/* height: 116px; */
		height: 86px;
	}

	.mtw-marquee__band {
		left: -3%;
		width: 106%;
		/* height: 118px; */
		height: 88px;

		transform: rotate(-1.8deg);
	}

	.mtw-marquee__outline {
		padding: 0 20px;
	}

	.mtw-marquee__outline::before {
		top: 8px;
	}

	.mtw-marquee__outline::after {
		bottom: 8px;
	}

	.mtw-marquee__item {
		gap: 24px;
		padding-right: 24px;
	}

	.mtw-marquee__stamp {
		width: 40px;
		height: 56px;

		flex-basis: 40px;
	}

	.mtw-marquee__text {
		font-size: 34px;
		line-height: 36px;
	}
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.mtw-marquee__track {
		animation-play-state: paused;
	}
}
/* =========================================================
   BRICKS SECTION WRAPPER
   Add class: mtw-marquee-section to the Bricks section.
   This replaces the separate WPCode CSS snippet.
========================================================= */
.mtw-marquee-section {
	position: relative;
	width: 100%;
	max-width: none;
	margin-top: -10px;
	padding: 0 !important;
	z-index: 5;
	overflow-x: clip;
	overflow-y: visible;
}

.mtw-marquee-section > .brxe-shortcode {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 991px) {
	.mtw-marquee-section {
		margin-top: -8px;
	}
}

@media (max-width: 767px) {
	.mtw-marquee-section {
		margin-top: -6px;
	}
}


/* =========================================================
   MTW MARQUEE
   WP ROCKET LAZY RENDER FIX
   SAFE VERSION
========================================================= */

/*
 * WP Rocket may add:
 * data-wpr-lazyrender
 *
 * content-visibility:auto can interfere with an animated,
 * transformed marquee. Only disable it for this component.
 */
.mtw-marquee-section[data-wpr-lazyrender],
.mtw-marquee-section [data-wpr-lazyrender] {
	content-visibility: visible !important;
	contain: none !important;
	contain-intrinsic-size: auto !important;
}


/* =========================================================
   BRICKS SECTION
========================================================= */

.mtw-marquee-section {
	position: relative !important;

	width: 100% !important;
	max-width: 100% !important;

	margin: 0 !important;

	/*
	 * Important:
	 * Stop the rotated marquee creating horizontal overflow,
	 * while still allowing the diagonal band to extend vertically.
	 */
	overflow-x: clip !important;
	overflow-y: visible !important;

	/*
	 * Do NOT force the marquee above/below other sections.
	 */
	z-index: auto !important;
}


/* =========================================================
   BRICKS SHORTCODE WRAPPER
========================================================= */

.mtw-marquee-section > .brxe-shortcode,
.mtw-marquee-section .brxe-shortcode {
	position: relative;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow: visible !important;
}


/* =========================================================
   MARQUEE ROOT
========================================================= */

.mtw-marquee-section .mtw-marquee {
	position: relative;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;

	overflow: visible;
}


/* =========================================================
   BAND / OUTLINE
========================================================= */

.mtw-marquee-section .mtw-marquee__band,
.mtw-marquee-section .mtw-marquee__outline {
	position: relative;
}


/* =========================================================
   ACTUAL MARQUEE VIEWPORT
========================================================= */

/*
 * This is the ONLY element that should clip the moving
 * marquee content.
 *
 * Do not use overflow-y: visible here.
 */
.mtw-marquee-section .mtw-marquee__viewport {
	position: relative;

	width: 100%;

	overflow: hidden !important;
}


/* =========================================================
   TRACK
========================================================= */

.mtw-marquee-section .mtw-marquee__track {
	position: relative;

	display: flex;

	width: max-content;
	max-width: none;

	will-change: transform;
}


/* =========================================================
   GROUP
========================================================= */

.mtw-marquee-section .mtw-marquee__group {
	display: flex;
	flex-shrink: 0;
}


/* =========================================================
   ITEMS
========================================================= */

.mtw-marquee-section .mtw-marquee__item {
	flex-shrink: 0;
}


/* =========================================================
   IMAGES
========================================================= */

.mtw-marquee-section .mtw-marquee__stamp {
	display: block;

	flex-shrink: 0;
}