@font-face {
	font-family: "CampMarine Christmas";
	src: url("assets/montserrat.woff2") format("woff2");
	font-weight: 600 900;
	font-display: swap;
}

@font-face {
	font-family: "CampMarine Christmas Serif";
	src: url("assets/dm-serif-display.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

.cm-xmas-carousel {
	box-sizing: border-box;
	width: min(100%, 1280px);
	margin: 19px auto 0;
	padding-inline: 28px;
	color: #102e44;
	font-family: "CampMarine Christmas", Montserrat, system-ui, sans-serif;
}

.cm-xmas-carousel *,
.cm-xmas-carousel *::before,
.cm-xmas-carousel *::after {
	box-sizing: border-box;
}

.cm-xmas-carousel [hidden] {
	display: none !important;
}

.cm-xmas-viewport {
	position: relative;
	isolation: isolate;
	container-type: inline-size;
}

.cm-xmas-slide {
	--cm-xmas-text: #fff;
	--cm-xmas-accent: #ffc775;
	--cm-xmas-button: #f6a540;
	--cm-xmas-button-text: #102a40;
	position: relative;
	isolation: isolate;
	min-height: 214px;
	aspect-ratio: 1224 / 304;
	overflow: hidden;
	border-radius: 12px;
	background: #0b2136;
	color: var(--cm-xmas-text);
}

.cm-xmas-slide[data-cm-xmas-leaving] {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.cm-xmas-slide[data-cm-xmas-entering] {
	z-index: 2;
	animation: cm-xmas-fade-in 520ms ease-in-out both;
}

@keyframes cm-xmas-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cm-xmas-slide--bor {
	--cm-xmas-text: #183e33;
	--cm-xmas-accent: #234a3a;
	--cm-xmas-button: #23503e;
	--cm-xmas-button-text: #fff;
	background: #f7e9d3;
}

.cm-xmas-slide--crvena {
	--cm-xmas-text: #fff8ee;
	--cm-xmas-accent: #fff4db;
	--cm-xmas-button: #ffdf9a;
	--cm-xmas-button-text: #491421;
	background: #711022;
}

.cm-xmas-picture,
.cm-xmas-picture img {
	display: block;
	width: 100%;
	height: 100%;
}

.cm-xmas-picture {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cm-xmas-picture img {
	margin: 0;
	object-fit: cover;
	object-position: right center;
}

.cm-xmas-slide--bor .cm-xmas-picture img {
	object-position: left center;
}

.cm-xmas-copy {
	position: absolute;
	inset-inline-start: 4.4%;
	inset-block-start: 12.2%;
	z-index: 3;
	max-width: 46%;
}

.cm-xmas-slide--bor .cm-xmas-copy {
	inset-inline-start: 58.3%;
	inset-block-start: 10.9%;
	max-width: 39%;
}

.cm-xmas-slide--crvena .cm-xmas-copy {
	inset-inline-start: 5.5%;
	inset-block-start: 9.2%;
}

.cm-xmas-carousel .cm-xmas-tag {
	margin: 0 0 7px;
	color: var(--cm-xmas-accent);
	font-size: 12px;
	font-weight: 760;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cm-xmas-carousel .cm-xmas-copy h2 {
	margin: 0;
	color: var(--cm-xmas-text);
	font-family: inherit;
	font-size: clamp(24px, 3.19cqw, 39px);
	font-weight: 850;
	letter-spacing: -.052em;
	line-height: 1.04;
}

.cm-xmas-carousel .cm-xmas-copy strong {
	display: block;
	margin: 5px 0 14px;
	color: var(--cm-xmas-accent);
	font-family: inherit;
	font-size: clamp(44px, 6.4cqw, 76px);
	font-weight: 900;
	letter-spacing: -.07em;
	line-height: .98;
	white-space: nowrap;
}

.cm-xmas-carousel .cm-xmas-slide--bor h2 {
	font-family: "CampMarine Christmas Serif", Georgia, serif;
	font-size: clamp(29px, 4.08cqw, 50px);
	font-weight: 400;
	letter-spacing: -.044em;
	line-height: .99;
}

.cm-xmas-carousel .cm-xmas-slide--bor strong {
	margin-block-start: 6px;
	font-size: clamp(47px, 7cqw, 82px);
	font-weight: 400;
	letter-spacing: -.07em;
	line-height: .91;
}

.cm-xmas-carousel .cm-xmas-slide--crvena h2 {
	font-size: clamp(24px, 2.53cqw, 31px);
}

.cm-xmas-carousel .cm-xmas-slide--crvena strong {
	margin: 7px 0 12px;
	font-size: clamp(44px, 6.4cqw, 76px);
	line-height: .91;
}

.cm-xmas-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 15px;
}

.cm-xmas-carousel .cm-xmas-cta {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 9px 16px;
	border-radius: 6px;
	background: var(--cm-xmas-button);
	color: var(--cm-xmas-button-text);
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.cm-xmas-carousel .cm-xmas-cta span {
	font-size: 15px;
}

.cm-xmas-carousel .cm-xmas-cta:hover {
	filter: brightness(1.09);
	color: var(--cm-xmas-button-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cm-xmas-carousel .cm-xmas-cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -5px;
}

.cm-xmas-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2px;
	margin-block-start: 3px;
}

.cm-xmas-carousel .cm-xmas-control {
	display: inline-grid;
	min-width: 42px;
	min-height: 42px;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: #17364b;
	font: 700 16px/1 system-ui, sans-serif;
	letter-spacing: normal;
	cursor: pointer;
}

.cm-xmas-carousel .cm-xmas-control:hover,
.cm-xmas-carousel .cm-xmas-control:focus-visible {
	border-color: #cbd9e4;
	background: #eef4f7;
	color: #102e44;
}

.cm-xmas-carousel .cm-xmas-control:focus-visible {
	outline: 2px solid #166299;
	outline-offset: -3px;
}

.cm-xmas-carousel .cm-xmas-dot span {
	width: 8px;
	height: 8px;
	border: 1px solid #547485;
	border-radius: 100%;
	background: transparent;
}

.cm-xmas-carousel .cm-xmas-dot[aria-current="true"] span {
	width: 20px;
	border-color: #102e44;
	border-radius: 6px;
	background: #102e44;
}

.cm-xmas-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.cm-xmas-slide[data-cm-xmas-entering] {
		animation: none;
	}
}

@media (min-width: 701px) and (max-width: 1000px) {
	.cm-xmas-slide:not(.cm-xmas-slide--bor)::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: linear-gradient(90deg, rgb(9 26 44 / 40%), transparent 58%);
	}

	.cm-xmas-slide--crvena::before {
		background: linear-gradient(90deg, rgb(86 5 20 / 80%), transparent 58%);
	}
}

@media (max-width: 700px) {
	.cm-xmas-carousel {
		margin-block-start: 14px;
		padding-inline: clamp(14px, 4.4vw, 25px);
	}

	.cm-xmas-slide {
		display: flex;
		min-height: 0;
		aspect-ratio: auto;
		flex-direction: column-reverse;
		border-radius: 10px;
	}

	.cm-xmas-copy,
	.cm-xmas-slide--bor .cm-xmas-copy,
	.cm-xmas-slide--crvena .cm-xmas-copy {
		position: static;
		min-height: 185px;
		max-width: none;
		padding: 20px clamp(15px, 5vw, 32px) 15px;
	}

	.cm-xmas-carousel .cm-xmas-copy h2,
	.cm-xmas-carousel .cm-xmas-slide--crvena h2 {
		font-size: clamp(28px, 7.7vw, 41px);
	}

	.cm-xmas-carousel .cm-xmas-slide--bor h2 {
		font-size: clamp(31px, 8vw, 45px);
	}

	.cm-xmas-carousel .cm-xmas-copy strong,
	.cm-xmas-carousel .cm-xmas-slide--bor strong,
	.cm-xmas-carousel .cm-xmas-slide--crvena strong {
		margin: 2px 0 10px;
		font-size: clamp(46px, 12vw, 68px);
		line-height: .95;
	}

	.cm-xmas-picture {
		position: static;
		z-index: 0;
		height: auto;
		aspect-ratio: 1480 / 608;
	}
}
