/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.custom-marquee {
	--graphic-overflow: 55px;

	position: relative;
	z-index: 2;
	max-width: 1480px;
	padding: 0 20px;
	margin: 0 auto 78px;
}

.custom-marquee:is(
	.background-flower-green,
	.background-flower-red,
	.background-tower-of-americas,
	.background-torch-of-friendship,
	.background-mission,
)::before {
	position: absolute;
	inset: calc(var(--graphic-overflow) * -1) 0 auto auto;
	z-index: -1;
	display: block;
	width: 244px;
	height: 267px;
	content: '';
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	pointer-events: none;
}

.custom-marquee.background-tower-of-americas::before,
.custom-marquee.background-torch-of-friendship::before,
.custom-marquee.background-mission::before {
	background-position: center top;
	background-size: contain;
}

.custom-marquee.background-flower-green::before {
	background-image: url('/includes/client_public/assets/shared/flower-green.svg');
}

.custom-marquee.background-flower-red::before {
	background-image: url('/includes/client_public/assets/shared/flower-red.svg');
}

.custom-marquee.background-tower-of-americas::before {
	background-image: url('/includes/client_public/assets/shared/tower-of-americas.svg');
}

.custom-marquee.background-torch-of-friendship::before {
	background-image: url('/includes/client_public/assets/shared/torch-of-friendship.svg');
}

.custom-marquee.background-mission::before {
	background-image: url('/includes/client_public/assets/shared/mission.svg');
}

.custom-marquee .template-header,
.custom-marquee .slides {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.custom-marquee .template-header {
	margin-bottom: 24px;
}

.custom-marquee .template-title {
	margin-bottom: 4px;
	font-family: var(--font-display);
	font-weight: normal;
	font-size: 2.5rem;
	line-height: 1;
	letter-spacing: -0.055em;
	color: var(--red-alt);
}

.custom-marquee .template-desc {
	margin: 0;
	font-family: var(--font-frutiger-bold);
	font-weight: normal;
	font-size: 0.875rem;
	line-height: calc(20/14);
	color: var(--gray-dark);
}

.custom-marquee .slides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.custom-marquee .list-box {
	padding: 34px 20px 23px;
	background: var(--red-alt);
	color: var(--white);
}

.custom-marquee .slide-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.custom-marquee .template-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.custom-marquee .slide,
.custom-marquee .img-cont,
.custom-marquee .slide-img {
	position: relative;
	z-index: 1;
}

.custom-marquee .slide {
	overflow: hidden;
	color: var(--white);
}

.custom-marquee .img-cont::before {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	content: '';
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.custom-marquee .slide-img {
	width: 100%;
	transition: transform var(--transition);
	transform-origin: center;
}

.custom-marquee .content-section {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	pointer-events: none;
}

.custom-marquee .content-section a {
	pointer-events: all;
}

.custom-marquee .shared-play-button {
	inset: 20px 20px auto auto;
	transform: none;
}

/*----- large slide -----*/

.custom-marquee .slide.major .slide-title {
	font-family: var(--font-georgia);
	font-weight: normal;
	font-size: 1.625rem;
	line-height: calc(32/26);
	color: inherit;
}

.custom-marquee .slide-footer {
	margin-top: 12px;
}

/*----- small slides -----*/

.custom-marquee .slide.minor .slide-title {
	max-width: 500px;
	font-family: var(--font-frutiger-bold);
	font-weight: normal;
	font-size: 1rem;
	line-height: 1.375;
	color: inherit;
}

/*----- slide list -----*/

.custom-marquee .list-item {
	padding-bottom: 20px;
	border-bottom: 1px solid #984A56;
}

.custom-marquee .list-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.custom-marquee .list-item-title {
	font-family: var(--font-georgia);
	font-weight: normal;
	font-size: 1.0625rem;
	line-height: calc(24/17);
	color: inherit;
}

.custom-marquee .list-item-title a {
	font: inherit;
	text-decoration: none;
	color: inherit;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (hover: hover) {
	.custom-marquee .list-item-title a:hover {
		text-decoration: underline;
	}

	.custom-marquee .slide:hover .slide-img {
		transform: scale(1.1);
	}
}

@media (min-width: 48em) {
	.custom-marquee .slides {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.custom-marquee .list-box {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.custom-marquee .slide.major {
		grid-column: span 2;
	}

	.custom-marquee .slide > .inner,
	.custom-marquee .img-cont,
	.custom-marquee .slide-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

@media (min-width: 64em) {
	.custom-marquee {
		--graphic-overflow: 127px;

		margin-bottom: 100px;
	}

	.custom-marquee:is(
		.background-flower-green,
		.background-flower-red,
		.background-tower-of-americas,
		.background-torch-of-friendship,
		.background-mission,
	)::before {
		width: 393px;
		height: 434px;
	}

	.custom-marquee .template-header {
		display: grid;
		grid-template-columns: minmax(min-content, 426px) minmax(0, 1fr);
		align-items: center;
		margin-bottom: 20px;
	}

	.custom-marquee .template-title {
		font-size: 3.75rem;
	}

	.custom-marquee .template-desc {
		padding-left: 40px;
		font-size: 0.9375rem;
		line-height: calc(22/15);
		border-left: 2px solid var(--teal-light);
	}

	.custom-marquee .slides {
		grid-template:
			'slide1 slide1 slide1 slide2' auto
			'slide3 slide4 list list' auto / 26.77% 26.77% 15% minmax(0, 1fr);
		gap: 20px;
	}

	.custom-marquee .slide.major {
		grid-column: unset;
		grid-area: slide1;
	}

	.custom-marquee .list-box {
		padding: 34px 32px 14px;
	}

	.custom-marquee .template-footer {
		margin: 23px -7px 0 0;
	}

	.custom-marquee .slide-2 {
		grid-area: slide2;
	}

	.custom-marquee .slide-3 {
		grid-area: slide3;
	}

	.custom-marquee .slide-4 {
		grid-area: slide4;
	}

	.custom-marquee .list-box {
		grid-area: list;
	}

	.custom-marquee .content-section {
		padding: 24px;
	}

	/*----- large slide -----*/

	.custom-marquee .slide.major .slide-title {
		font-size: 2.25rem;
		line-height: calc(44/36);
	}

	.custom-marquee .slide-footer {
		margin-top: 20px;
	}

	/*----- small slides -----*/

	.custom-marquee .slide.minor .slide-title {
		font-size: 1.25rem;
		line-height: calc(26/20);
	}

	/*----- slide list -----*/

	.custom-marquee .list-item {
		padding-bottom: 18px;
	}

	.custom-marquee .list-item-title {
		font-size: 1.25rem;
		line-height: 1.5;
	}
}

@media (min-width: 92.5em) {
	.custom-marquee:is(
		.background-flower-green,
		.background-flower-red,
		.background-tower-of-americas,
		.background-torch-of-friendship,
		.background-mission,
	)::before {
		width: 434px;
	}
}