/* Stonebriar Smile Design — Smile Gallery */
:where(
		.gallery-hero,
		.gallery-intro,
		.gallery-cases,
		.gallery-approach,
		.gallery-disclaimer,
		.gallery-cta
	)
	p,
:where(
		.gallery-hero,
		.gallery-intro,
		.gallery-cases,
		.gallery-approach,
		.gallery-disclaimer,
		.gallery-cta
	)
	figure {
	margin-top: 0;
}
:where(
		.gallery-hero,
		.gallery-intro,
		.gallery-cases,
		.gallery-approach,
		.gallery-disclaimer,
		.gallery-cta
	)
	.button,
:where(
		.gallery-hero,
		.gallery-intro,
		.gallery-cases,
		.gallery-approach,
		.gallery-disclaimer,
		.gallery-cta
	)
	.eyebrow {
	font-size: 0.8rem;
}

.gallery-hero {
	display: grid;
	min-height: min(900px, 100dvh);
	grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
	color: var(--white);
	background: var(--navy-deep);
}
.gallery-hero__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(84px, 8vw, 136px) clamp(44px, 5vw, 104px);
}
.gallery-hero .eyebrow,
.gallery-hero .heading em {
	color: var(--gold-light);
}
.gallery-hero .heading {
	width: 100%;
	max-width: 760px;
	margin: 0 0 28px;
	color: var(--white);
	font-size: clamp(3rem, 4.45vw, 5rem);
	letter-spacing: -0.052em;
	line-height: 0.98;
	text-wrap: balance;
}
.gallery-hero .heading span,
.gallery-hero .heading em {
	display: block;
}
.gallery-hero .heading em {
	margin-top: 0.13em;
	font-family: var(--script);
	font-size: 0.65em;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.1;
}
.gallery-hero__lead {
	max-width: 630px;
	margin-bottom: 34px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
	line-height: 1.65;
}
.gallery-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 28px;
}
.gallery-text-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 13px;
	color: var(--white);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}
.gallery-text-link span {
	transition: transform 0.3s ease;
}
.gallery-text-link:hover span {
	transform: translate(3px, -3px);
}
.gallery-hero__media {
	position: relative;
	min-height: 680px;
	margin: 0;
	overflow: hidden;
	background: #e5edef;
}
.gallery-hero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(17, 24, 49, 0.55), transparent 48%);
	content: "";
	pointer-events: none;
}
.gallery-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gallery-hero__media figcaption {
	position: absolute;
	z-index: 2;
	right: clamp(22px, 4vw, 52px);
	bottom: clamp(22px, 4vw, 46px);
	max-width: 330px;
	padding: 16px 20px;
	border-left: 2px solid var(--gold-light);
	color: var(--white);
	background: rgba(17, 24, 49, 0.92);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
}

.gallery-intro {
	background: var(--ivory);
}
.gallery-intro__grid,
.gallery-disclaimer__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(48px, 9vw, 130px);
}
.gallery-intro__copy {
	padding-top: 34px;
}

.gallery-cases {
	padding: clamp(90px, 11vw, 154px) 0;
	background: #edf6f7;
}
.gallery-cases__header {
	max-width: 900px;
	margin: 0 auto 58px;
	text-align: center;
}
.gallery-cases__header > p:last-child {
	max-width: 700px;
	margin-right: auto;
	margin-left: auto;
	color: #4f5667;
}
.gallery-slider {
	position: relative;
	width: min(100%, 800px);
	margin: 0 auto;
}
.gallery-slider__viewport {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
}
.gallery-slider__viewport::-webkit-scrollbar {
	display: none;
}
.gallery-cases__grid {
	display: flex;
	gap: 0;
}
.gallery-case {
	position: relative;
	min-width: 100%;
	min-height: 0;
	aspect-ratio: 3/2;
	margin: 0;
	overflow: hidden;
	flex: 0 0 100%;
	border: 1px solid rgba(32, 41, 85, 0.13);
	background: var(--white);
	box-shadow: 0 18px 45px rgba(24, 38, 72, 0.08);
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.gallery-case::after {
	position: absolute;
	inset: 55% 0 0;
	background: linear-gradient(transparent, rgba(9, 16, 38, 0.75));
	content: "";
	pointer-events: none;
}
.gallery-case img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-case:hover img {
	transform: scale(1.025);
}
.gallery-case figcaption {
	position: absolute;
	z-index: 2;
	right: 22px;
	bottom: 20px;
	left: 22px;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 17px;
	border-left: 2px solid var(--gold-light);
	color: var(--white);
	background: rgba(17, 24, 49, 0.9);
}
.gallery-case figcaption span {
	color: var(--gold-light);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
}
.gallery-case figcaption strong {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.gallery-case--feature {
	min-height: 0;
}
.gallery-slider__controls {
	display: flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	margin-top: 26px;
}
.gallery-slider__arrow {
	position: absolute;
	z-index: 3;
	top: calc(50% - 39px);
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border: 1px solid var(--navy);
	border-radius: 50%;
	color: var(--navy);
	background: #edf6f7;
	font-size: 1.15rem;
	cursor: pointer;
	transform: translateY(-50%);
	transition:
		color 0.3s ease,
		background-color 0.3s ease,
		transform 0.3s ease;
}
.gallery-slider__arrow[data-gallery-previous] {
	left: -78px;
}
.gallery-slider__arrow[data-gallery-next] {
	right: -78px;
}
.gallery-slider__arrow:hover {
	color: var(--white);
	background: var(--navy);
	transform: translateY(calc(-50% - 2px));
}
.gallery-slider__pagination {
	display: flex;
	max-width: min(560px, calc(100vw - 180px));
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 9px;
}
.gallery-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #59617a;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition:
		border-color 0.25s ease,
		background-color 0.25s ease,
		transform 0.25s ease;
}
.gallery-slider__dot[aria-current="true"] {
	border-color: #87652e;
	background: #87652e;
	transform: scale(1.25);
}
.gallery-slider__arrow:focus-visible,
.gallery-slider__dot:focus-visible,
.gallery-slider__viewport:focus-visible {
	outline: 3px solid var(--azure);
	outline-offset: 4px;
}

.gallery-approach {
	padding: clamp(90px, 11vw, 150px) 0;
	color: var(--white);
	background: var(--navy);
}
.gallery-approach__grid {
	display: grid;
	grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(54px, 9vw, 140px);
	align-items: center;
}
.gallery-approach__symbol {
	position: relative;
	width: min(100%, 480px);
	aspect-ratio: 4/5;
	margin: auto;
	overflow: hidden;
	border: 1px solid rgba(203, 156, 77, 0.45);
	background: var(--navy-deep);
	box-shadow: 0 28px 65px rgba(5, 10, 27, 0.22);
}
.gallery-approach__symbol img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.gallery-approach__symbol figcaption {
	position: absolute;
	right: 20px;
	bottom: 20px;
	left: 20px;
	padding: 14px 17px;
	border-left: 2px solid var(--gold-light);
	color: var(--white);
	background: rgba(17, 24, 49, 0.92);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	line-height: 1.55;
	text-transform: uppercase;
}
.gallery-approach__content {
	color: rgba(255, 255, 255, 0.82);
}
.gallery-approach__content .eyebrow,
.gallery-approach__content .heading em {
	color: var(--gold-light);
}
.gallery-approach__content .heading,
.gallery-approach__content .lead {
	color: var(--white);
}

.gallery-disclaimer {
	background: var(--ivory);
}
.gallery-disclaimer__note {
	padding-top: 34px;
}
.gallery-disclaimer__note p {
	color: #4f5667;
	line-height: 1.78;
}
.gallery-disclaimer__note a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	color: #075e84;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}
.gallery-disclaimer__note a span {
	transition: transform 0.3s ease;
}
.gallery-disclaimer__note a:hover span {
	transform: translate(3px, -3px);
}

.gallery-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(100px, 12vw, 170px) 0;
	color: var(--white);
	background: var(--navy-deep);
	text-align: center;
	isolation: isolate;
}
.gallery-cta::before {
	position: absolute;
	z-index: -1;
	inset: 6% max(20px, 10vw);
	border: 1px solid rgba(203, 156, 77, 0.22);
	border-radius: 50%;
	content: "";
}
.gallery-cta__mark {
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: min(42vw, 520px);
	opacity: 0.035;
	transform: translate(-50%, -50%);
}
.gallery-cta__mark img {
	display: block;
	width: 100%;
	height: auto;
}
.gallery-cta .eyebrow,
.gallery-cta .heading em {
	color: var(--gold-light);
}
.gallery-cta .heading {
	color: var(--white);
}
.gallery-cta p:not(.eyebrow) {
	max-width: 720px;
	margin: 24px auto 34px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
}

:where(
		.gallery-hero,
		.gallery-intro,
		.gallery-cases,
		.gallery-approach,
		.gallery-disclaimer,
		.gallery-cta
	)
	a:focus-visible {
	outline: 3px solid var(--azure);
	outline-offset: 4px;
}
@media (max-width: 1100px) {
	.gallery-hero {
		min-height: auto;
		grid-template-columns: 1fr 1fr;
	}
	.gallery-hero__content {
		padding: 82px 42px;
	}
	.gallery-hero .heading {
		font-size: clamp(2.75rem, 5.7vw, 4.2rem);
	}
	.gallery-slider {
		width: min(calc(100% - 132px), 800px);
	}
	.gallery-slider__arrow[data-gallery-previous] {
		left: -66px;
	}
	.gallery-slider__arrow[data-gallery-next] {
		right: -66px;
	}
}
@media (max-width: 780px) {
	.gallery-hero {
		grid-template-columns: 1fr;
	}
	.gallery-hero__content {
		min-height: 640px;
		padding: 78px 24px 62px;
	}
	.gallery-hero .heading {
		max-width: 630px;
		font-size: clamp(2.65rem, 11.5vw, 4rem);
	}
	.gallery-hero__media {
		min-height: 520px;
	}
	.gallery-intro__grid,
	.gallery-disclaimer__grid,
	.gallery-approach__grid {
		grid-template-columns: 1fr;
	}
	.gallery-intro__copy,
	.gallery-disclaimer__note {
		padding-top: 0;
	}
	.gallery-case,
	.gallery-case--feature {
		min-height: 0;
	}
	.gallery-approach__symbol {
		max-width: 340px;
	}
	.gallery-slider {
		width: 100%;
	}
	.gallery-slider__arrow {
		top: calc(50% - 37px);
		width: 46px;
		height: 46px;
		color: var(--white);
		background: rgba(17, 24, 49, 0.88);
	}
	.gallery-slider__arrow[data-gallery-previous] {
		left: 12px;
	}
	.gallery-slider__arrow[data-gallery-next] {
		right: 12px;
	}
	.gallery-cta::before {
		inset: 5% -20%;
	}
	.gallery-cta__mark {
		width: min(78vw, 430px);
	}
}
@media (max-width: 520px) {
	.gallery-hero__content {
		min-height: 600px;
	}
	.gallery-hero__actions,
	.gallery-hero__actions .button {
		width: 100%;
	}
	.gallery-hero__actions .button {
		justify-content: center;
	}
	.gallery-hero__media {
		min-height: 430px;
	}
	.gallery-hero__media figcaption {
		right: 18px;
		bottom: 18px;
		left: 18px;
		max-width: none;
	}
	.gallery-case,
	.gallery-case--feature {
		min-height: 0;
	}
	.gallery-case figcaption {
		right: 14px;
		bottom: 14px;
		left: 14px;
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gallery-text-link span,
	.gallery-case img,
	.gallery-disclaimer__note a span,
	.gallery-slider__arrow,
	.gallery-slider__dot {
		transition: none;
	}
}
