.mfc-ap-profile {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 16px 48px;
	background: #fff;
	box-sizing: border-box;
}

.mfc-ap-profile *,
.mfc-ap-profile *::before,
.mfc-ap-profile *::after {
	box-sizing: border-box;
}


.mfc-ap-profile__header {
	max-width: 820px;
	margin: 0 auto 36px;
	text-align: center;
}

.mfc-ap-profile__author-image {
	display: block;
	width: min(220px, 58vw);
	height: auto;
	margin: 0 auto 22px;
}

.mfc-ap-profile__heading {
	margin: 0;
	color: #111;
	font-size: clamp(30px, 4.7vw, 54px);
	font-weight: 800;
	line-height: 1.08;
	text-wrap: balance;
}

.mfc-ap-profile__facts {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 18px;
	color: #444;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.45;
}

.mfc-ap-profile__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 20px;
}

.mfc-ap-project {
	display: block;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.mfc-ap-project__cover {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: #e5e5e5;
}

.mfc-ap-project__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.mfc-ap-project:hover .mfc-ap-project__image,
.mfc-ap-project:focus-visible .mfc-ap-project__image {
	transform: scale(1.03);
}

.mfc-ap-project__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #333;
	font-size: 20px;
	font-weight: 700;
	background: #e5e5e5;
}


.mfc-ap-project__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 11px 2px 0;
	color: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mfc-ap-profile__empty {
	margin: 24px 0;
	text-align: center;
}

/* Просмотрщик */

.mfc-ap-viewer[hidden] {
	display: none !important;
}

.mfc-ap-viewer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 18px;
	opacity: 0;
	transition: opacity 0.16s ease;
}

.mfc-ap-viewer.is-open {
	opacity: 1;
}

.mfc-ap-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.94);
}

.mfc-ap-viewer__panel {
	position: relative;
	z-index: 1;
	width: min(94vw, 430px);
}

.mfc-ap-viewer__video {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 16px;
	background: #000;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.mfc-ap-viewer__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.mfc-ap-viewer__gesture-zone {
	position: absolute;
	top: 72px;
	bottom: 96px;
	z-index: 3;
	width: clamp(64px, 18vw, 82px);
	touch-action: none;
	background: transparent;
}

.mfc-ap-viewer__gesture-zone--left {
	left: 0;
}

.mfc-ap-viewer__gesture-zone--right {
	right: 0;
}



.mfc-ap-viewer__close {
	position: absolute;
	right: -6px;
	top: -50px;
	z-index: 50;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.mfc-ap-viewer__close:hover,
.mfc-ap-viewer__close:focus-visible {
	background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 820px) {
	.mfc-ap-profile__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.mfc-ap-project__cover {
		border-radius: 12px;
	}

	.mfc-ap-project__title {
		font-size: 16px;
	}
}

@media (max-width: 560px) {
	.mfc-ap-viewer__gesture-zone {
		top: 76px;
		bottom: 104px;
		width: clamp(68px, 19vw, 84px);
	}

	.mfc-ap-viewer__share {
		right: 12px;
		top: 68px;
		width: 44px;
		height: 44px;
		font-size: 27px;
	}

	.mfc-ap-viewer__share-status {
		right: 12px;
		top: 118px;
	}
	.mfc-ap-viewer__close {
		display: grid;
		right: 12px;
		top: 12px;
		width: 44px;
		height: 44px;
		background: rgba(0, 0, 0, 0.68);
	}

	.mfc-ap-viewer__gesture-zone {
	position: absolute;
	top: 72px;
	bottom: 96px;
	z-index: 3;
	width: clamp(64px, 18vw, 82px);
	touch-action: none;
	background: transparent;
}

.mfc-ap-viewer__gesture-zone--left {
	left: 0;
}

.mfc-ap-viewer__gesture-zone--right {
	right: 0;
}


.mfc-ap-single {
	padding: 36px 16px 56px;
}

.mfc-ap-single__inner {
	width: min(100%, 760px);
	margin: 0 auto;
}

.mfc-ap-single__title {
	margin: 0 0 22px;
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.1;
	text-align: center;
}

.mfc-ap-single__video {
	overflow: hidden;
	width: min(100%, 430px);
	margin: 0 auto;
	aspect-ratio: 9 / 16;
	border-radius: 16px;
	background: #000;
}

.mfc-ap-single__video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.mfc-ap-single__back {
	margin: 24px 0 0;
	text-align: center;
}


html:has(body.mfc-ap-direct-video-page),
body.mfc-ap-direct-video-page {
	margin: 0 !important;
	min-height: 100%;
	background: #000;
}

body.mfc-ap-direct-video-page {
	overflow: hidden;
}

.mfc-ap-profile--direct {
	max-width: none;
	margin: 0;
	padding: 0;
}

.mfc-ap-direct-data,
.mfc-ap-direct-seo-title,
.mfc-ap-direct-seo-description {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

.mfc-ap-profile--direct .mfc-ap-viewer {
	opacity: 1;
}

.mfc-ap-profile--direct .mfc-ap-viewer__close {
	z-index: 10;
}

@media (max-width: 560px) {
	.mfc-ap-profile--direct .mfc-ap-viewer__close {
		display: grid;
	}
}


.mfc-ap-viewer__share {
	position: absolute;
	right: 14px;
	top: 70px;
	z-index: 10;
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.68);
	color: #fff;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.mfc-ap-viewer__share:hover,
.mfc-ap-viewer__share:focus-visible {
	background: rgba(0, 0, 0, 0.82);
}

.mfc-ap-viewer__share-status {
	position: absolute;
	right: 14px;
	top: 122px;
	z-index: 10;
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	text-align: right;
}

@media (max-width: 560px) {

}


/* 0.7.4 — крестик всегда доступен */
.mfc-ap-viewer__close,
.mfc-ap-profile--direct .mfc-ap-viewer__close {
	display: grid !important;
	pointer-events: auto !important;
	z-index: 50 !important;
}

@media (min-width: 561px) {
	.mfc-ap-viewer__close,
	.mfc-ap-profile--direct .mfc-ap-viewer__close {
		right: -8px;
		top: -52px;
		width: 44px;
		height: 44px;
		background: rgba(0, 0, 0, 0.72);
	}
}


/* 0.7.5 — финальная мобильная сетка и стандартная кнопка Share */

.mfc-ap-viewer__share {
	position: absolute !important;
	right: 14px !important;
	top: auto !important;
	bottom: 16px !important;
	left: auto !important;
	z-index: 50 !important;
	display: grid !important;
	width: 46px !important;
	height: 46px !important;
	place-items: center !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.68) !important;
	color: #fff !important;
	transform: none !important;
	pointer-events: auto !important;
	cursor: pointer;
}

.mfc-ap-viewer__share-icon {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.mfc-ap-viewer__share-status {
	right: 14px !important;
	top: auto !important;
	bottom: 68px !important;
	left: auto !important;
	transform: none !important;
}

@media (max-width: 560px) {
	.mfc-ap-profile:not(.mfc-ap-profile--direct) {
		padding-right: 12px;
		padding-left: 12px;
	}

	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-profile__grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 24px !important;
	}

	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__title {
		font-size: 18px !important;
		line-height: 1.3 !important;
		-webkit-line-clamp: 3 !important;
	}

	.mfc-ap-viewer__share {
		right: 12px !important;
		bottom: 16px !important;
		width: 46px !important;
		height: 46px !important;
	}

	.mfc-ap-viewer__share-status {
		right: 12px !important;
		bottom: 68px !important;
	}
}


/* 0.8.7 — автоматическая пагинация профиля */

.mfc-ap-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 38px 0 0;
}

.mfc-ap-pagination__numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mfc-ap-pagination__number,
.mfc-ap-pagination__arrow {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 10px;
	color: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	background: #fff;
}

.mfc-ap-pagination__number.is-current {
	border-color: #111;
	background: #111;
	color: #fff;
}

.mfc-ap-pagination__number:hover,
.mfc-ap-pagination__number:focus-visible,
.mfc-ap-pagination__arrow:hover,
.mfc-ap-pagination__arrow:focus-visible {
	border-color: #111;
}

@media (max-width: 560px) {
	.mfc-ap-pagination {
		flex-wrap: wrap;
		gap: 12px;
		margin-top: 30px;
	}

	.mfc-ap-pagination__numbers {
		order: -1;
		flex-basis: 100%;
	}

	.mfc-ap-pagination__arrow {
		min-width: 132px;
		min-height: 48px;
	}
}

@media (max-width: 560px) {
	.mfc-ap-profile {
		padding-top: 20px;
	}

	.mfc-ap-profile__header {
		margin-bottom: 28px;
	}

	.mfc-ap-profile__author-image {
		margin-bottom: 18px;
	}

	.mfc-ap-profile__facts {
		flex-direction: column;
		gap: 4px;
	}
}

/* 0.9.1 — профиль и компактная пагинация */
.mfc-ap-profile__header {
	max-width: 940px;
	margin-bottom: 40px;
}

.mfc-ap-profile__author-image {
	width: min(300px, 72vw) !important;
	max-width: 300px;
	margin-bottom: 28px;
	border: 1px solid rgba(105, 79, 45, 0.38);
	border-radius: 12px;
	box-shadow: none !important;
}

.mfc-ap-profile__heading {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
	font-size: clamp(38px, 5.2vw, 64px) !important;
	font-weight: 400 !important;
	line-height: 1.06 !important;
	letter-spacing: -0.02em !important;
	color: #24170f !important;
}

.mfc-ap-profile__facts {
	font-family: inherit !important;
	font-size: clamp(17px, 1.8vw, 20px) !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
}

.mfc-ap-pagination {
	display: flex !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 16px !important;
	margin: 40px auto 0 !important;
	text-align: center !important;
}

.mfc-ap-pagination__numbers {
	display: flex !important;
	flex: 0 0 auto !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
}

.mfc-ap-pagination__ellipsis {
	display: inline-flex;
	min-width: 24px;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.mfc-ap-pagination__number,
.mfc-ap-pagination__arrow {
	white-space: nowrap !important;
}

@media (min-width: 561px) {
	.mfc-ap-pagination__arrow {
		flex: 0 0 auto !important;
		min-width: auto !important;
	}
}

@media (max-width: 560px) {
	.mfc-ap-profile__author-image {
		width: min(240px, 76vw) !important;
		max-width: 240px;
		margin-bottom: 22px;
	}

	.mfc-ap-profile__heading {
		font-size: clamp(34px, 10.2vw, 46px) !important;
		line-height: 1.08 !important;
	}

	.mfc-ap-pagination {
		flex-wrap: wrap !important;
		gap: 12px !important;
		margin-top: 32px !important;
	}

	.mfc-ap-pagination__numbers {
		order: -1;
		width: 100%;
		flex-basis: 100%;
		gap: 7px !important;
	}

	.mfc-ap-pagination__number {
		min-width: 42px !important;
		min-height: 46px !important;
		padding: 8px 10px !important;
	}

	.mfc-ap-pagination__ellipsis {
		min-width: 20px;
	}

	.mfc-ap-pagination__arrow {
		min-width: 132px !important;
		min-height: 48px !important;
	}
}


/* 0.9.2 — жёсткая десктопная фиксация типографики и пагинации */
@media screen and (min-width: 768px) {
	body .mfc-ap-profile .mfc-ap-profile__heading {
		font-family: Georgia, "Times New Roman", serif !important;
		font-size: clamp(42px, 4.4vw, 66px) !important;
		font-weight: 400 !important;
		font-style: normal !important;
		line-height: 1.05 !important;
		letter-spacing: -0.025em !important;
		text-transform: none !important;
	}

	body .mfc-ap-profile .mfc-ap-profile__facts,
	body .mfc-ap-profile .mfc-ap-profile__facts span {
		font-family: Arial, Helvetica, sans-serif !important;
		font-weight: 400 !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination {
		display: flex !important;
		position: relative !important;
		float: none !important;
		clear: both !important;
		width: max-content !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 42px auto 0 !important;
		padding: 0 !important;
		align-items: center !important;
		justify-content: center !important;
		flex-flow: row nowrap !important;
		gap: 12px !important;
		text-align: center !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__numbers {
		display: flex !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		align-items: center !important;
		justify-content: center !important;
		flex-flow: row nowrap !important;
		gap: 8px !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__number,
	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__arrow {
		display: inline-flex !important;
		float: none !important;
		width: auto !important;
		min-width: 42px !important;
		height: 42px !important;
		min-height: 42px !important;
		margin: 0 !important;
		padding: 8px 12px !important;
		align-items: center !important;
		justify-content: center !important;
		border: 1px solid rgba(0, 0, 0, 0.16) !important;
		border-radius: 10px !important;
		background: #fff !important;
		color: #222 !important;
		font-size: 16px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		text-decoration: none !important;
		white-space: nowrap !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__arrow {
		min-width: auto !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__number.is-current {
		border-color: #111 !important;
		background: #111 !important;
		color: #fff !important;
	}

	body .mfc-ap-profile nav.mfc-ap-pagination .mfc-ap-pagination__ellipsis {
		display: inline-flex !important;
		float: none !important;
		min-width: 24px !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 22px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
	}
}

/* 0.9.10 — полная обложка в каталоге, 2+ секунды заставки, полноэкранный просмотр */

/* Кастомную обложку в каталоге показываем целиком. */
.mfc-ap-project__image.is-custom-cover {
	object-fit: contain !important;
	object-position: center center !important;
	background: #fff;
	transform: none !important;
}

/* Кастомные обложки 9:16 в каталоге показываем целиком, без обрезки сверху/снизу. */
.mfc-ap-project__cover:has(.mfc-ap-project__image.is-custom-cover) {
	aspect-ratio: 9 / 16;
	background: #fff;
}

/* Обложка лежит поверх YouTube, пока ролик готовится. */
.mfc-ap-viewer__cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	background: #000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.14s ease, visibility 0s linear 0.14s;
}

.mfc-ap-viewer__cover.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.08s ease;
}

.mfc-ap-viewer__cover-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	background: #000;
}

/* Телефон: вертикальный плеер занимает максимально возможную ширину без искажения 9:16. */
@media (max-width: 560px) {
	.mfc-ap-viewer {
		padding: 0 !important;
	}

	.mfc-ap-viewer__panel {
		width: min(100vw, calc(100dvh * 9 / 16)) !important;
		max-width: 100vw !important;
	}

	.mfc-ap-viewer__video {
		width: 100% !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.mfc-ap-viewer__close {
		right: max(12px, env(safe-area-inset-right)) !important;
		top: max(12px, env(safe-area-inset-top)) !important;
	}

	.mfc-ap-viewer__share {
		right: max(12px, env(safe-area-inset-right)) !important;
		bottom: max(16px, env(safe-area-inset-bottom)) !important;
	}
}


/* 0.9.10: на телефоне область просмотра занимает весь экран. */
@media (max-width: 560px) {
	.mfc-ap-viewer__panel {
		width: 100vw !important;
		height: 100dvh !important;
		max-width: none !important;
	}

	.mfc-ap-viewer__video {
		width: 100vw !important;
		height: 100dvh !important;
		max-height: none !important;
		aspect-ratio: auto !important;
	}

	.mfc-ap-viewer__iframe {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
	}
}

/* 0.9.11 — мобильная обложка без пустого пространства перед заголовком */
@media (max-width: 560px) {
	/* У кастомной обложки контейнер принимает реальную высоту изображения. */
	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover:has(.mfc-ap-project__image.is-custom-cover) {
		aspect-ratio: auto !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden;
		background: transparent !important;
	}

	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image.is-custom-cover {
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		background: transparent !important;
	}

	/* Заголовок идёт сразу после фактического низа фотографии. */
	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__title {
		margin-top: 11px !important;
	}
}

/* 0.9.12 — отдельная геометрия просмотрщика для телефона/ПК + обложка до готовности YouTube */

/* ПК и планшеты: аккуратный вертикальный 9:16 по высоте окна. */
@media (min-width: 561px) {
	.mfc-ap-viewer {
		padding: 54px 18px 22px !important;
	}

	.mfc-ap-viewer__panel {
		width: min(94vw, calc(86dvh * 9 / 16), 520px) !important;
		max-width: none !important;
	}

	.mfc-ap-viewer__video {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 9 / 16 !important;
		max-height: 86dvh !important;
	}

	.mfc-ap-viewer__iframe,
	.mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}
}

/* Телефон: самый большой возможный прямоугольник 9:16 без искажения ролика. */
@media (max-width: 560px) {
	.mfc-ap-viewer {
		display: grid !important;
		place-items: center !important;
		padding: 0 !important;
	}

	.mfc-ap-viewer__panel {
		width: min(100vw, calc(100dvh * 9 / 16)) !important;
		height: auto !important;
		max-width: none !important;
		max-height: 100dvh !important;
	}

	.mfc-ap-viewer__video {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		max-height: 100dvh !important;
		aspect-ratio: 9 / 16 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.mfc-ap-viewer__iframe,
	.mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}
}

/* Обложка всегда полностью закрывает область плеера во время подготовки ролика. */
.mfc-ap-viewer__cover {
	z-index: 4 !important;
	background: #000 !important;
}

.mfc-ap-viewer__cover-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
}

/* Свайп-зоны остаются над обложкой, системные кнопки — ещё выше. */
.mfc-ap-viewer__gesture-zone {
	z-index: 6 !important;
}

.mfc-ap-viewer__close,
.mfc-ap-viewer__share,
.mfc-ap-viewer__share-status {
	z-index: 50 !important;
}


/* 0.9.14 — единый вертикальный формат обложек 9:16 в каталоге */
/*
 * Исходный стандарт обложки: 1080 × 1920 px (9:16).
 * Карточка в профиле и заставка просмотрщика используют одну геометрию,
 * поэтому кастомная обложка больше не должна обрезаться в каталоге.
 */
.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 9 / 16 !important;
	overflow: hidden !important;
	background: #fff !important;
}

.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-position: center center !important;
}

/* Кастомные 1080×1920 показываем целиком — без срезания краёв. */
.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image.is-custom-cover {
	object-fit: contain !important;
	background: #fff !important;
}

/* Отменяем старое мобильное auto-height из 0.9.11: теперь сама карточка строго 9:16. */
@media (max-width: 560px) {
	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover,
	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover:has(.mfc-ap-project__image.is-custom-cover) {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 9 / 16 !important;
		min-height: 0 !important;
		background: #fff !important;
	}

	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image,
	.mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image.is-custom-cover {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		background: #fff !important;
	}
}


/* 0.9.15 — выход из коллекции после пагинации */
.mfc-ap-reality {
	display: flex;
	width: 100%;
	margin: 34px 0 8px;
	padding: 0;
	justify-content: center;
	clear: both;
}

.mfc-ap-reality__button {
	display: inline-flex;
	min-height: 48px;
	padding: 12px 24px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(44, 35, 25, .26);
	border-radius: 999px;
	background: #fff;
	color: #2c2319 !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none;
}

.mfc-ap-reality__button:hover,
.mfc-ap-reality__button:focus-visible {
	background: #f6f3ee;
	color: #2c2319 !important;
	text-decoration: none !important;
}

@media (max-width: 560px) {
	.mfc-ap-reality {
		margin-top: 28px;
		padding: 0 16px;
	}

	.mfc-ap-reality__button {
		width: 100%;
		max-width: 320px;
	}
}


/* 0.9.16 — ТОЛЬКО ПК: профиль переводим в единый вертикальный стандарт 9:16.
 * Мобильные правила не меняются. */
@media (min-width: 821px) {
	body .mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-profile__grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 30px 22px !important;
	}

	body .mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover,
	body .mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__cover:has(.mfc-ap-project__image.is-custom-cover) {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 9 / 16 !important;
		overflow: hidden !important;
		background: #fff !important;
	}

	body .mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image,
	body .mfc-ap-profile:not(.mfc-ap-profile--direct) .mfc-ap-project__image.is-custom-cover {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		background: #fff !important;
		transform: none !important;
	}
}


/* 0.9.17 — мобильный просмотрщик всегда занимает весь доступный экран.
 * Это убирает разницу геометрии между /avtorskie-proekty/ и /page/N/. */
@media (max-width: 560px) {
	body .mfc-ap-viewer {
		inset: 0 !important;
		width: 100vw !important;
		height: 100dvh !important;
		padding: 0 !important;
		place-items: stretch !important;
	}

	body .mfc-ap-viewer__panel,
	body .mfc-ap-viewer__video {
		width: 100vw !important;
		height: 100dvh !important;
		max-width: none !important;
		max-height: none !important;
		aspect-ratio: auto !important;
		margin: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	body .mfc-ap-viewer__iframe,
	body .mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
	}
}

/* 0.9.18 — жёсткая мобильная геометрия и мгновенная заставка. */
.mfc-ap-viewer__cover.is-visible {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
}

@media (max-width: 560px) {
	html body .mfc-ap-viewer {
		position: fixed !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100dvh !important;
		min-width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	html body .mfc-ap-viewer__panel {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0 !important;
		transform: none !important;
	}

	html body .mfc-ap-viewer__video {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		aspect-ratio: auto !important;
		margin: 0 !important;
		border-radius: 0 !important;
	}

	html body .mfc-ap-viewer__iframe,
	html body .mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
	}
}


/* 0.10.3 — телефоны в горизонтальной ориентации.
 * Не расширяем все правила max-width:560px: карточки/пагинация остаются как были.
 * Только viewer распознаёт touch-телефон по малой высоте и сохраняет вертикальный 9:16
 * внутри доступной высоты экрана, включая safe-area iPhone. */
@media (min-width: 561px) and (max-height: 560px) and (pointer: coarse) {
	html body .mfc-ap-viewer {
		position: fixed !important;
		inset: 0 !important;
		display: grid !important;
		place-items: center !important;
		width: 100vw !important;
		height: 100dvh !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	html body .mfc-ap-viewer__panel {
		position: relative !important;
		inset: auto !important;
		width: min(100vw, calc(100dvh * 9 / 16)) !important;
		height: 100dvh !important;
		min-width: 0 !important;
		max-width: 100vw !important;
		max-height: 100dvh !important;
		margin: 0 auto !important;
		transform: none !important;
	}

	html body .mfc-ap-viewer__video {
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100dvh !important;
		aspect-ratio: 9 / 16 !important;
		margin: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	html body .mfc-ap-viewer__iframe,
	html body .mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
	}

	html body .mfc-ap-viewer__close {
		right: max(12px, env(safe-area-inset-right)) !important;
		top: max(12px, env(safe-area-inset-top)) !important;
	}

	html body .mfc-ap-viewer__share {
		right: max(12px, env(safe-area-inset-right)) !important;
		bottom: max(12px, env(safe-area-inset-bottom)) !important;
	}
}


/* 0.10.4 — desktop: обложка гарантированно выше YouTube iframe до PLAYING. */
@media (min-width: 561px) and (pointer: fine) {
	html body .mfc-ap-viewer__video {
		position: relative !important;
		isolation: isolate;
	}

	html body .mfc-ap-viewer__iframe {
		position: absolute !important;
		inset: 0 !important;
		z-index: 1 !important;
		width: 100% !important;
		height: 100% !important;
	}

	html body .mfc-ap-viewer__cover {
		position: absolute !important;
		inset: 0 !important;
		z-index: 4 !important;
		width: 100% !important;
		height: 100% !important;
	}
}
