/* ==========================================================
   AtomicLimits Post Slider
   ========================================================== */

.atomic-post-slider {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;

	border-radius: 18px;
	overflow: hidden;

	background: #111;
	box-shadow:
		0 18px 50px rgba(0, 0, 0, 0.16);
}


/* ==========================================================
   Viewport
   ========================================================== */

.atomic-post-slider__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}


/* ==========================================================
   Track
   ========================================================== */

.atomic-post-slider__track {
	display: flex;
	width: 100%;

	transform: translate3d(0, 0, 0);
	transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);

	will-change: transform;
}


/* ==========================================================
   Slides
   ========================================================== */

.atomic-post-slider__slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 100%;

	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.atomic-post-slider__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;

	color: #fff;
	text-decoration: none;
}

.atomic-post-slider__link:link,
.atomic-post-slider__link:visited,
.atomic-post-slider__link:hover,
.atomic-post-slider__link:active {
	color: #fff;
	text-decoration: none;
}


/* ==========================================================
   Featured image
   ========================================================== */

.atomic-post-slider__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;

	background: #222;
}

.atomic-post-slider__image {
	display: block;
	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	transform: scale(1);
	transition: transform 900ms ease;
}

.atomic-post-slider__slide:hover .atomic-post-slider__image {
	transform: scale(1.035);
}


/* ==========================================================
   Gradient overlay
   ========================================================== */

.atomic-post-slider__gradient {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.92) 0%,
			rgba(0, 0, 0, 0.68) 30%,
			rgba(0, 0, 0, 0.22) 62%,
			rgba(0, 0, 0, 0.04) 100%
		);

	pointer-events: none;
}


/* ==========================================================
   Content overlay
   ========================================================== */

.atomic-post-slider__content {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;

	padding:
		clamp(24px, 5vw, 64px)
		clamp(24px, 6vw, 76px)
		clamp(36px, 6vw, 72px);

	color: #fff;
}


/* ==========================================================
   Category
   ========================================================== */

.atomic-post-slider__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 7px 13px;

	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;

	background: rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	color: #fff;

	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* ==========================================================
   Title
   ========================================================== */

.atomic-post-slider__title {
	max-width: 960px;
	margin: 0;

	color: #fff;

	font-size: clamp(1.25rem, 2.3vw, 2.15rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;

	text-wrap: balance;
}

.atomic-post-slider__link:hover .atomic-post-slider__title {
	color: #fff;
}

.atomic-post-slider__subtitle {
	max-width: 850px;
	margin: -4px 0 4px;

	color: rgba(255,255,255,.88);

	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	font-weight: 600;
	line-height: 1.45;
}

/* ==========================================================
   Meta
   ========================================================== */

.atomic-post-slider__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;

	color: rgba(255, 255, 255, 0.84);

	font-size: clamp(0.82rem, 1.5vw, 0.98rem);
	font-weight: 500;
	line-height: 1.4;
}

.atomic-post-slider__date,
.atomic-post-slider__author {
	color: inherit;
}

.atomic-post-slider__separator {
	color: rgba(255, 255, 255, 0.55);
}


/* ==========================================================
   Navigation arrows
   ========================================================== */

.atomic-post-slider__arrow {
	position: absolute;
	z-index: 5;
	top: 50%;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;
	padding: 0;

	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.34);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	color: #fff;

	font: inherit;
	font-size: 2rem;
	line-height: 1;

	cursor: pointer;

	opacity: 0;
	transform: translateY(-50%) scale(0.92);

	transition:
		opacity 220ms ease,
		background-color 220ms ease,
		border-color 220ms ease,
		transform 220ms ease;
}

.atomic-post-slider:hover .atomic-post-slider__arrow,
.atomic-post-slider:focus-within .atomic-post-slider__arrow {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

.atomic-post-slider__arrow:hover {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.62);
}

.atomic-post-slider__arrow:focus-visible {
	opacity: 1;
	outline: 3px solid rgba(255, 255, 255, 0.95);
	outline-offset: 3px;
}

.atomic-post-slider__arrow--previous {
	left: 20px;
}

.atomic-post-slider__arrow--next {
	right: 20px;
}

.atomic-post-slider__arrow span {
	display: block;
	transform: translateY(-2px);
}


/* ==========================================================
   Navigation dots
   ========================================================== */

.atomic-post-slider__dots {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: 18px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;

	transform: translateX(-50%);
}

.atomic-post-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;

	border: 0;
	border-radius: 999px;

	background: rgba(255, 255, 255, 0.48);

	cursor: pointer;

	transition:
		width 220ms ease,
		background-color 220ms ease,
		transform 220ms ease;
}

.atomic-post-slider__dot:hover {
	background: rgba(255, 255, 255, 0.82);
	transform: scale(1.15);
}

.atomic-post-slider__dot.is-active {
	width: 28px;
	background: #fff;
}

.atomic-post-slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}


/* ==========================================================
   Loading and reduced motion
   ========================================================== */

.atomic-post-slider:not(.is-initialized) .atomic-post-slider__slide:not(:first-child) {
	display: none;
}

.atomic-post-slider.is-initialized .atomic-post-slider__slide {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.atomic-post-slider__track,
	.atomic-post-slider__image,
	.atomic-post-slider__arrow,
	.atomic-post-slider__dot {
		transition-duration: 1ms;
	}

	.atomic-post-slider__slide:hover .atomic-post-slider__image {
		transform: none;
	}
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {
	.atomic-post-slider {
		border-radius: 14px;
	}

	.atomic-post-slider__slide {
		aspect-ratio: 16 / 9;
	}

	.atomic-post-slider__gradient {
                background:
                        linear-gradient(
                                to top,
                                rgba(0, 0, 0, 0.96) 0%,
                                rgba(0, 0, 0, 0.68) 48%,
                                rgba(0, 0, 0, 0.22) 82%,
                                rgba(0, 0, 0, 0.04) 100%
                        );
        }

	.atomic-post-slider__content {
		gap: 10px;

		padding:
			32px
			58px
			48px;
	}

	.atomic-post-slider__arrow {
		width: 42px;
		height: 42px;

		font-size: 1.75rem;
	}

	.atomic-post-slider__arrow--previous {
		left: 12px;
	}

	.atomic-post-slider__arrow--next {
		right: 12px;
	}
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {
	.atomic-post-slider {
		border-radius: 12px;
	}

	.atomic-post-slider__slide {
		aspect-ratio: 16 / 9;
		min-height: 0px;
	}

	.atomic-post-slider__gradient {
		background:
			linear-gradient(
				to top,
				rgba(0, 0, 0, 0.96) 0%,
				rgba(0, 0, 0, 0.78) 48%,
				rgba(0, 0, 0, 0.22) 82%,
				rgba(0, 0, 0, 0.04) 100%
			);
	}

	.atomic-post-slider__content {
		gap: 8px;

		padding:
			18px
			18px
			42px;
	}

	.atomic-post-slider__category {
		padding: 5px 9px;

		font-size: 0.66rem;
	}

	.atomic-post-slider__title {
		font-size: clamp(1.05rem, 5.1vw, 1.35rem);
		line-height: 1.05;
	}

	.atomic-post-slider__meta {
		gap: 5px;

		font-size: 0.76rem;
	}

	.atomic-post-slider__arrow {
		top: 42%;

		width: 36px;
		height: 36px;

		font-size: 1.5rem;

		opacity: 1;
	}

	.atomic-post-slider__arrow--previous {
		left: 8px;
	}

	.atomic-post-slider__arrow--next {
		right: 8px;
	}

	.atomic-post-slider__dots {
		bottom: 14px;
	}
}

/* ==========================================================
   Drag interaction
   ========================================================== */

.atomic-post-slider__track {
	touch-action: pan-y;
	user-select: none;
}

.atomic-post-slider__track.is-dragging {
	cursor: grabbing;
}

