:root {
	--alston-home-videos-bg: #FFFFFF;
	--alston-home-videos-text: #000000;
	--alston-home-videos-muted: #666666;
	--alston-home-videos-line: rgba(0,0,0,0.20);
	--alston-home-videos-circle: rgba(0,0,0,0.20);
	--alston-home-videos-inner: 1440px;
	--alston-home-videos-radius: 24px;
	--alston-home-videos-ease: cubic-bezier(.16,1,.3,1);
	--alston-home-videos-card-h: 534px;
}

.alston-home-videos {
	position: relative;
	width: 100%;
	background: var(--alston-home-videos-bg);
	padding: 120px 0;
	overflow: hidden;
}

.alston-home-videos * {
	box-sizing: border-box;
}

.alston-home-videos__inner {
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
}

/* CARD LAYOUT */

.alston-home-videos__rail-wrap {
	width: 100%;
	margin: 0;
	padding: 0 64px;
	box-sizing: border-box;
}

.alston-home-videos__rail {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	height: var(--alston-home-videos-card-h);
	display: flex;
	gap: 0;
	align-items: stretch;
	justify-content: center;
	overflow: hidden;
	border-radius: 24px;
}

.alston-home-videos__card {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	transition: flex .6s var(--alston-home-videos-ease);
}

.alston-home-videos__card-btn {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.alston-home-videos__card-media {
	position: absolute;
	inset: 0;
	display: block;
}

.alston-home-videos__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%) brightness(.52);
	transform: scale(1);
	transition:
		transform .7s var(--alston-home-videos-ease),
		filter .55s ease;
}

.alston-home-videos__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.24) 45%, rgba(0,0,0,.82) 100%);
	opacity: 1;
	transition: opacity .45s ease, background .45s ease;
	z-index: 1;
}

.alston-home-videos__card-content {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.alston-home-videos__card-pill {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 112px;
	height: 42px;

	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;

	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 13px 22px;

	background: transparent;

	transition:
		color 0.3s ease,
		background 0.3s ease,
		border-color 0.3s ease,
		transform .35s ease;
}

.alston-home-videos__card-title {
	position: absolute;
	left: 24px;
	bottom: 24px;
	max-width: calc(100% - 48px);
	margin: 0;
	color: #FFFFFF;
	font-family: "Cormorant Garamond", serif;
	font-size: 30px;
	line-height: 34px;
	font-weight: 500;
	text-align: left;
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity .35s ease,
		transform .45s var(--alston-home-videos-ease);
}

@media (min-width: 1200px) {

	.alston-home-videos__rail:hover .alston-home-videos__card {
		flex: 1 1 0;
	}

	.alston-home-videos__rail:hover .alston-home-videos__card:hover {
		flex: 2.8 1 0;
	}

	.alston-home-videos__card.is-default-active {
		flex: 2.8 1 0;
	}

	.alston-home-videos__card.is-default-active .alston-home-videos__card-media img {
		filter: grayscale(0%) brightness(.86);
		transform: scale(1.03);
	}

	.alston-home-videos__card.is-default-active .alston-home-videos__card-pill {
		background: rgba(255,255,255,0.90);
		color: #000000;
	}

	.alston-home-videos__card.is-default-active .alston-home-videos__card-title {
		opacity: 1;
		transform: translateY(0);
	}

	.alston-home-videos__rail:hover .alston-home-videos__card .alston-home-videos__card-media img {
		filter: grayscale(100%) brightness(.44);
		transform: scale(1);
	}

	.alston-home-videos__rail:hover .alston-home-videos__card .alston-home-videos__card-pill {
		background: rgba(0,0,0,0.70);
		color: #FFFFFF;
	}

	.alston-home-videos__rail:hover .alston-home-videos__card .alston-home-videos__card-title {
		opacity: 0;
		transform: translateY(18px);
	}

	.alston-home-videos__rail:hover .alston-home-videos__card:hover .alston-home-videos__card-media img {
		filter: grayscale(0%) brightness(.86);
		transform: scale(1.03);
	}

	.alston-home-videos__rail:hover .alston-home-videos__card:hover .alston-home-videos__card-pill {
		background: rgba(255,255,255,0.90);
		color: #000000;
	}

	.alston-home-videos__rail:hover .alston-home-videos__card:hover .alston-home-videos__card-title {
		opacity: 1;
		transform: translateY(0);
	}
}

/* FOOTER BUTTON */

.alston-home-videos__footer {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.alston-home-videos__cta {
	color: #1A1A1A;
	border: 1px solid rgba(0, 0, 0, 0.18);
	padding: 16px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	background: transparent;
	transition:
		background 0.35s ease,
		border-color 0.35s ease,
		color 0.35s ease;
}

.alston-home-videos__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.alston-home-videos__cta-icon img {
	width: 11px;
	height: 11px;
	object-fit: contain;
	filter: brightness(0) invert(0);
	transition: filter 0.35s ease;
}

.alston-home-videos__cta:hover {
	background: #0A0A0A;
	border-color: #0A0A0A;
	color: #FFFFFF;
}

.alston-home-videos__cta:hover .alston-home-videos__cta-icon img {
	filter: brightness(0) invert(1);
}

/* ENTRANCE */

.alston-home-videos-reveal {
	opacity: 0;
	transform: translateY(42px);
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.alston-home-videos-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* POPUP */

.alston-home-video-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s ease, visibility .35s ease;
}

.alston-home-video-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.alston-home-video-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.88);
	backdrop-filter: blur(10px);
}

.alston-home-video-popup__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(1100px, calc(100% - 30px));
	transform: translate(-50%, -50%) scale(.98);
	z-index: 2;
	transition: transform .4s var(--alston-home-videos-ease);
}

.alston-home-video-popup.is-open .alston-home-video-popup__dialog {
	transform: translate(-50%, -50%) scale(1);
}

.alston-home-video-popup__close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 0;
	background: #FFFFFF;
	color: #000000;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 4;
}

.alston-home-video-popup__ratio {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 20px;
	overflow: hidden;
	background: #000;
}

.alston-home-video-popup__ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

/* RESPONSIVE */

@media (min-width: 1025px) and (max-width: 1399px) {
	.alston-home-videos {
		padding: 110px 0;
	}

	.alston-home-videos__rail-wrap {
		padding: 0 40px;
	}

	.alston-home-videos__rail {
		height: 500px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.alston-home-videos {
		padding: 0 0 120px;
	}

	.alston-home-videos__rail-wrap {
		padding: 0 28px;
	}

	.alston-home-videos__rail {
		max-width: none;
		height: auto;
		overflow-x: auto;
		overflow-y: hidden;
		justify-content: flex-start;
		gap: 14px;
		border-radius: 0;
		scrollbar-width: none;
	}

	.alston-home-videos__rail::-webkit-scrollbar {
		display: none;
	}

	.alston-home-videos__card {
		flex: 0 0 420px;
		min-width: 420px;
		max-width: 420px;
		height: 500px;
		border-radius: 24px;
	}

	.alston-home-videos__card-media img {
		filter: grayscale(0%) brightness(.72);
	}

	.alston-home-videos__card-pill {
		background: rgba(255,255,255,0.90);
		color: #000000;
	}

	.alston-home-videos__card-title {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 481px) and (max-width: 767px) {
	.alston-home-videos {
		padding: 10px 0 72px;
	}

	.alston-home-videos__rail-wrap {
		padding: 0 20px;
	}

	.alston-home-videos__rail {
		height: auto;
		overflow-x: auto;
		justify-content: flex-start;
		gap: 12px;
		border-radius: 0;
		scrollbar-width: none;
	}

	.alston-home-videos__rail::-webkit-scrollbar {
		display: none;
	}

	.alston-home-videos__card {
		flex: 0 0 calc(100vw - 52px);
		min-width: calc(100vw - 52px);
		max-width: calc(100vw - 52px);
		height: 420px;
		border-radius: 18px;
	}

	.alston-home-videos__card-media img {
		filter: grayscale(0%) brightness(.72);
	}

	.alston-home-videos__card-pill {
		min-width: 98px;
		height: 42px;
		padding: 0 18px;
		background: rgba(255,255,255,0.90);
		color: #000000;
	}

	.alston-home-videos__card-title {
		opacity: 1;
		transform: none;
		left: 18px;
		bottom: 18px;
		font-size: 26px;
		line-height: 30px;
	}

	.alston-home-videos__footer {
		margin-top: 42px;
		padding: 0 20px;
	}

	.alston-home-videos__cta {
		width: 100%;
	}
}

@media (min-width: 0px) and (max-width: 480px) {
	.alston-home-videos {
		padding: 72px 0;
	}

	.alston-home-videos__rail-wrap {
		padding: 0 16px;
	}

	.alston-home-videos__rail {
		height: auto;
		overflow-x: auto;
		justify-content: flex-start;
		gap: 12px;
		border-radius: 0;
		scrollbar-width: none;
	}

	.alston-home-videos__rail::-webkit-scrollbar {
		display: none;
	}

	.alston-home-videos__card {
		flex: 0 0 calc(100vw - 44px);
		min-width: calc(100vw - 44px);
		max-width: calc(100vw - 44px);
		height: 390px;
		border-radius: 18px;
	}

	.alston-home-videos__card-media img {
		filter: grayscale(0%) brightness(.72);
	}

	.alston-home-videos__card-pill {
		min-width: 92px;
		height: 40px;
		padding: 0 16px;
		background: rgba(255,255,255,0.90);
		color: #000000;
	}

	.alston-home-videos__card-title {
		opacity: 1;
		transform: none;
		left: 18px;
		bottom: 18px;
		font-size: 24px;
		line-height: 28px;
	}

	.alston-home-videos__footer {
		margin-top: 38px;
		padding: 0 16px;
	}

	.alston-home-videos__cta {
		width: 100%;
	}
}