/* =========================================================
   ALSTON GALLERY PAGE - BASE
========================================================= */

.alston-gallery-page {
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	color: #181A1F;
}

.alston-gallery-page *,
.alston-gallery-page *::before,
.alston-gallery-page *::after {
	box-sizing: border-box;
}

.alston-gallery-page img,
.alston-gallery-page video {
	max-width: 100%;
	display: block;
}

.alston-gallery-page a,
.alston-gallery-page button {
	font-family: inherit;
}

.alston-gallery-page a {
	color: inherit;
	text-decoration: none;
}

.alston-gallery-breadcrumb__inner,
.alston-gallery-showcase__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-left: 5px;
	padding-right: 5px;
}


/* =========================================================
   BREADCRUMB HERO
========================================================= */

.alston-gallery-breadcrumb {
	width: 100%;
	position: relative;
	overflow: hidden;
	background: #181A1F;
	isolation: isolate;
}

.alston-gallery-breadcrumb__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: url('/wp-content/uploads/2026/06/All-Site-2026-Alston-New-Banner-Image.webp');
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
}

.alston-gallery-breadcrumb__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.82) 0%,
			rgba(0, 0, 0, 0.62) 35%,
			rgba(0, 0, 0, 0.18) 100%
		);
}

.alston-gallery-breadcrumb__inner {
	position: relative;
	z-index: 3;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	color: #ffffff;
	padding-top: 150px;
}

.alston-gallery-breadcrumb__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.alston-gallery-breadcrumb__nav a,
.alston-gallery-breadcrumb__nav span {
	color: inherit;
}

.alston-gallery-breadcrumb__nav a {
	transition: opacity 0.3s ease;
}

.alston-gallery-breadcrumb__nav a:hover {
	opacity: 0.6;
}

.alston-gallery-breadcrumb__nav span:last-child {
	color: #C9A961;
}

.alston-gallery-breadcrumb__title {
	font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 72px;
	line-height: 0.95;
	font-weight: 200;
	letter-spacing: -0.03em;
	color: #ffffff;
	margin: 0 0 22px;
}

.alston-gallery-breadcrumb__description {
	width: 100%;
	max-width: 820px;
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 25px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.alston-gallery-showcase {
	width: 100%;
	background: #ffffff;
	padding: 100px 0 130px;
	position: relative;
	overflow: hidden;
}

.alston-gallery-mosaic {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
	grid-auto-flow: dense;
}

.alston-gallery-tile {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: #111111;
	border: 1px solid rgba(0, 0, 0, 0.06);
	cursor: pointer;
	opacity: 0;
	transform: translateY(46px);
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		border-color 0.45s ease;
}

.alston-gallery-tile.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.alston-gallery-tile:hover {
	border-color: rgba(201, 169, 97, 0.65);
}

.alston-gallery-tile--wide {
	grid-column: span 7;
}

.alston-gallery-tile--small {
	grid-column: span 5;
}

.alston-gallery-tile--medium {
	grid-column: span 6;
}

.alston-gallery-tile--large {
	grid-column: span 8;
}

.alston-gallery-tile--compact {
	grid-column: span 4;
}

/* Keep classes, but remove forced broken gaps */
.alston-gallery-tile--push-sm,
.alston-gallery-tile--push-lg {
	margin-top: 0;
}

.alston-gallery-tile__frame {
	width: 100%;
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #111111;
}

.alston-gallery-tile--large .alston-gallery-tile__frame {
	aspect-ratio: 16 / 9;
}

.alston-gallery-tile--compact .alston-gallery-tile__frame {
	aspect-ratio: 4 / 3;
}

.alston-gallery-tile__image,
.alston-gallery-tile__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.9) brightness(0.92);
	transform: scale(1);
	transition:
		transform 1.35s cubic-bezier(0.19, 1, 0.22, 1),
		filter 0.55s ease;
}

.alston-gallery-tile:hover .alston-gallery-tile__image,
.alston-gallery-tile:hover .alston-gallery-tile__video {
	transform: scale(1.07);
	filter: saturate(1.05) brightness(1);
}

.alston-gallery-tile__frame::before,
.alston-gallery-tile__frame::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	z-index: 5;
	opacity: 0;
	transition:
		opacity 0.45s ease,
		transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.alston-gallery-tile__frame::before {
	top: 11px;
	left: 11px;
	border-top: 1px solid #C9A961;
	border-left: 1px solid #C9A961;
	transform: translate(-8px, -8px);
}

.alston-gallery-tile__frame::after {
	right: 11px;
	bottom: 11px;
	border-right: 1px solid #C9A961;
	border-bottom: 1px solid #C9A961;
	transform: translate(8px, 8px);
}

.alston-gallery-tile:hover .alston-gallery-tile__frame::before,
.alston-gallery-tile:hover .alston-gallery-tile__frame::after {
	opacity: 1;
	transform: translate(0, 0);
}

.alston-gallery-tile__scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.72) 0%,
			rgba(0, 0, 0, 0.08) 58%,
			rgba(0, 0, 0, 0) 100%
		);
	opacity: 0.58;
	transition: opacity 0.45s ease;
}

.alston-gallery-tile:hover .alston-gallery-tile__scrim {
	opacity: 0.76;
}

.alston-gallery-tile__index {
	position: absolute;
	top: 16px;
	left: 22px;
	z-index: 6;
	font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1;
	font-weight: 300;
	letter-spacing: 0.1em;
	color: #C9A961;
	opacity: 0.88;
}

.alston-gallery-tile__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 6;
	padding: 6px 11px;
	background: rgba(0, 0, 0, 0.48);
	border: 1px solid rgba(201, 169, 97, 0.38);
	backdrop-filter: blur(5px);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ffffff;
}

.alston-gallery-tile__play {
	position: absolute;
	inset: 0;
	z-index: 7;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.alston-gallery-tile__play span {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 1px solid #C9A961;
	background: rgba(0, 0, 0, 0.34);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.45s ease,
		border-color 0.45s ease,
		transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.alston-gallery-tile__play span::after {
	content: "";
	margin-left: 5px;
	border-left: 16px solid #C9A961;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	transition: border-color 0.35s ease;
}

.alston-gallery-tile:hover .alston-gallery-tile__play span {
	background: #C9A961;
	border-color: #C9A961;
	transform: scale(1.12);
}

.alston-gallery-tile:hover .alston-gallery-tile__play span::after {
	border-left-color: #111111;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.alston-gallery-empty {
	width: 100%;
	text-align: center;
	padding: 70px 20px;
	background: #f7f7f4;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.alston-gallery-empty p {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 26px;
	color: #555555;
}


/* =========================================================
   LIGHTBOX
========================================================= */

html.alston-gallery-lightbox-open {
	overflow: hidden;
}

.alston-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 5, 7, 0.96);
	backdrop-filter: blur(12px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		visibility 0.4s ease;
}

.alston-gallery-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.alston-gallery-lightbox__stage {
	position: relative;
	max-width: 88vw;
	max-height: 82vh;
	transform: scale(0.96);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.alston-gallery-lightbox.is-open .alston-gallery-lightbox__stage {
	transform: scale(1);
}

.alston-gallery-lightbox__stage img,
.alston-gallery-lightbox__stage video {
	display: block;
	max-width: 88vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	border: 1px solid rgba(201, 169, 97, 0.28);
	background: #000000;
}

.alston-gallery-lightbox__count {
	position: absolute;
	top: 32px;
	left: 34px;
	z-index: 2;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.alston-gallery-lightbox__count b {
	color: #C9A961;
	font-weight: 600;
}

.alston-gallery-lightbox__close,
.alston-gallery-lightbox__nav {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(201, 169, 97, 0.32);
	color: #ffffff;
	cursor: pointer;
	transition:
		color 0.3s ease,
		border-color 0.3s ease,
		transform 0.3s ease,
		background 0.3s ease;
}

.alston-gallery-lightbox__close {
	top: 24px;
	right: 28px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
}

.alston-gallery-lightbox__close:hover {
	color: #C9A961;
	border-color: #C9A961;
	transform: rotate(90deg);
}

.alston-gallery-lightbox__nav {
	top: 50%;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 34px;
	line-height: 1;
	transform: translateY(-50%);
}

.alston-gallery-lightbox__nav:hover {
	color: #C9A961;
	border-color: #C9A961;
	background: rgba(201, 169, 97, 0.08);
}

.alston-gallery-lightbox__nav--prev {
	left: 26px;
}

.alston-gallery-lightbox__nav--next {
	right: 26px;
}


/* =========================================================
   LAPTOP - 1025px to 1366px
========================================================= */

@media (min-width: 1025px) and (max-width: 1366px) {

	.alston-gallery-breadcrumb__inner,
	.alston-gallery-showcase__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.alston-gallery-breadcrumb__inner {
		padding-top: 90px;
	}

	.alston-gallery-showcase {
		padding: 90px 0 110px;
	}

	.alston-gallery-mosaic {
		gap: 20px;
		grid-auto-flow: dense;
	}

	.alston-gallery-tile--push-sm,
	.alston-gallery-tile--push-lg {
		margin-top: 0;
	}
}


/* =========================================================
   TABLET - 768px to 1024px
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

	.alston-gallery-breadcrumb__inner {
		max-width: 100%;
		min-height: 360px;
		padding: 100px 24px 70px;
	}

	.alston-gallery-showcase__inner {
		max-width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}

	.alston-gallery-breadcrumb__title {
		font-size: 56px;
		line-height: 1;
		margin-bottom: 18px;
	}

	.alston-gallery-breadcrumb__description {
		max-width: 620px;
		font-size: 15px;
		line-height: 26px;
	}

	.alston-gallery-showcase {
		padding: 80px 0 100px;
	}

	.alston-gallery-mosaic {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 20px;
		grid-auto-flow: dense;
	}

	.alston-gallery-tile--wide,
	.alston-gallery-tile--small,
	.alston-gallery-tile--medium,
	.alston-gallery-tile--large,
	.alston-gallery-tile--compact {
		grid-column: span 3;
	}

	.alston-gallery-tile--push-sm,
	.alston-gallery-tile--push-lg {
		margin-top: 0;
	}

	.alston-gallery-tile--large .alston-gallery-tile__frame,
	.alston-gallery-tile--compact .alston-gallery-tile__frame {
		aspect-ratio: 3 / 2;
	}

	.alston-gallery-tile__play span {
		width: 64px;
		height: 64px;
	}
}


/* =========================================================
   MOBILE - 0px to 767px
========================================================= */

@media (min-width: 0px) and (max-width: 767px) {

	.alston-gallery-breadcrumb__inner {
		max-width: 100%;
		min-height: 320px;
		padding: 110px 18px 55px;
	}

	.alston-gallery-showcase__inner {
		max-width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}

	.alston-gallery-breadcrumb__nav {
		gap: 10px;
		font-size: 10px;
		margin-bottom: 16px;
	}

	.alston-gallery-breadcrumb__title {
		font-size: 42px;
		line-height: 1;
		margin-bottom: 16px;
	}

	.alston-gallery-breadcrumb__description {
		max-width: 100%;
		font-size: 14px;
		line-height: 24px;
	}

	.alston-gallery-breadcrumb__bg {
		background-position: center center;
	}

	.alston-gallery-showcase {
		padding: 60px 0 80px;
	}

	.alston-gallery-mosaic {
		display: grid;
		grid-template-columns: 1fr;
		gap: 18px;
		grid-auto-flow: row;
	}

	.alston-gallery-tile--wide,
	.alston-gallery-tile--small,
	.alston-gallery-tile--medium,
	.alston-gallery-tile--large,
	.alston-gallery-tile--compact {
		grid-column: span 1;
	}

	.alston-gallery-tile--push-sm,
	.alston-gallery-tile--push-lg {
		margin-top: 0;
	}

	.alston-gallery-tile__frame,
	.alston-gallery-tile--large .alston-gallery-tile__frame,
	.alston-gallery-tile--compact .alston-gallery-tile__frame {
		aspect-ratio: 3 / 2;
	}

	.alston-gallery-tile__index {
		top: 14px;
		left: 15px;
		font-size: 15px;
	}

	.alston-gallery-tile__badge {
		top: 12px;
		right: 12px;
		font-size: 9px;
	}

	.alston-gallery-tile__play span {
		width: 58px;
		height: 58px;
	}

	.alston-gallery-tile__play span::after {
		border-left-width: 13px;
		border-top-width: 8px;
		border-bottom-width: 8px;
	}

	.alston-gallery-lightbox__count {
		top: 22px;
		left: 20px;
		font-size: 11px;
	}

	.alston-gallery-lightbox__close {
		top: 16px;
		right: 16px;
		width: 42px;
		height: 42px;
		font-size: 24px;
	}

	.alston-gallery-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}

	.alston-gallery-lightbox__nav--prev {
		left: 10px;
	}

	.alston-gallery-lightbox__nav--next {
		right: 10px;
	}

	.alston-gallery-lightbox__stage,
	.alston-gallery-lightbox__stage img,
	.alston-gallery-lightbox__stage video {
		max-width: 92vw;
		max-height: 76vh;
	}
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.alston-gallery-tile,
	.alston-gallery-tile__image,
	.alston-gallery-tile__video,
	.alston-gallery-tile__frame::before,
	.alston-gallery-tile__frame::after,
	.alston-gallery-lightbox,
	.alston-gallery-lightbox__stage,
	.alston-gallery-lightbox__close,
	.alston-gallery-lightbox__nav,
	.alston-gallery-tile__play span {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}

	.alston-gallery-tile {
		opacity: 1 !important;
	}
}