/**
 * GF Estet News.
 *
 * Figma node 6080:5575. Colors and typography deliberately reuse the Xleb
 * token contract instead of introducing page-specific dark/light constants.
 */

.gf-news-section .gf-news-slider {
	overflow: visible;
}

.gf-news-section .gf-news-card {
	height: auto;
	background: transparent !important;
	color: var(--black);
	cursor: default;
}

.gf-news-card__trigger {
	display: block;
	width: 100%;
	color: var(--black);
	text-decoration: none;
}

.gf-news-card__trigger:hover,
.gf-news-card__trigger:focus-visible {
	color: var(--black);
}

.gf-news-card__trigger:focus-visible {
	border-radius: 8px;
	outline: 2px solid var(--primary500);
	outline-offset: 4px;
}

.gf-news-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 8px;
	background: var(--cardDefaultBg);
}

.gf-news-card__image {
	display: block;
	width: 100%;
	height: 100% !important;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 240ms ease;
}

.gf-news-card__trigger:hover .gf-news-card__image {
	transform: scale(1.015);
}

.gf-news-card__body {
	padding-top: 20px;
}

.gf-news-section .gf-news-card .gf-news-card__title,
.mfp-wrap.gf-news-modal .gf-news-popup__title {
	max-width: none;
	margin: 0;
	color: var(--black);
}

.gf-news-section .gf-news-card .gf-news-card__title {
	font-family: var(--textFont);
	font-size: var(--textMsize);
	font-weight: var(--textWeight);
	line-height: var(--textMheightT);
	letter-spacing: var(--bigTextSpacing);
}

.mfp-wrap.gf-news-modal .gf-news-popup__title {
	font-family: var(--titleFont);
	font-weight: var(--titleWeight);
	letter-spacing: -0.03em;
}

.gf-news-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 10px;
	color: var(--black);
	font-family: var(--textFont);
	font-size: var(--textSsize);
	font-weight: var(--textWeight);
	line-height: var(--textSheightT);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.gf-news-meta__views {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gf-news-meta__eye {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.25;
}

.gf-xleb-dev-overrides .gf-news-section .gf-news-slider > .slider-controls {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	margin: 48px 0 0;
	display: flex;
	justify-content: flex-end;
	pointer-events: none;
}

.gf-xleb-dev-overrides .gf-news-section .gf-news-slider > .slider-controls .navigation-slider {
	position: static !important;
	inset: auto !important;
	width: auto !important;
	height: auto;
	margin: 0;
	display: flex;
	gap: 12px;
	transform: none !important;
	pointer-events: auto;
}

.gf-xleb-dev-overrides .gf-news-section .gf-news-slider .swiper-button-prev,
.gf-xleb-dev-overrides .gf-news-section .gf-news-slider .swiper-button-next {
	width: 48px !important;
	height: 48px !important;
	min-width: 48px;
	min-height: 48px;
	margin: 0;
}

html.gf-news-modal-open {
	overflow: hidden;
}

.mfp-bg.gf-news-modal {
	background: var(--blackOpacity300) !important;
	opacity: 0 !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	transition: opacity 180ms ease;
}

.mfp-bg.gf-news-modal.mfp-ready {
	opacity: 1 !important;
}

.mfp-bg.gf-news-modal.mfp-removing {
	opacity: 0 !important;
}

.mfp-wrap.gf-news-modal .mfp-container,
.mfp-wrap.gf-news-modal .mfp-content {
	width: 100%;
	height: 100%;
	padding: 0;
}

.mfp-wrap.gf-news-modal .mfp-content {
	display: flex;
	justify-content: flex-end;
}

.mfp-wrap.gf-news-modal .mfp-container .mfp-content .gf-news-popup {
	position: relative;
	width: 592px;
	max-width: 592px;
	height: 100%;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--white);
	color: var(--black);
	opacity: 0;
	transform: translateX(32px);
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.mfp-wrap.gf-news-modal.mfp-ready .mfp-container .mfp-content .gf-news-popup {
	opacity: 1;
	transform: translateX(0);
}

.mfp-wrap.gf-news-modal.mfp-removing .mfp-container .mfp-content .gf-news-popup {
	opacity: 0;
	transform: translateX(32px);
}

.gf-news-popup__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--cardDefaultBg);
}

.gf-news-popup__image {
	display: block;
	width: 100%;
	height: 100% !important;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.gf-news-popup__body {
	padding: 32px 36px 36px;
}

.mfp-wrap.gf-news-modal .gf-news-popup__title {
	font-size: var(--titleXSsize);
	line-height: var(--titleXSheightT);
}

.gf-news-popup__copy {
	margin-top: 32px;
	color: var(--black);
	font-family: var(--textFont);
	font-size: var(--textMsize);
	font-weight: var(--textWeight);
	line-height: var(--textMheightS);
	letter-spacing: -0.02em;
}

.gf-news-popup__copy > :first-child {
	margin-top: 0;
}

.gf-news-popup__copy > :last-child {
	margin-bottom: 0;
}

.gf-news-popup__meta {
	margin-top: 32px;
}

.mfp-wrap.gf-news-modal .mfp-close.gf-news-popup__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--whiteOpacity800);
	color: var(--black);
	opacity: 1;
	line-height: 1;
}

.mfp-wrap.gf-news-modal .mfp-close.gf-news-popup__close:hover {
	background: var(--white);
}

.mfp-wrap.gf-news-modal .mfp-close.gf-news-popup__close:focus-visible {
	outline: 2px solid var(--primary500);
	outline-offset: 2px;
}

.mfp-wrap.gf-news-modal .mfp-close.gf-news-popup__close svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.25;
	pointer-events: none;
}

@media (max-width: 767px) {
	.gf-xleb-dev-overrides .gf-news-section .gf-news-slider > .slider-controls {
		display: none;
	}

	.mfp-wrap.gf-news-modal .mfp-container .mfp-content .gf-news-popup {
		width: 100%;
		max-width: none;
		height: 100dvh;
		margin: 0;
		padding: 0;
		border-radius: 0;
	}

	.gf-news-popup__body {
		padding: 24px 20px 32px;
	}

	.gf-news-popup__copy,
	.gf-news-popup__meta {
		margin-top: 24px;
	}

	.mfp-wrap.gf-news-modal .mfp-close.gf-news-popup__close {
		top: 12px;
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gf-news-card__image,
	.mfp-bg.gf-news-modal,
	.mfp-wrap.gf-news-modal .mfp-container .mfp-content .gf-news-popup {
		transition: none;
	}
}
