.rlz-showcase {
	--rlz-image-ratio: 4 / 3;
	--rlz-navy: #080d2d;
	--rlz-blue: #155dff;
	--rlz-muted: #596276;
	--rlz-border: #dce3ef;
	--rlz-surface: #ffffff;
	--rlz-soft: #f1f5fb;
	--rlz-green: #18a85a;
	width: 100%;
}

.rlz-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 34px;
}

.rlz-filter {
	appearance: none;
	border: 1px solid var(--rlz-border);
	border-radius: 999px;
	background: #fff;
	color: #202945;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	min-height: 40px;
	padding: 0 20px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rlz-filter:hover,
.rlz-filter:focus-visible {
	border-color: var(--rlz-navy);
	outline: none;
	transform: translateY(-1px);
}

.rlz-filter.is-active {
	background: var(--rlz-navy);
	border-color: var(--rlz-navy);
	color: #fff;
}

.rlz-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rlz-showcase.rlz-cols-1 .rlz-grid {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.rlz-showcase.rlz-cols-2 .rlz-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rlz-showcase.rlz-cols-3 .rlz-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rlz-showcase.rlz-cols-4 .rlz-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rlz-card {
	background: var(--rlz-surface);
	border: 1px solid var(--rlz-border);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(13, 26, 61, 0.08);
	min-width: 0;
	overflow: hidden;
	transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rlz-card:hover {
	border-color: #c9d4e5;
	box-shadow: 0 16px 40px rgba(13, 26, 61, 0.12);
	transform: translateY(-2px);
}

.rlz-card.is-hidden {
	display: none;
}

.rlz-card__link {
	color: inherit;
	display: block;
	height: 100%;
	text-decoration: none;
}

.rlz-card__media {
	align-items: stretch;
	aspect-ratio: var(--rlz-image-ratio);
	background: #f7f7f8;
	border-bottom: 1px dashed #b9bec8;
	display: flex;
	position: relative;
	width: 100%;
}

.rlz-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rlz-card__placeholder {
	align-items: center;
	color: #777b84;
	display: flex;
	flex: 1;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	line-height: 1.35;
	padding: 24px;
	text-align: center;
}

.rlz-card__placeholder-icon {
	color: #b7bbc2;
	height: 32px;
	width: 32px;
}

.rlz-card__badge {
	align-items: center;
	background: var(--rlz-green);
	border-radius: 8px;
	box-shadow: 0 12px 24px rgba(24, 168, 90, 0.35);
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 6px;
	line-height: 1;
	max-width: calc(100% - 24px);
	padding: 11px 14px;
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 2;
}

.rlz-card__badge-icon {
	flex: 0 0 auto;
	height: 14px;
	width: 14px;
}

.rlz-card__body {
	padding: 20px 20px 22px;
}

.rlz-card__category {
	color: var(--rlz-blue);
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 8px;
}

.rlz-card__title {
	color: var(--rlz-navy);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.22;
	margin: 0 0 7px;
}

.rlz-card__excerpt {
	color: var(--rlz-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.rlz-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.rlz-card__tag {
	background: var(--rlz-soft);
	border-radius: 999px;
	color: #33405d;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 8px 11px;
}

.rlz-showcase-empty {
	background: #f8fafc;
	border: 1px solid #e3e8f0;
	border-radius: 10px;
	color: #556174;
	padding: 18px;
}

.rlz-references {
	--rlz-reference-image-ratio: 1 / 1.18;
	--rlz-reference-border: #dfe6f1;
	--rlz-reference-muted: #7b8498;
	--rlz-reference-navy: #070c2a;
	--rlz-reference-star: #ffb022;
	width: 100%;
}

.rlz-reference-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rlz-references.rlz-ref-cols-1 .rlz-reference-grid {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.rlz-references.rlz-ref-cols-2 .rlz-reference-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rlz-references.rlz-ref-cols-3 .rlz-reference-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rlz-references.rlz-ref-cols-4 .rlz-reference-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rlz-reference-card {
	background: #fff;
	border: 1px solid var(--rlz-reference-border);
	border-radius: 28px;
	box-shadow: 0 14px 38px rgba(5, 13, 38, 0.1);
	min-width: 0;
	overflow: hidden;
}

.rlz-reference-card__media {
	align-items: stretch;
	aspect-ratio: var(--rlz-reference-image-ratio);
	background: #eef3fa;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	color: inherit;
	display: flex;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
}

/* The image layout and separator are independent of global button styles. */
.rlz-references .rlz-reference-card .rlz-reference-card__media {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.rlz-references .rlz-reference-card .rlz-reference-card__media-button,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button:hover,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button:focus,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button:active {
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	display: block !important;
	height: 100% !important;
	inset: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	outline: none !important;
	padding: 0 !important;
	position: absolute !important;
	text-decoration: none !important;
	transform: none !important;
	scale: none !important;
	animation: none !important;
	transition: none !important;
	width: 100% !important;
	z-index: 1;
}

.rlz-references .rlz-reference-card .rlz-reference-card__media-button::before,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button::after,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button:hover::before,
.rlz-references .rlz-reference-card .rlz-reference-card__media-button:hover::after {
	content: none !important;
	display: none !important;
}

.rlz-references .rlz-reference-card .rlz-reference-card__media-button:focus-visible {
	outline: 2px solid #155dff !important;
	outline-offset: -3px;
}

.rlz-references .rlz-reference-card .rlz-reference-card__separator {
	background: #000;
	border: 0;
	border-radius: 0;
	display: block;
	flex: 0 0 auto;
	height: 1px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.rlz-reference-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rlz-references .rlz-reference-card .rlz-reference-card__image {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

/* Keep theme and Elementor hover effects from scaling reference photos. */
.rlz-references .rlz-reference-card,
.rlz-references .rlz-reference-card:hover,
.rlz-references .rlz-reference-card .rlz-reference-card__media,
.rlz-references .rlz-reference-card .rlz-reference-card__media:hover,
.rlz-references .rlz-reference-card:hover .rlz-reference-card__media,
.rlz-references .rlz-reference-card .rlz-reference-card__image,
.rlz-references .rlz-reference-card .rlz-reference-card__image:hover,
.rlz-references .rlz-reference-card:hover .rlz-reference-card__image {
	transform: none !important;
	scale: none !important;
	animation: none !important;
	transition: none !important;
}

.rlz-reference-card__placeholder {
	align-items: center;
	color: #586174;
	display: flex;
	flex: 1;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	line-height: 1.35;
	padding: 24px;
	text-align: center;
}

.rlz-reference-card__placeholder-icon {
	color: #aeb7c5;
	height: 32px;
	width: 32px;
}

.rlz-reference-card__body {
	align-items: flex-end;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 17px 16px 18px;
}

.rlz-reference-card__text {
	min-width: 0;
}

.rlz-reference-card__title {
	color: var(--rlz-reference-navy);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.rlz-reference-card__description {
	color: var(--rlz-reference-muted);
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
}

.rlz-reference-card__title a {
	color: inherit;
	text-decoration: none;
}

.rlz-reference-card__title a:hover {
	text-decoration: underline;
}

.rlz-slider-controls {
	display: none;
}

.rlz-slider-button {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #dce3ef;
	border-radius: 50%;
	color: #080d2d;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 22px;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.rlz-slider-button:disabled {
	cursor: default;
	opacity: 0.35;
}

.rlz-slider-button:focus-visible,
[data-rlz-slider-track]:focus-visible,
.rlz-reference-card__title a:focus-visible {
	outline: 2px solid #155dff;
	outline-offset: 3px;
}

.rlz-slider-status {
	color: #596276;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.rlz-admin-switch {
	align-items: center;
	display: inline-flex;
	gap: 10px;
	position: relative;
}

.rlz-admin-switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.rlz-admin-switch__track {
	background: #757575;
	border-radius: 14px;
	flex: 0 0 44px;
	height: 24px;
	position: relative;
}

.rlz-admin-switch__track::after {
	background: white;
	border-radius: 50%;
	content: '';
	height: 18px;
	left: 3px;
	position: absolute;
	top: 3px;
	width: 18px;
}

.rlz-admin-switch input:checked + .rlz-admin-switch__track {
	background: #2271b1;
}

.rlz-admin-switch input:checked + .rlz-admin-switch__track::after {
	transform: translateX(20px);
}

.rlz-admin-switch input:focus-visible + .rlz-admin-switch__track {
	outline: 2px solid #2271b1;
	outline-offset: 3px;
}

.rlz-admin-switch__yes,
.rlz-admin-switch input:checked ~ span .rlz-admin-switch__no {
	display: none;
}

.rlz-admin-switch input:checked ~ span .rlz-admin-switch__yes {
	display: inline;
}

.rlz-reference-card__stars {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 13px;
	gap: 1px;
	line-height: 1;
	padding-bottom: 2px;
	white-space: nowrap;
}

.rlz-reference-card__stars .is-filled {
	color: var(--rlz-reference-star);
}

.rlz-reference-card__stars .is-empty {
	color: #d4dbe7;
}

.rlz-lightbox {
	align-items: center;
	background: rgba(5, 9, 27, 0.82);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 28px;
	pointer-events: none;
	position: fixed;
	transition: opacity 160ms ease;
	z-index: 99999;
}

.rlz-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.rlz-lightbox-open {
	overflow: hidden;
}

.rlz-lightbox__image {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	display: block;
	max-height: calc(100vh - 72px);
	max-width: min(960px, calc(100vw - 48px));
	object-fit: contain;
}

.rlz-lightbox__close {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 0;
	border-radius: 999px;
	color: #070c2a;
	cursor: pointer;
	display: inline-flex;
	font-size: 26px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	line-height: 1;
	position: fixed;
	right: 22px;
	top: 22px;
	width: 42px;
}

@media (max-width: 1024px) {
	.rlz-showcase.rlz-cols-3 .rlz-grid,
	.rlz-showcase.rlz-cols-4 .rlz-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rlz-references.rlz-ref-cols-3 .rlz-reference-grid,
	.rlz-references.rlz-ref-cols-4 .rlz-reference-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rlz-showcase,
	.rlz-references {
		min-width: 0;
		max-width: 100%;
	}

	.rlz-showcase .rlz-grid,
	.rlz-references .rlz-reference-grid {
		display: flex;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 4px 0 16px;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}

	[data-rlz-slider-track] > .rlz-card,
	[data-rlz-slider-track] > .rlz-reference-card {
		box-sizing: border-box;
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.rlz-slider-controls:not([hidden]) {
		align-items: center;
		display: flex;
		gap: 18px;
		justify-content: center;
		margin-top: 8px;
	}

	.rlz-showcase .rlz-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.rlz-references .rlz-reference-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.rlz-filters {
		gap: 8px;
		margin-bottom: 24px;
	}

	.rlz-filter {
		font-size: 14px;
		min-height: 38px;
		padding: 0 16px;
	}

	.rlz-card__body {
		padding: 18px;
	}

	.rlz-reference-card {
		border-radius: 22px;
	}

	.rlz-reference-card__body {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.rlz-lightbox {
		padding: 18px;
	}

	.rlz-lightbox__image {
		max-width: calc(100vw - 36px);
	}
}
