/**
 * Gallery page styles.
 *
 * @package Novacare
 */

/* -------------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------------- */
.site-main--gallery-page {
	padding-block: 0;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.gallery-page-hero {
	position: relative;
	overflow: hidden;
	color: #ffffff;
}

.gallery-page-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.gallery-page-hero__background {
	position: absolute;
	inset: -1.5rem;
	background-color: #2d4033;
	background-position: center;
	background-size: cover;
	transform: scale(1.06);
	filter: blur(2px);
}

.gallery-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(35, 52, 42, 0.94) 0%,
		rgba(35, 52, 42, 0.86) 42%,
		rgba(35, 52, 42, 0.72) 100%
	);
}

.gallery-page-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(4.5rem, 9vw, 6.5rem) clamp(2rem, 4vw, 2.75rem);
}

.gallery-page-hero__content {
	max-width: 42rem;
}

.gallery-page-hero__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--nv-font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #b89b72;
}

.gallery-page-hero__title {
	margin: 0 0 1.125rem;
	font-family: var(--nv-font-serif);
	font-size: clamp(2.75rem, 5vw, 3.75rem);
	font-weight: 500;
	line-height: 1.08;
	color: #ffffff;
}

.gallery-page-hero__description {
	margin: 0;
	max-width: 34rem;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

/* -------------------------------------------------------------------------
   Notice bar
   ------------------------------------------------------------------------- */
.gallery-page-hero__notice {
	position: relative;
	z-index: 1;
	background-color: #ece8df;
}

.gallery-page-hero__notice-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding-block: 1rem 1.125rem;
}

.gallery-page-hero__notice-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	margin-top: 0.0625rem;
	color: #8a8278;
}

.gallery-page-hero__notice-text {
	margin: 0;
	max-width: 62rem;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.6;
	color: #6b6356;
}

@media (min-width: 768px) {
	.gallery-page-hero__notice-inner {
		align-items: center;
	}

	.gallery-page-hero__notice-icon {
		margin-top: 0;
	}
}

/* -------------------------------------------------------------------------
   Filter bar
   ------------------------------------------------------------------------- */
.gallery-page-filters {
	background-color: #f9f9f7;
	border-bottom: 1px solid #e0e0e0;
}

.gallery-page-filters__inner {
	padding-block: 0.9rem;
}

.gallery-page-filters__tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.gallery-page-filters__tabs::-webkit-scrollbar {
	display: none;
}

.gallery-page-filters__tab {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-height: 1.9rem;
	padding: 0.4rem 0.7rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a4a4a;
	background-color: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 0.3125rem;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-page-filters__tab:hover,
.gallery-page-filters__tab:focus-visible {
	color: var(--primary);
	border-color: rgba(45, 71, 57, 0.35);
}

.gallery-page-filters__tab.is-active {
	color: #ffffff;
	background-color: #2d4739;
	border-color: #2d4739;
}

/* -------------------------------------------------------------------------
   Card grid
   ------------------------------------------------------------------------- */
.gallery-page-grid {
	background-color: #f9f9f7;
}

.gallery-page-grid__inner {
	padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}

.gallery-page-grid__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 0;
}

.gallery-page-grid__no-results,
.gallery-page-grid__empty {
	padding-block: clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.gallery-page-grid__no-results p,
.gallery-page-grid__empty p {
	margin: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #6b6356;
}

/* -------------------------------------------------------------------------
   Gallery cards
   ------------------------------------------------------------------------- */
.gallery-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 0.5rem;
	box-shadow: 0 0.125rem 0.75rem rgba(28, 25, 23, 0.08);
}

.gallery-card[hidden] {
	display: none !important;
}

.gallery-page-grid__no-results[hidden] {
	display: none !important;
}

.gallery-card__photos {
	position: relative;
	overflow: hidden;
}

.gallery-card__photos .results-card__comparison {
	position: relative;
}

.gallery-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.125rem 1.25rem;
}

.gallery-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.gallery-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.4375rem;
	font-family: var(--nv-font-sans);
	font-size: 0.5625rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6356;
	background-color: #f0ede6;
	border-radius: 0.1875rem;
}

.gallery-card__stats {
	flex-shrink: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.4;
	color: #9a9288;
	white-space: nowrap;
}

.gallery-card__title {
	margin: 0;
	font-family: var(--nv-font-serif);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
	color: #1c1917;
}

.gallery-card__description {
	margin: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.55;
	color: #6b6356;
}

@media (max-width: 1023px) {
	.gallery-page-grid__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.gallery-page-grid__cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 24rem;
		margin-inline: auto;
	}
}
