/* Sage Terminal — referenciák masonry ([anyweb_references]). */

.anyweb-refs {
	--ink: #1B211D;
	--ink-hover: #313A34;
	--paper: #FAFAF7;
	--white: #FFFFFF;
	--mist: #E4E9E0;
	--sage: #8FA894;
	--leaf: #4F6B55;
	--text: #4E5751;
	--text-soft: #8A9186;
	--color-border: rgba(27, 33, 29, 0.10);
	--font-heading: "Manrope", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;
	--font-mono: "DM Mono", ui-monospace, monospace;
	--radius-button: 6px;
	--radius-card: 8px;
	padding: 0 16px;
	font-family: var(--font-body);
	color: var(--text);
	box-sizing: border-box;
}

.anyweb-refs *,
.anyweb-refs *::before,
.anyweb-refs *::after {
	box-sizing: border-box;
}

.anyweb-refs__wall {
	margin: 0 auto;
}

.anyweb-refs__sizer,
.anyweb-refs__item {
	width: calc((100% - 48px) / 4);
}

@media (min-width: 1920px) {
	.anyweb-refs__sizer,
	.anyweb-refs__item {
		width: calc((100% - 64px) / 5);
	}
}

@media (min-width: 2560px) {
	.anyweb-refs__sizer,
	.anyweb-refs__item {
		width: calc((100% - 80px) / 6);
	}
}

@media (min-width: 3840px) {
	.anyweb-refs__sizer,
	.anyweb-refs__item {
		width: calc((100% - 96px) / 7);
	}
}

.anyweb-refs__item {
	margin-bottom: 16px;
}

.anyweb-refs__card {
	display: block;
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: var(--white);
	transition: border-color 0.2s ease;
}

a.anyweb-refs__card:hover,
a.anyweb-refs__card:focus-visible {
	border-color: var(--ink);
	outline: none;
}

.anyweb-refs__card img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}

.anyweb-refs__cta {
	height: 620px;
	padding: 40px 32px;
	border-radius: var(--radius-card);
	background: var(--ink);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	text-align: left;
}

.anyweb-refs__cta-kicker {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(228, 233, 224, 0.45);
}

.anyweb-refs__cta-title {
	margin: 16px 0 0;
	font-family: var(--font-heading);
	font-size: 30px;
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--paper);
	text-wrap: pretty;
}

.anyweb-refs__cta-title span {
	color: var(--sage);
}

.anyweb-refs__cta-text {
	margin: 16px 0 0;
	font-size: 15.5px;
	line-height: 1.7;
	color: rgba(250, 250, 247, 0.66);
}

.anyweb-refs__cta-row {
	margin-top: auto;
	padding-top: 28px;
}

.anyweb-refs__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	font-family: var(--font-body);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	background: var(--mist);
	border-radius: var(--radius-button);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.anyweb-refs__cta-btn:hover,
.anyweb-refs__cta-btn:focus-visible {
	background: var(--white);
	color: var(--ink);
	outline: none;
}

/* Batched reveal */
.anyweb-refs__item.is-hidden {
	display: none;
}

.anyweb-refs__more-row {
	display: flex;
	justify-content: center;
	padding: 32px 0 0;
}

.anyweb-refs__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-family: var(--font-body);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1;
	color: var(--ink);
	background: var(--white);
	border: 1px solid rgba(27, 33, 29, 0.18);
	border-radius: var(--radius-button);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.anyweb-refs__more:hover,
.anyweb-refs__more:focus-visible {
	border-color: var(--ink);
	outline: none;
}

.anyweb-refs__more[hidden] {
	display: none;
}

.anyweb-refs__more-count {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--mist);
	color: #34503C;
}

.anyweb-refs__empty {
	margin: 24px auto;
	max-width: 620px;
	padding: 0 40px;
	font-size: 15.5px;
	color: var(--text-soft);
	text-align: center;
}

@media (max-width: 1100px) {
	.anyweb-refs__sizer,
	.anyweb-refs__item {
		width: calc((100% - 16px) / 2);
	}
}

@media (max-width: 640px) {
	.anyweb-refs {
		padding: 0 16px;
	}
	.anyweb-refs__sizer,
	.anyweb-refs__item {
		width: 100%;
	}
	.anyweb-refs__cta {
		height: auto;
		min-height: 420px;
		padding: 32px 24px;
	}
	.anyweb-refs__cta-title {
		font-size: 26px;
	}
}

/* GLightbox overlay skin: assets/css/lightbox.css (shared). */
